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