panorama/migrations/1_initial.sql

16 lines
389 B
MySQL
Raw Normal View History

2021-03-25 09:30:31 +00:00
CREATE TABLE IF NOT EXISTS "accounts" (
"id" INTEGER PRIMARY KEY,
-- hash of the account details, used to check if accounts have changed
"checksum" TEXT,
"name" TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS "mail" (
"id" INTEGER PRIMARY KEY,
"account_id" INTEGER,
"folder" TEXT,
"uid" INTEGER,
FOREIGN KEY ("account_id") REFERENCES "accounts" ("id")
);