From aef5748f5fa8cdbfa127de7f7ed9e155aab4ce27 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 10 Jan 2024 14:20:30 +0100 Subject: [PATCH] add table --- migration.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/migration.sql b/migration.sql index 2df76ef..74332d1 100644 --- a/migration.sql +++ b/migration.sql @@ -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 ); +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 +);