/*费用报销单项目干系人*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_ER_DAILYREIMBURSEOWER')
CREATE TABLE T_ER_DAILYREIMBURSEOWER (
                                          FPKID BIGINT DEFAULT 0 NOT NULL,
                                          FID BIGINT DEFAULT 0 NOT NULL,
                                          FBASEDATAID BIGINT DEFAULT 0 NOT NULL
);

EXEC P_ALTERPK 'PK_T_ER_DAILYREIMBURSEOWER', 'T_ER_DAILYREIMBURSEOWER', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_ER_DAILYREIMBURSEOWER' AND KSQL_INDNAME = 'IDX_ER_DAILYREIMBURSEOWER_FID') CREATE INDEX IDX_ER_DAILYREIMBURSEOWER_FID ON T_ER_DAILYREIMBURSEOWER ( FID );