CREATE TABLE ap_terms_lines (
    TERM_ID                      NUMBER        ,
    SEQUENCE_NUM                 NUMBER        ,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    DUE_PERCENT                  NUMBER        ,
    DUE_AMOUNT                   NUMBER        ,
    DUE_DAYS                     NUMBER        ,
    DUE_DAY_OF_MONTH             NUMBER        ,
    DUE_MONTHS_FORWARD           NUMBER        ,
    DISCOUNT_PERCENT             NUMBER        ,
    DISCOUNT_DAYS                NUMBER        ,
    DISCOUNT_DAY_OF_MONTH        NUMBER        ,
    DISCOUNT_MONTHS_FORWARD      NUMBER        ,
    DISCOUNT_PERCENT_2           NUMBER        ,
    DISCOUNT_DAYS_2              NUMBER        ,
    DISCOUNT_DAY_OF_MONTH_2      NUMBER        ,
    DISCOUNT_MONTHS_FORWARD_2    NUMBER        ,
    DISCOUNT_PERCENT_3           NUMBER        ,
    DISCOUNT_DAYS_3              NUMBER        ,
    DISCOUNT_DAY_OF_MONTH_3      NUMBER        ,
    DISCOUNT_MONTHS_FORWARD_3    NUMBER        ,
    ATTRIBUTE_CATEGORY           VARCHAR2(600) ,
    ATTRIBUTE1                   VARCHAR2(600) ,
    ATTRIBUTE2                   VARCHAR2(600) ,
    ATTRIBUTE3                   VARCHAR2(600) ,
    ATTRIBUTE4                   VARCHAR2(600) ,
    ATTRIBUTE5                   VARCHAR2(600) ,
    ATTRIBUTE6                   VARCHAR2(600) ,
    ATTRIBUTE7                   VARCHAR2(600) ,
    ATTRIBUTE8                   VARCHAR2(600) ,
    ATTRIBUTE9                   VARCHAR2(600) ,
    ATTRIBUTE10                  VARCHAR2(600) ,
    ATTRIBUTE11                  VARCHAR2(600) ,
    ATTRIBUTE12                  VARCHAR2(600) ,
    ATTRIBUTE13                  VARCHAR2(600) ,
    ATTRIBUTE14                  VARCHAR2(600) ,
    ATTRIBUTE15                  VARCHAR2(600) ,
    FIXED_DATE                   DATE          ,
    CALENDAR                     VARCHAR2(120) ,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)      NOT NULL,
    SEED_DATA_SOURCE             VARCHAR2(2048),
    ORA_SEED_SET1                VARCHAR2(4)       NOT NULL,
    ORA_SEED_SET2                VARCHAR2(4)       NOT NULL,
    TERM_ID                      NUMBER        ,
    SEQUENCE_NUM                 NUMBER        ,
    LAST_UPDATE_DATE             TIMESTAMP(6)      NOT NULL,
    LAST_UPDATED_BY              VARCHAR2(256)     NOT NULL,
    CREATION_DATE                TIMESTAMP(6)      NOT NULL,
    CREATED_BY                   VARCHAR2(256)     NOT NULL,
    LAST_UPDATE_LOGIN            VARCHAR2(128) ,
    DUE_PERCENT                  NUMBER        ,
    DUE_AMOUNT                   NUMBER        ,
    DUE_DAYS                     NUMBER        ,
    DUE_DAY_OF_MONTH             NUMBER        ,
    DUE_MONTHS_FORWARD           NUMBER        ,
    DISCOUNT_PERCENT             NUMBER        ,
    DISCOUNT_DAYS                NUMBER        ,
    DISCOUNT_DAY_OF_MONTH        NUMBER        ,
    DISCOUNT_MONTHS_FORWARD      NUMBER        ,
    DISCOUNT_PERCENT_2           NUMBER        ,
    DISCOUNT_DAYS_2              NUMBER        ,
    DISCOUNT_DAY_OF_MONTH_2      NUMBER        ,
    DISCOUNT_MONTHS_FORWARD_2    NUMBER        ,
    DISCOUNT_PERCENT_3           NUMBER        ,
    DISCOUNT_DAYS_3              NUMBER        ,
    DISCOUNT_DAY_OF_MONTH_3      NUMBER        ,
    DISCOUNT_MONTHS_FORWARD_3    NUMBER        ,
    ATTRIBUTE_CATEGORY           VARCHAR2(600) ,
    ATTRIBUTE1                   VARCHAR2(600) ,
    ATTRIBUTE2                   VARCHAR2(600) ,
    ATTRIBUTE3                   VARCHAR2(600) ,
    ATTRIBUTE4                   VARCHAR2(600) ,
    ATTRIBUTE5                   VARCHAR2(600) ,
    ATTRIBUTE6                   VARCHAR2(600) ,
    ATTRIBUTE7                   VARCHAR2(600) ,
    ATTRIBUTE8                   VARCHAR2(600) ,
    ATTRIBUTE9                   VARCHAR2(600) ,
    ATTRIBUTE10                  VARCHAR2(600) ,
    ATTRIBUTE11                  VARCHAR2(600) ,
    ATTRIBUTE12                  VARCHAR2(600) ,
    ATTRIBUTE13                  VARCHAR2(600) ,
    ATTRIBUTE14                  VARCHAR2(600) ,
    ATTRIBUTE15                  VARCHAR2(600) ,
    FIXED_DATE                   DATE          ,
    CALENDAR                     VARCHAR2(120) ,
    OBJECT_VERSION_NUMBER        NUMBER(9, 0)      NOT NULL,
    SEED_DATA_SOURCE             VARCHAR2(2048),
    ORA_SEED_SET1                VARCHAR2(4)       NOT NULL,
    ORA_SEED_SET2                VARCHAR2(4)       NOT NULL,
    CONSTRAINT pk_ap_terms_lines PRIMARY KEY (TERM_ID, SEQUENCE_NUM, TERM_ID, SEQUENCE_NUM)
);
