t_draw_apply.sql 1.5 KB

1234567891011121314151617181920212223
  1. -- 提款申请记录 t_draw_apply
  2. create table t_draw_apply(
  3. id int not null auto_increment comment 'id',
  4. code varchar(10) not null comment '提款申请记录编号',
  5. credit_code varchar(10) not null default '' comment '额度编号',
  6. credit_apply_code varchar(10) not null default '' comment '额度申请记录编号',
  7. product_code varchar(10) not null default '' comment '产品编号',
  8. enuu int not null default 0 comment '用户企业uu',
  9. start_date varchar(19) not null default '' comment '提款日期',
  10. submit_date varchar(19) not null default '' comment '申请日期',
  11. audit_date varchar(19) not null default '' comment '审核日期',
  12. end_date varchar(19) not null default '' comment '到期日期',
  13. draw_amount int not null default 0 comment '提款金额',
  14. transfer_amount decimal(15,2) not null default 0 comment '转让金额',
  15. month_rate decimal(6,4) not null default 0 comment '月利率',
  16. maturity smallint not null default 0 comment '融资期限(天)',
  17. audit_status smallint not null default 201 comment '受理阶段(201.受理中 202.未通过 200.已通过)',
  18. draw_status smallint not null default 211 comment '打款状态(211.未打款 210.已打款)',
  19. create_time timestamp not null default current_timestamp comment '创建时间',
  20. update_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
  21. primary key(id) comment '主键,没有重复',
  22. unique index(code) comment '提款申请记录编号,唯一索引'
  23. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT '提款申请记录';