Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
shuidi-product-change
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • shuidi-product-change
  • Issues
  • #284

Closed
Open
Created May 29, 2019 by 黄宽宽@huangkuankuanDeveloper

教育版上线准备工作(包含医疗版相关数据表)

数据库变更

数据库:wiki

数据表加字段

表名:tb_company_wiki_content
描述:新增的聚合多条数据功能,需要一个title字段,且该字段需要审核
sql:
ALTER TABLE `tb_company_wiki_content` ADD `title` VARCHAR(255) NULL DEFAULT '' AFTER `tab_id`;
ALTER TABLE `tb_company_wiki_content` ADD `title_tmp` VARCHAR(255) NULL DEFAULT '' COMMENT '临时待审的title' AFTER `title`;
ALTER TABLE `tb_company_wiki_content` ADD `title_status` TINYINT(1) NOT NULL DEFAULT '1' COMMENT 'title的状态' AFTER `title_tmp`;
ALTER TABLE `tb_company_wiki_content` ADD `title_msg` VARCHAR(2000) NULL DEFAULT '' COMMENT 'title审核信息' AFTER `title_status`;

教育版数据库加表

表名:tb_education_character
描述:办学特色表
sql:
-- auto-generated definition
create table tb_education_character
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  content             text                                null
  comment '正式字段',
  content_tmp         text                                null
  comment '临时字段',
  sort                int default '0'                     null
  comment '排序',
  status              tinyint(1) default '1'              not null
  comment '默认1,1表示待审核',
  msg                 varchar(2000) default ''            not null
  comment '审核信息',
  operator            varchar(50) default ''              not null
  comment '操作人',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP
)
  comment '教育版百科-特色标签表';

create index tb_education_character_digest
  on tb_education_character (company_name_digest);
表名:tb_education_rector
描述:校长信息表
sql:
-- auto-generated definition
create table tb_education_rector
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  content             text                                null
  comment '正式字段,json格式,rector_name,rector_pic,idcard_no,idcard_pic,exp_year,verify_address,license_pic,',
  content_tmp         text                                null
  comment '临时字段',
  status              tinyint(1) default '1'              not null
  comment '默认1,1表示待审核',
  msg                 varchar(2000) default ''            not null
  comment '审核信息',
  operator            varchar(50) default ''              not null
  comment '操作人',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP
)
  comment '教育版百科-校长信息表';

create index tb_education_rector_digest
  on tb_education_rector (company_name_digest);
表名:tb_education_teacher
描述:教师信息表
sql:
-- auto-generated definition
create table tb_education_teacher
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  content             text                                null
  comment '正式字段,json格式,teacher_name,teacher_pic,idcard_no,license_no',
  content_tmp         text                                null
  comment '临时字段',
  else_content        text                                null
  comment '其他信息,比如从教师资格证网站上爬取的信息',
  else_content_tmp    text                                null,
  status              tinyint(1) default '1'              not null
  comment '默认1,1表示待审核',
  msg                 varchar(2000) default ''            not null
  comment '审核信息',
  operator            varchar(50) default ''              not null
  comment '操作人',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP
)
  comment '教育版百科-教师信息表';

create index tb_education_teacher_digest
  on tb_education_teacher (company_name_digest);

表名:tb_hospital_popup_diagram
描述:弹窗图表(教育版医疗版共用)
sql:
-- auto-generated definition
create table tb_hospital_popup_diagram
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  image_path          varchar(255) default ''             not null
  comment '弹窗图路径',
  image_path_tmp      varchar(255) default ''             not null
  comment '弹窗图路径,临时待审位置',
  open_url            varchar(255) default ''             not null
  comment '外链url',
  open_url_tmp        varchar(255) default ''             not null
  comment '外链url,临时待审位置',
  is_show             tinyint(1) default '1'              not null
  comment '是否显示,默认1,1表示显示,2表示关闭',
  msg                 varchar(2500) default ''            not null
  comment '审核备注',
  operator            varchar(255) default ''             not null
  comment '操作人',
  status              tinyint(1) default '1'              not null
  comment '默认1,1表示待审核',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP
)
  comment '医疗版百科-弹窗表';

create index tb_hospital_popup_diagram_digest
  on tb_hospital_popup_diagram (company_name_digest);

医疗版数据库加表

表名:tb_hospital_doctor
描述:医生信息表
sql:
-- auto-generated definition
create table tb_hospital_doctor
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  doc_name            varchar(50) default ''              not null
  comment '医生姓名',
  doc_name_tmp        varchar(50)                         null,
  doc_province        varchar(20) default ''              not null
  comment '执业省份',
  doc_province_tmp    varchar(20)                         null,
  doc_pic             varchar(255) default ''             not null
  comment '医生照片',
  doc_pic_tmp         varchar(255)                        null,
  lic_pic             varchar(255) default ''             not null
  comment '职业资格证照片',
  lic_pic_tmp         varchar(255)                        null,
  doc_idcard          varchar(50) default ''              not null
  comment '身份证号码',
  doc_idcard_tmp      varchar(50)                         null,
  doc_desc            text                                null
  comment '医生的个人简介',
  doc_desc_tmp        text                                null,
  is_show             tinyint(1) default '1'              not null
  comment '是否在搜索结果中显示,默认1,1表示显示,2表示关闭',
  msg                 varchar(2500)                       null,
  status              tinyint(1) default '1'              not null
  comment '默认1,1表示待审核',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP,
  else_content        text                                null,
  operator            varchar(50)                         null
)
  comment '医疗版百科-医生信息表';

create index tb_hospital_doctor_digest
  on tb_hospital_doctor (company_name_digest);
表名:tb_hospital_register_time
描述:挂号时间表
sql:
-- auto-generated definition
create table tb_hospital_register_time
(
  id                  int auto_increment
    primary key,
  company_name_digest varchar(32) default ''              not null
  comment 'digest',
  day_start           varchar(50)                         null
  comment '开始日',
  day_end             varchar(50)                         null
  comment '结束日',
  time_start          varchar(50)                         null
  comment '每天的开始时间',
  time_end            varchar(50)                         null
  comment '每天的结束时间',
  status              tinyint(1) default '1'              not null
  comment '状态,默认1',
  create_time         datetime default CURRENT_TIMESTAMP  not null,
  last_update_time    timestamp default CURRENT_TIMESTAMP not null
  on update CURRENT_TIMESTAMP
)
  comment '医疗版百科-挂号时间表';

create index tb_hospital_register_time_digest
  on tb_hospital_register_time (company_name_digest);
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking