panorama/daemon/migrations/20211013053733_initial.up.sql

26 lines
482 B
MySQL
Raw Normal View History

CREATE TABLE "accounts" (
2021-10-25 23:42:14 +00:00
"id" INTEGER PRIMARY KEY AUTOINCREMENT
);
CREATE TABLE "mailboxes" (
2021-10-29 03:20:03 +00:00
"account" INTEGER NOT NULL,
"name" TEXT NOT NULL,
"uidvalidity" INTEGER NOT NULL,
PRIMARY KEY ("account", "name")
);
CREATE TABLE "messages" (
2021-10-29 03:20:03 +00:00
"id" TEXT PRIMARY KEY,
"date" DATETIME,
"subject" TEXT,
"from" JSON,
"sender" JSON,
"reply_to" JSON,
"to" JSON,
"cc" JSON,
"bcc" JSON,
"in_reply_to" TEXT,
"message_id" TEXT,
);