create table C_CONTRACT_ITEM
(
    ID               VARCHAR2(36),
    TENANCY_ID       VARCHAR2(36),
    CONTRACT_ID      VARCHAR2(36),
    CATEGORY_ID      VARCHAR2(36),
    ITEM_ID          VARCHAR2(36),
    CREATED_BY       VARCHAR2(36),
    CREATED_ON       DATE,
    UPDATED_BY       VARCHAR2(36),
    UPDATED_ON       DATE,
    LIFE_STATUS      NUMBER(1),
    MIN_AMOUNT       NUMBER(10, 2),
    MAX_AMOUNT       NUMBER(10, 2),
    IS_FORMAT        NUMBER(1),
    FORMAT_UNIT      NUMBER(1),
    CURRENCY         VARCHAR2(8),
    GL_CODE          VARCHAR2(20),
    FLAT_RATE        NUMBER(1),
    ACCOUNT_TYPE     NUMBER(1),
    NOTES            VARCHAR2(100),
    TONS_STERE       NUMBER(5, 2),
    BYDAY            NUMBER(1),
    BYTON            NUMBER(1),
    BYAGENT          NUMBER(1),
    DERATE_TYPE      NUMBER(1),
    DERATE_DAY       NUMBER(3),
    UNIT             VARCHAR2(5),
    ENABLED          NUMBER(1),
    AMOUNT_FORMAT    NUMBER(2),
    MIN_TON          NUMBER(22, 3),
    RECEIVE_CODE     VARCHAR2(20),
    PAY_CODE         VARCHAR2(20),
    ITEM_CODE        VARCHAR2(20),
    EN_CODE          VARCHAR2(20),
    SOURCE_ITEM_CODE VARCHAR2(32),
    CURRENCY_RATIO   NUMBER(5),
    RECEIVE_CURRENCY VARCHAR2(8),
    PAY_CURRENCY     VARCHAR2(8),
    RECEIVE_MAN      VARCHAR2(36),
    PAY_MAN          VARCHAR2(36),
    DEL_FLAG         NUMBER(1),
    FORMULA          VARCHAR2(2000)
)
/

INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('2879e6a3707e41de803a350699d80550', 'QHD', '4a5a85b8a4fb454694d2a27dfe09d41a', '4ecc11f7edab4b3782302801d6d1aae2', '8847970953024d8fbe4a7741c6171bcb', 'feeadmin', DATE '2022-05-18', 'feeadmin', DATE '2022-05-18', 1, null, null, null, null, null, null, 0, null, null, null, null, 0, null, null, null, '0', null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null);
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('37787ad994e04cce9f6c4ca3141259fe', 'default', '870d743d9dbf4b938fca8f5586b78644', 'c397ac732d5b432db877ed8645780582', '561ad04370354c5695109bf3725207ac', 'admin', DATE '2022-04-25', 'admin', DATE '2022-04-25', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, null);
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('73a2ac0e08e6437c9f1beebac6030ffe', 'default', 'ccb1deff1086449d87106a6478f34ca4', 'c397ac732d5b432db877ed8645780582', 'd49222901a464381ab592a273cc7772e', 'admin', DATE '2021-08-12', 'admin', DATE '2022-01-05', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, 'if("1".equals(TYPE)){100;}');
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('a492dce23a524a82b11b175a78e08499', 'default', 'ccb1deff1086449d87106a6478f34ca4', 'c397ac732d5b432db877ed8645780582', '561ad04370354c5695109bf3725207ac', 'admin', DATE '2021-08-12', 'admin', DATE '2022-01-05', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, null);
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('bb7452968cf44c098caedec18a51e64e', 'default', '870d743d9dbf4b938fca8f5586b78644', 'c397ac732d5b432db877ed8645780582', '4d1facc12ea44f7a95776861b8985e06', 'admin', DATE '2022-04-25', 'admin', DATE '2022-04-25', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, 'alert(''xss'');');
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('c31f792934a6481abac3abcaa4a1f2ce', 'default', '870d743d9dbf4b938fca8f5586b78644', 'c397ac732d5b432db877ed8645780582', 'd49222901a464381ab592a273cc7772e', 'admin', DATE '2022-04-25', 'admin', DATE '2022-04-25', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, 'if("1".equals(TYPE)){100;}');
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('f3edeb1b969c4313918ec4bcdd0e739a', 'default', 'ccb1deff1086449d87106a6478f34ca4', '1264dde8bc4c4b1ebe9157e219b74e64', 'e4b8be89c4b74a03acad186786881479', 'admin', DATE '2021-08-02', 'admin', DATE '2021-08-02', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, null, null, 'demo1', null, null, null, null, null, null, null, 1, null);
INSERT INTO AG_DEV_ORACLE.C_CONTRACT_ITEM (ID, TENANCY_ID, CONTRACT_ID, CATEGORY_ID, ITEM_ID, CREATED_BY, CREATED_ON, UPDATED_BY, UPDATED_ON, LIFE_STATUS, MIN_AMOUNT, MAX_AMOUNT, IS_FORMAT, FORMAT_UNIT, CURRENCY, GL_CODE, FLAT_RATE, ACCOUNT_TYPE, NOTES, TONS_STERE, BYDAY, BYTON, BYAGENT, DERATE_TYPE, DERATE_DAY, UNIT, ENABLED, AMOUNT_FORMAT, MIN_TON, RECEIVE_CODE, PAY_CODE, ITEM_CODE, EN_CODE, SOURCE_ITEM_CODE, CURRENCY_RATIO, RECEIVE_CURRENCY, PAY_CURRENCY, RECEIVE_MAN, PAY_MAN, DEL_FLAG, FORMULA) VALUES ('ff7e7cea921749e585084e19436946f6', 'default', 'ccb1deff1086449d87106a6478f34ca4', 'c397ac732d5b432db877ed8645780582', '4d1facc12ea44f7a95776861b8985e06', 'admin', DATE '2021-08-12', 'admin', DATE '2022-02-23', 1, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, '0', null, null, null, '1', null, null, null, null, null, null, null, null, null, 0, 'alert(''xss'');');
