Fixes the review comments

This commit is contained in:
Roflin committed 2022-04-21 20:02:15 +02:00
1 parent 81e65b1619
commit 5f73d556c6
9 files changed
+104 -70

No files matched your search

@@ -1,4 +1,4 @@
-- This file should undo anything in `up.sql`
drop table user;
drop table pwd;
drop table pwd;
drop table user;
@@ -6,6 +6,7 @@ CREATE TABLE user (
);
CREATE TABLE pwd (
id INTEGER NOT NULL PRIMARY KEY,
password TEXT NOT NULL
user_id INTEGER NOT NULL PRIMARY KEY,
password TEXT NOT NULL,
FOREIGN KEY (user_id) REFERENCES user(id) ON DELETE CASCADE
);