aboutsummaryrefslogtreecommitdiff
path: root/src/db/migrations/1-init.sql
blob: 7e49764c0eb188911c90d416d938c04008b08f5b (plain)
1
2
3
4
5
6
7
8
9
10
CREATE TABLE IF NOT EXISTS "events" (
  "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 */
);