home-schema.sql 851 B

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