add unique name in hosting table(fix dublication error)

This commit is contained in:
Liisa Davydov
2026-05-06 12:30:53 +03:00
parent dc5f3d401b
commit f044d4a237
2 changed files with 7 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ STARTUP_TABLE_CREATION_QUERIES = {
);""",
"hosting": """CREATE TABLE IF NOT EXISTS hosting (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
Name VARCHAR(255),
Name VARCHAR(255) UNIQUE,
Capacity INT,
reservedBy VARCHAR(255)
);""",

6
package-lock.json generated Normal file
View File

@@ -0,0 +1,6 @@
{
"name": "invitation",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}