semifinished
This commit is contained in:
8
migrations/20240520205451_notifications.sql
Normal file
8
migrations/20240520205451_notifications.sql
Normal 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
|
||||
);
|
||||
Reference in New Issue
Block a user