central_update_20240521.sql 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. create table pay_item_group
  2. (
  3. id bigint auto_increment
  4. primary key,
  5. priority int default 0 not null,
  6. group_code varchar(255) default 'default' not null,
  7. group_name varchar(255) null,
  8. package_name varchar(255) not null comment '包名',
  9. app_platform int not null comment '应用平台',
  10. channel_name varchar(255) default '*' not null comment '渠道',
  11. app_version_name varchar(255) default '*' not null comment '版本',
  12. city varchar(255) default '*' not null comment '城市或地区',
  13. create_time datetime not null,
  14. update_time datetime not null,
  15. remark varchar(255) null,
  16. status int default 0 not null comment '0:启用 1:禁用'
  17. );
  18. create index package_name_index
  19. on pay_item_group (package_name);
  20. create table pay_item_ref_group
  21. (
  22. id bigint auto_increment
  23. primary key,
  24. group_id bigint not null,
  25. item_id bigint not null,
  26. sort int default 0 not null
  27. );
  28. create index group_id_index
  29. on pay_item_ref_group (group_id);