diff options
author | Joris | 2022-01-09 09:43:21 +0100 |
---|---|---|
committer | Joris | 2022-01-09 10:11:29 +0100 |
commit | bd59a5128c05dcd550e91bbdd0cd9d5996a65586 (patch) | |
tree | 541f7d49253ad3e7c8dfab480f33a2b10107b0d2 /src/db/migrations | |
parent | ce978143f1360e16e85587644055a9f83d11c64c (diff) |
Persist events to sqlite db
Diffstat (limited to 'src/db/migrations')
-rw-r--r-- | src/db/migrations/1-init.sql | 9 |
1 files changed, 9 insertions, 0 deletions
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 +); |