From bd59a5128c05dcd550e91bbdd0cd9d5996a65586 Mon Sep 17 00:00:00 2001
From: Joris
Date: Sun, 9 Jan 2022 09:43:21 +0100
Subject: Persist events to sqlite db

---
 src/db/migrations/1-init.sql | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 src/db/migrations/1-init.sql

(limited to 'src/db/migrations/1-init.sql')

diff --git a/src/db/migrations/1-init.sql b/src/db/migrations/1-init.sql
new file mode 100644
index 0000000..72fab80
--- /dev/null
+++ b/src/db/migrations/1-init.sql
@@ -0,0 +1,9 @@
+CREATE TABLE IF NOT EXISTS "events" (
+  "id" INTEGER PRIMARY KEY,
+  "date" VARCHAR NOT NULL,
+  "start" VARCHAR NULL,
+  "end" VARCHAR NULL,
+  "name" VARCHAR NOT NULL,
+  "created" TIMESTAMP NOT NULL,
+  "updated" TIMESTAMP NOT NULL
+);
-- 
cgit v1.2.3

