-- 增加成本类型分录
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_CAD_COSTTYPEENTRY')
CREATE TABLE T_CAD_COSTTYPEENTRY (
                                  FID BIGINT DEFAULT 0 NOT NULL,
                                  FENTRYID BIGINT DEFAULT 0 NOT NULL,
                                  FSEQ INT DEFAULT 0 NOT NULL,
                                  FCOSTTYPEID BIGINT DEFAULT 0 NOT NULL,
                                  FCOSTTYPEATTR VARCHAR(10) DEFAULT ' ' NOT NULL
);
