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

14 lines
236 B
SQL

CREATE TABLE "accounts" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT
);
CREATE TABLE "mailboxes" (
"account" INTEGER,
"name" TEXT,
PRIMARY KEY ("account", "name")
);
CREATE TABLE "messages" (
"id" TEXT PRIMARY KEY
);