CREATE TABLE IF NOT EXISTS user_notification (
    "user" UUID PRIMARY KEY,
    email_enabled BOOLEAN NOT NULL DEFAULT false,
    in_app_enabled BOOLEAN NOT NULL DEFAULT true,
    push_enabled BOOLEAN NOT NULL DEFAULT false,
    digest_mode VARCHAR(255) NOT NULL,
    dnd_enabled BOOLEAN NOT NULL DEFAULT false,
    dnd_start_minute INTEGER,
    dnd_end_minute INTEGER,
    marketing_enabled BOOLEAN NOT NULL DEFAULT true,
    security_enabled BOOLEAN NOT NULL DEFAULT true,
    product_enabled BOOLEAN NOT NULL DEFAULT true,
    created_at TIMESTAMPTZ NOT NULL,
    updated_at TIMESTAMPTZ NOT NULL
);
