1. 授信申请表
/***
表名:授信申请表
码值:
credit_apply_time:精确到秒,理想取值为2023-02-09 15:01:36这种格式
credit_intr: 整数,如18代表利率为18%,检查是否为非数值类型
credit_lmt: 整数,如29000,检查是否为非数值类型
credit_result: 字符串类型,取值范围为['通过', '拒绝']
credit_refuse_code: 字符串类型,如D015,D025
credit_risk_level: 字符串类型,取值视具体情况而定
注意:
1. 检查一个客户是否只有一条记录
2. 检查一个授信申请号是否只有一条记录
3. 检查人行征信编号是否为空
4. 若表中存在空值,空值取值为Null
5. 检查整体表的空值情况
***/
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. 用信申请表
/***
表名:用信申请表
码值:
loan_apply_time:精确到秒,理想取值为2023-02-09 15:01:36这种格式
loan_amt: 整数,一定要有值
loan_intr: 整数,如18代表利率为18%,检查是否为非数值类型
loan_date: 日期,用信成功日期
注意:
1. 检查数据表的数据重复情况
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. 还款计划表
/***
表名:还款计划表
码值:
1. 缺失值,必需为空
***/
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 '还款计划表';