
-- @AutoRun
-- drop table tl_payment_plan;



CREATE TABLE tl_payment_plan (
    object_id numeric(12) NOT NULL ,
    object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
    object_created_date timestamp DEFAULT NOW() NOT NULL
    ,
    stripe_reference varchar(100) NOT NULL,
    plan_name text NULL,
    description text NULL,
    currency_type varchar(200) NOT NULL,
    amount numeric(20,5) NOT NULL,
    interval varchar(200) NOT NULL,
    interval_count numeric(12) NOT NULL,
    trial_period_days numeric(12) NULL,
    active_job_count numeric(12) NULL
    );



ALTER TABLE tl_payment_plan ADD    
    CONSTRAINT pk_tl_payment_plan PRIMARY KEY 
    (
        object_id
    ) ;
    
    
    