central_update_20240806.sql 967 B

1234567891011121314151617181920212223
  1. create table pay_renew
  2. (
  3. id bigint auto_increment
  4. primary key,
  5. out_trade_no varchar(128) not null comment '原始支付订单号',
  6. ssid varchar(64) not null comment '用户唯一标识',
  7. device_id varchar(64) not null comment '设备id',
  8. project_code varchar(255) null comment '产品编号',
  9. item_id bigint not null comment '商品id',
  10. item_code varchar(255) not null comment '商品编号',
  11. item_name varchar(255) not null comment '商品名称',
  12. amount bigint not null comment '商品价格',
  13. renew_time datetime null comment '续订时间',
  14. expire_time datetime null comment '到期时间',
  15. create_time datetime not null comment '创建时间',
  16. update_time datetime not null comment '更新时间',
  17. status int not null
  18. )
  19. comment '续订表';
  20. create index idx_out_trade_no
  21. on pay_renew (out_trade_no);