diff options
| author | Joris | 2025-02-07 10:35:20 +0100 | 
|---|---|---|
| committer | Joris | 2025-02-07 10:35:20 +0100 | 
| commit | 582c03eacbc73b851aa232c404be71b2cf77295a (patch) | |
| tree | 59c48474f03135a7cdb8c104f372a84f1777cac8 /src/db/migrations/01-init.sql | |
| parent | 8a78d6fcb970d256f7645d6c0a6f02da987a2896 (diff) | |
Use strict mode for tables
Diffstat (limited to 'src/db/migrations/01-init.sql')
| -rw-r--r-- | src/db/migrations/01-init.sql | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/src/db/migrations/01-init.sql b/src/db/migrations/01-init.sql new file mode 100644 index 0000000..467e481 --- /dev/null +++ b/src/db/migrations/01-init.sql @@ -0,0 +1,13 @@ +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 */ +); + +CREATE INDEX events_date_index on events (date); +CREATE INDEX events_repetition_index on events (repetition);  | 
