/**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_ENTRYCVTCURRENCY') 
 CREATE TABLE T_BCM_ENTRYCVTCURRENCY (
FID BIGINT DEFAULT 0 NOT NULL,
FMODELID BIGINT DEFAULT 0 NOT NULL,
FBUSINESSTYPE VARCHAR(50) DEFAULT ' ' NOT NULL
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_ENTRYCVTMEMB') 
 CREATE TABLE T_BCM_ENTRYCVTMEMB (
FENTRYID BIGINT DEFAULT 0 NOT NULL,
FID BIGINT DEFAULT 0 NOT NULL,
FSEQ INT DEFAULT 0 NOT NULL,
FMEMBERID BIGINT DEFAULT 0 NOT NULL,
FSCOPE INT DEFAULT 0 NOT NULL,
FDIMENSIONID BIGINT DEFAULT 0 NOT NULL,
FDIMENSIONNUM VARCHAR(50) DEFAULT ' ' NOT NULL
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_BCM_ENTRYEXCHANGE') 
 CREATE TABLE T_BCM_ENTRYEXCHANGE (
FID BIGINT DEFAULT 0 NOT NULL,
FMODELID BIGINT DEFAULT 0 NOT NULL,
FACCOUNT BIGINT DEFAULT 0 NOT NULL,
FCHANGETYPE BIGINT DEFAULT 0 NOT NULL,
FMYCOMPANY BIGINT DEFAULT 0 NOT NULL,
FINTERNALCOMPANY BIGINT DEFAULT 0 NOT NULL,
FMULTIGAAP BIGINT DEFAULT 0 NOT NULL,
FDIM1 BIGINT DEFAULT 0 NOT NULL,
FDIM2 BIGINT DEFAULT 0 NOT NULL,
FDIM3 BIGINT DEFAULT 0 NOT NULL,
FDIM4 BIGINT DEFAULT 0 NOT NULL,
FDIM5 BIGINT DEFAULT 0 NOT NULL,
FDIM6 BIGINT DEFAULT 0 NOT NULL
);



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