t_repay_detail.sql 1.1 KB

1234567891011121314151617
  1. -- 用户还款记录信息 t_repay_detail
  2. create table t_repay_detail(
  3. id int not null auto_increment comment 'id',
  4. code varchar(10) not null comment '还款明细编号',
  5. repay_code varchar(10) not null default '' comment '用户还款编号',
  6. repay_date varchar(19) not null default '' comment '还款日期',
  7. actual_repay_interest decimal(15,2) not null default 0 comment '实际归还利息',
  8. actual_repay_principal decimal(15,2) not null default 0 comment '实际归还本金',
  9. should_repay_total decimal(15,2) not null default 0 comment '实际归还本息',
  10. over_repay_principal decimal(15,2) not null default 0 comment '逾期金额',
  11. over_repay_interest decimal(15,2) not null default 0 comment '逾期利息',
  12. over_date_count smallint not null default 0 comment '逾期天数',
  13. create_time timestamp not null default current_timestamp comment '创建时间',
  14. update_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
  15. primary key(id) comment '主键,没有重复',
  16. unique index(code) comment '还款明细编号,唯一索引'
  17. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT '用户还款记录信息';