CREATE OR REPLACE SECURE VIEW nb_fact_subscription_period AS
SELECT
    ID, 
    USER_ID, 
    USER_UID, 
    SUBSCRIPTION_PLAN_ID, 
    BILLING_PROVIDER, 
    SUBSCRIBED_ON_PLATFORM, 
    TIER, 
    RENEWAL_INTERVAL, 
    PERIOD_ORIGIN_TYPE,
    PERIOD_START_TS_UTC, 
    PERIOD_END_TS_UTC, 
    ORIGINAL_SUBSCRIPTION_PURCHASE_TS_UTC, 
    CANCELED_AT_TS_UTC, 
    BILLING_CYCLE_NUMBER, 
    IS_USER_FIRST_SUBSCRIPTION_PERIOD, 
    IS_TRIAL, 
    IS_INTRO_OFFER, 
    IS_PROMOTIONAL_PRICE
FROM SUNO_PROD.PROD.fact_subscription_period