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);