CREATE TABLE iby_payment_rules (
    PAYMENT_RULE_ID          NUMBER(18, 0),
    PAYMENT_RULE_NAME        VARCHAR2(960)    NOT NULL,
    PAYMENT_METHOD_CODE      VARCHAR2(120)    NOT NULL,
    PAYMENT_RULE_PRIORITY    NUMBER(18, 0)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    APPLICATION_ID           NUMBER(18, 0)    NOT NULL,
    PAYMENT_RULE_ID          NUMBER(18, 0),
    PAYMENT_RULE_NAME        VARCHAR2(960)    NOT NULL,
    PAYMENT_METHOD_CODE      VARCHAR2(120)    NOT NULL,
    PAYMENT_RULE_PRIORITY    NUMBER(18, 0)    NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    APPLICATION_ID           NUMBER(18, 0)    NOT NULL,
    CONSTRAINT pk_iby_payment_rules PRIMARY KEY (PAYMENT_RULE_ID, PAYMENT_RULE_ID)
);
