app-schema.sql 1.1 KB

12345678910111213141516171819202122232425262728
  1. create table if not exists `app_group`
  2. (
  3. id int unsigned primary key not null auto_increment,
  4. name varchar(100) comment '名称',
  5. order_num int comment '顺序'
  6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='应用组';
  7. create table if not exists `app_config`
  8. (
  9. id int unsigned primary key not null auto_increment,
  10. group_id int not null,
  11. name varchar(100) comment '名称',
  12. icon varchar(100) comment '图标',
  13. order_num int comment '顺序',
  14. view_type int default 0 comment '视图类型 0 - widget, 1 - web',
  15. android_widget varchar(100) comment 'android控件',
  16. ios_widget varchar(100) comment 'ios控件',
  17. web_url varchar(300) comment '网页',
  18. scope_platform int default 0 comment '专属平台的应用 0 -ALL',
  19. scope_company_id bigint comment '专属企业的应用',
  20. company_relate int comment '与公司相关的类型 0 - COMPANY_OR_PERSONAL'
  21. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='应用组';
  22. create table if not exists `app_company`
  23. (
  24. app_id int not null comment 'app_config.id',
  25. company_id bigint not null comment 'ac_company.id'
  26. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='企业应用绑定';