共享视角显微镜配套小程序数据库设计
目 录
1 引言..................................................................................................................................................4
1.1 目的.......................................................................................................................................4
1.2 缩写与术语...........................................................................................................................4
1.3 参考文档...............................................................................................................................4
2 数据库环境......................................................................................................................................5
3 数据表整体设计..............................................................................................................................5
3.1 数据表清单...........................................................................................................................5
3.2 数据表关系...........................................................................................................................6
4 数据表逻辑结构..............................................................................................................................6
4.1 wx_user (微信用户)..............................................................................................................6
4.2 wx_img(图片表)................................................................................................................7
4.3 wx_case (病例表).................................................................................................................7
4.4 wx_case_comment (病例评论、诊断意见)........................................................................8
4.5 wx_group (教学群组表).......................................................................................................9
4.6 wx_qc(质控)..........................................................................................................................9
4.7 wx_settings (小程序系统设置)..........................................................................................10
4.8 wx_msg (待处理消息).......................................................................................................10
4.9 system_user (管理端用户登录表).....................................................................................11
4.10 system_role(系统登陆用户和组质检关联)....................................................................12
4.11 system_group(用户组表)..................................................................................................12
4.12 system_actions(系统操作)................................................................................................13
4.13 system_logs(系统各种日志数据)....................................................................................13
4.14 system_user_check(用户审核记录).................................................................................14
5 数据视图设计................................................................................................................................14
5.1 数据视图清单.....................................................................................................................14
5.2 数据视图 1..........................................................................................................................15
6 触发器和存储过程设计................................................................................................................15
6.1 触发器.................................................................................................................................15
6.2 存储过程.............................................................................................................................15
3