
-- DROP TABLE tl_work_flow;



CREATE TABLE tl_work_flow (
    object_id int NOT NULL ,
    object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
    object_created_date datetime DEFAULT getdate() NOT NULL
    ,
    name varchar(100) NOT NULL,
    sort_order numeric(12) NOT NULL,
    application_status varchar(200) NOT NULL,
    job_id numeric(12)  NOT NULL
    );



ALTER TABLE tl_work_flow ADD    
    CONSTRAINT PK_tl_work_flow PRIMARY KEY 
    (
        object_id
    ) ;
    
    
    
    CREATE INDEX idx_tl_work_flow_job_id 
    ON tl_work_flow (job_id);
