add table

This commit is contained in:
philipp 2024-01-10 14:20:30 +01:00
parent 5af1860607
commit aef5748f5f

View File

@ -150,3 +150,12 @@ CREATE TABLE IF NOT EXISTS "boathouse" (
CONSTRAINT unq UNIQUE (aisle, side, level) -- only 1 boat allowed to rest at each space CONSTRAINT unq UNIQUE (aisle, side, level) -- only 1 boat allowed to rest at each space
); );
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,
"created_at" DATETIME DEFAULT CURRENT_TIMESTAMP,
"category" TEXT NOT NULL,
"link" TEXT
);