CREATE TABLE IF NOT EXISTS mail_folder_state (
    tenant_slug  TEXT NOT NULL,
    mailbox_name TEXT NOT NULL,
    uidvalidity  BIGINT NOT NULL,
    uidnext      BIGINT NOT NULL,
    created_at   TIMESTAMPTZ NOT NULL DEFAULT now(),
    updated_at   TIMESTAMPTZ NOT NULL DEFAULT now(),
    PRIMARY KEY (tenant_slug, mailbox_name)
)
