This commit is contained in:
jdl
2024-11-11 06:36:55 +01:00
parent d0587cc585
commit c5419d662e
102 changed files with 4181 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
CREATE TABLE users(
UserID BIGINT NOT NULL PRIMARY KEY,
Email TEXT NOT NULL UNIQUE);
CREATE TABLE user_notes(
UserID BIGINT NOT NULL REFERENCES users(UserID),
NoteID BIGINT NOT NULL,
Note Text NOT NULL,
PRIMARY KEY(UserID,NoteID));

View File

@@ -0,0 +1 @@
INSERT INTO users(UserID, Email) VALUES (1, 'a@b.com'), (2, 'c@d.com');

View File

@@ -0,0 +1 @@
DELETE FROM users WHERE UserID=1;