1. 授信申请表
create table if not exists dm_risk.lilso_credit_apply_table (
cst_id STRING comment "客户号",
credit_apply_no STRING comment "授信申请号(主键)",
credit_no STRING comment "合同号",
pboc_id STRING comment "人行征信编号",
credit_apply_time STRING comment "授信申请时间",
credit_intr STRING comment "授信利率",
credit_lmt STRING comment "授信额度",
credit_result STRING comment "授信结果",
credit_refuse_code STRING comment "拒绝原因",
credit_risk_level STRING comment "授信风险等级",
credit_channel STRING comment "授信渠道"
) comment '授信申请表';
2. 用信申请表
create table if not exists dm_risk.lilso_loan_table (
cst_id STRING comment "客户号",
credit_no STRING comment "合同号",
loan_apply_no STRING comment "用信申请编号(主键)",
loan_no STRING comment "借据号",
loan_apply_time STRING comment "用信申请时间",
loan_term STRING comment "期限",
loam_amt STRING comment "本金",
loan_intr STRING comment "利息",
loan_date STRING comment "放款日期",
loan_result STRING comment "用信申请结果",
loan_risk_level STRING comment "交易风险等级",
loan_refuse_code STRING comment "交易拒绝原因"
) comment '用信申请表';
3. 还款计划表
create table if not exists dm_risk.lilso_plan_table (
plan_no STRING comment "计划号(主键)",
loan_no STRING comment "借据号",
term_no STRING comment "期序",
due_date STRING comment "应还日",
repay_date STRING comment "实还日",
overdue_days STRING comment "逾期天数",
loan_amt STRING comment "借据金额",
remain_amt STRING comment "剩余本金",
prin_amt STRING comment "应还本金",
intr_amt STRING comment "应还利息",
penalty STRING comment "应还罚息",
act_amt STRING comment "实还金额",
act_prin_amt STRING comment "实还本金",
act_intr_amt STRING comment "实还利息",
act_penalty STRING comment "实还罚息",
repay_sts STRING comment "结清状态"
) comment '还款计划表';