diff --git a/src/main.ts b/src/main.ts index 3e8f797..7b3a1a2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,8 +20,7 @@ async function setupDB() { longitude FLOAT NOT NULL, rating INTEGER NOT NULL CHECK (rating >= 1 AND rating <= 5), comment TEXT, - created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, - FOREIGN KEY (user_id) REFERENCES "user"(id) + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); `); }