Appendix C. Data models, table/file definitions, et al used in the DFC Customer Insight business solution
"LOCATION" CHAR(20) NOT NULL ,
"CHECK_NO" BIGINT NOT NULL ,
"AMOUNT" DECIMAL(10,3) NOT NULL ,
"CHANNEL" CHAR(15) NOT NULL )
IN "USERSPACE1" ;
ALTER TABLE "PATRNSDW"."CHCK_SAV_TRANS_HIS"
ADD CONSTRAINT "CC9278958122705" PRIMARY KEY
("TRANSACTION_TS",
"MASTER_ACCOUNT_NUMBER",
"MEMBER_ACCOUNT_NUMBER");
---------------------------------------------------------------------
CREATE TABLE "PATRNSDW"."LOAN_TRANS_HIS" (
"TRANSACTION_TS" TIMESTAMP NOT NULL ,
"LOAN_ID" INTEGER NOT NULL ,
"TRANSACTION_TYPE" CHAR(20) NOT NULL ,
"AMOUNT" DECIMAL(10,3) NOT NULL ,
"DATE" DATE NOT NULL ,
"CHANNEL" CHAR(10) NOT NULL ,
"FORM" CHAR(10) NOT NULL ,
"APPLY_EXCESS_PAY" CHAR(1) NOT NULL ,
"CREATED_BY" CHAR(15) NOT NULL )
IN "USERSPACE1" ;
ALTER TABLE "PATRNSDW"."LOAN_TRANS_HIS"
ADD CONSTRAINT "CC9678958122795" PRIMARY KEY
("TRANSACTION_TS",
"LOAN_ID");
-----------------------------------------------------------------------
CREATE TABLE "PATRNSDW"."CHKSVG_SUM_DAY" (
"ACCOUNT_NBR" INTEGER NOT NULL ,
"REPORTING_PERIOD DATE NOT NULL,
"MEMBER_NUMBER" INTEGER NOT NULL ,
"MASTER_ACCOUNT_NBR" INTEGER NOT NULL ,
"DEBIT_CARD_NBR" CHAR(16) ,
"ACCOUNT_TYPE" CHAR(10) NOT NULL ,
"ACCOUNT_STATUS" CHAR(1) NOT NULL ,
"ACCOUNT_CREATION_DATE" DATE NOT NULL ,
"PRODUCT_ID" INTEGER NOT NULL ,
"NUMBER_OF_DEBIT_TRANS" INTEGER NOT NULL,
"NUMBER_OF_DEPOSITS SMALLINT NOT NULL,
"LAST_TRANSACTION_TS TIMESTAMP,
"TOTAL_MONEY_IN_DEPOSITS DECIMAL(15,2),
"TOTAL_MONEY_IN_WITHDRAWALS DECIMAL(15,2))
IN "USERSPACE1";
-- DDL Statements for primary key on Table "PATRNSDW"."CHKSVG_SUM_DAY"