2023-11-17 10:30:30 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "notification" (
|
|
|
|
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
|
|
"user_id" INTEGER NOT NULL REFERENCES user(id),
|
|
|
|
"message" TEXT NOT NULL,
|
|
|
|
"read_at" DATETIME,
|
2024-03-20 15:56:34 +01:00
|
|
|
"created_at" DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
2023-11-17 10:30:30 +01:00
|
|
|
"category" TEXT NOT NULL,
|
|
|
|
"link" TEXT
|
|
|
|
);
|