/**Begin D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_MEMBERORDER') 
 CREATE TABLE T_BCM_MEMBERORDER (
FID BIGINT DEFAULT 0 NOT NULL,
FMEMBERID BIGINT DEFAULT 0 NOT NULL,
FNUMBER VARCHAR(50) DEFAULT ' ' NOT NULL,
FDSEQ BIGINT,
FMEMBERTYPE VARCHAR(50) DEFAULT ' ' NOT NULL,
FDIMID BIGINT DEFAULT 0 NOT NULL,
FCSLSCHEMEID BIGINT DEFAULT 0 NOT NULL,
FMODELID BIGINT DEFAULT 0 NOT NULL
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_DIMCHANGESCHEDULE') 
 CREATE TABLE T_BCM_DIMCHANGESCHEDULE (
FID BIGINT DEFAULT 0 NOT NULL,
FDIMID BIGINT DEFAULT 0 NOT NULL,
FREFRESHTIME DATETIME,
FCHANGETIME DATETIME,
FCSLSCHEMEID BIGINT DEFAULT 0 NOT NULL,
FMODELID BIGINT DEFAULT 0 NOT NULL
);



/**End D:\DBA\1.4\PDM_UPGRADE\PDM1\BCM_table.sql **/
