/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_CHKEFFECTIVE') 
 CREATE TABLE T_BCM_CHKEFFECTIVE (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEYEAR BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEPERIOD BIGINT DEFAULT 0 NOT NULL
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_CONDIFFEFFECTIVE') 
 CREATE TABLE T_BCM_CONDIFFEFFECTIVE (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEYEAR BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEPERIOD BIGINT DEFAULT 0 NOT NULL
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_LINKAGEEFFECTIVE') 
 CREATE TABLE T_BCM_LINKAGEEFFECTIVE (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEYEAR BIGINT DEFAULT 0 NOT NULL,
FEFFECTIVEPERIOD BIGINT DEFAULT 0 NOT NULL
);



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/
