aboutsummaryrefslogtreecommitdiff
path: root/src/db/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/migrations')
-rw-r--r--src/db/migrations/1-init.sql16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/db/migrations/1-init.sql b/src/db/migrations/1-init.sql
index a7db8b8..7e49764 100644
--- a/src/db/migrations/1-init.sql
+++ b/src/db/migrations/1-init.sql
@@ -1,10 +1,10 @@
CREATE TABLE IF NOT EXISTS "events" (
- "id" VARCHAR PRIMARY KEY,
- "date" VARCHAR NOT NULL,
- "start" VARCHAR NULL,
- "end" VARCHAR NULL,
- "name" VARCHAR NOT NULL,
- "repetition" VARCHAR NULL,
- "created" TIMESTAMP NOT NULL,
- "updated" TIMESTAMP NOT NULL
+ "id" TEXT PRIMARY KEY, /* UUID */
+ "date" TEXT NOT NULL, /* DATE */
+ "start" TEXT NULL, /* TIME */
+ "end" TEXT NULL, /* TIME */
+ "name" TEXT NOT NULL,
+ "repetition" TEXT NULL, /* JSON */
+ "created" TEXT NOT NULL, /* DATETIME */
+ "updated" TEXT NOT NULL /* DATETIME */
);