CREATE TABLE guides (
    id           BIGSERIAL    PRIMARY KEY,
    page_key     VARCHAR(100) NOT NULL UNIQUE,
    content_json TEXT         NOT NULL,
    enabled      BOOLEAN      NOT NULL DEFAULT TRUE,
    updated_by   VARCHAR(255),
    created_at   TIMESTAMPTZ  NOT NULL DEFAULT now(),
    updated_at   TIMESTAMPTZ
);

CREATE INDEX idx_guides_page_key ON guides (page_key);
