app-schema.sql 1.0 KB

123456789101112131415161718192021222324252627
  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. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='应用组';
  21. create table if not exists `app_company`
  22. (
  23. app_id int not null comment 'app_config.id',
  24. company_id bigint not null comment 'ac_company.id'
  25. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='企业应用绑定';