-- RDS_PERSONA table
-- Populated by Glue job rds_to_s3_bots_persona_hourly_insert
CREATE TRANSIENT TABLE {persona_table_name} IF NOT EXISTS CLUSTER BY (p_date, p_hour) (
    ID VARCHAR(255),
    CREATED_AT TIMESTAMP_TZ(9),
    UPDATED_AT TIMESTAMP_TZ(9),
    ROOT_CLIP_ID VARCHAR(255),
    NAME VARCHAR(255),
    DESCRIPTION VARCHAR(16777216),
    IMAGE_S3_ID VARCHAR(255),
    USER_ID NUMBER(38,0),
    IS_SUNO_PERSONA BOOLEAN,
    IS_TRASHED BOOLEAN,
    IS_PUBLIC BOOLEAN,
    IS_PUBLIC_APPROVED BOOLEAN,
    UPVOTE_COUNT NUMBER(38,0),
    CREATED_SESSION_ID VARCHAR(255),
    P_DATE DATE,
    P_HOUR NUMBER(38,0)
);
