Fixes the review comments

This commit is contained in:
2022-04-21 19:44:42 +02:00
parent 81e65b1619
commit 5f73d556c6
9 changed files with 104 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
-- This file should undo anything in `up.sql`
drop table user;
drop table pwd;
drop table pwd;
drop table user;

View File

@@ -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
);