1
0

semifinished

This commit is contained in:
2024-05-21 05:44:46 +03:00
parent 3bcc2b5c5c
commit ea4f857d6b
29 changed files with 1212 additions and 65 deletions

View File

@@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS notification (
`id` INTEGER PRIMARY KEY AUTOINCREMENT,
`user_id` INTEGER NOT NULL REFERENCES user(id) ON DELETE CASCADE,
`title` TEXT NOT NULL,
`body` TEXT NOT NULL,
`seen` BOOLEAN NOT NULL DEFAULT 0,
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);