Fixes the review comments
This commit is contained in:
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user