CREATE TABLE IF NOT EXISTS notify (
    id BIGSERIAL PRIMARY KEY,
    user_uuid UUID NOT NULL,
    title VARCHAR(255) NOT NULL,
    description TEXT,
    content TEXT NOT NULL,
    url VARCHAR(255),
    kind INTEGER NOT NULL,
    read_at TIMESTAMPTZ,
    deleted_at TIMESTAMPTZ,
    created_at TIMESTAMPTZ NOT NULL
);

CREATE INDEX idx_notify_user ON notify (user_uuid);
CREATE INDEX idx_notify_created_at ON notify (created_at);
