From f4cdd0ae283d8afe5e577304c62a10bd45a89ac1 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 10 Jan 2024 14:20:30 +0100 Subject: [PATCH] add table --- migration.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/migration.sql b/migration.sql index 2cc86d4..a727b31 100644 --- a/migration.sql +++ b/migration.sql @@ -135,3 +135,13 @@ CREATE TABLE IF NOT EXISTS "boat_damage" ( "verified_at" datetime, "lock_boat" boolean not null default false -- if true: noone can use the boat ); + +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 +);