panorama/migrations/1_initial.sql

13 lines
294 B
MySQL
Raw Normal View History

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