CREATE TABLE jg_zz_vat_trx_upg_stg (
    VAT_TRX_ID               NUMBER(18, 0),
    VAT_HEADER_ID            NUMBER(18, 0)    NOT NULL,
    ORGANIZATION_ID          NUMBER(18, 0)    NOT NULL,
    APPLICATION_ID           NUMBER(18, 0)    NOT NULL,
    ENTITY_CODE              VARCHAR2(120),
    EVENT_CLASS_CODE         VARCHAR2(120),
    TRX_ID                   NUMBER(18, 0)    NOT NULL,
    LEDGER_ID                NUMBER(18, 0)    NOT NULL,
    TAX_INVOICE_DATE         DATE         ,
    TAX_REGIME_CODE          VARCHAR2(120),
    TAX_RATE_ID              NUMBER(18, 0),
    TAX_RATE_CODE            VARCHAR2(120),
    MIGRATION_FLAG           VARCHAR2(4)  ,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    VAT_TRX_ID               NUMBER(18, 0),
    VAT_HEADER_ID            NUMBER(18, 0)    NOT NULL,
    ORGANIZATION_ID          NUMBER(18, 0)    NOT NULL,
    APPLICATION_ID           NUMBER(18, 0)    NOT NULL,
    ENTITY_CODE              VARCHAR2(120),
    EVENT_CLASS_CODE         VARCHAR2(120),
    TRX_ID                   NUMBER(18, 0)    NOT NULL,
    LEDGER_ID                NUMBER(18, 0)    NOT NULL,
    TAX_INVOICE_DATE         DATE         ,
    TAX_REGIME_CODE          VARCHAR2(120),
    TAX_RATE_ID              NUMBER(18, 0),
    TAX_RATE_CODE            VARCHAR2(120),
    MIGRATION_FLAG           VARCHAR2(4)  ,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CONSTRAINT pk_jg_zz_vat_trx_upg_stg PRIMARY KEY (VAT_TRX_ID, VAT_TRX_ID)
);
