Browse Source

表结构确定

master
kuaileWu 2 years ago
parent
commit
347ebcca64
  1. 46
      pages/index/index.vue
  2. 216
      针灸挂号系统功能表结构.sql

46
pages/index/index.vue

@ -33,22 +33,54 @@
<view class="top flex"> <view class="top flex">
<view class="left"> <view class="left">
<view class="title flex"> <view class="title flex">
<text class="over2">中国中医科学院中国中医科学院中国中医科学院中国中医科学院中国中医科学院国中医科学院中国中医科学院国中医科学院中国中医科学院</text> <text class="over2">中国中医科学院</text>
<img :src="cssUrl+'index_comback.svg'" alt=""> <img :src="cssUrl+'index_comback.svg'" alt="">
</view> </view>
<view class="date over2"> <view class="date over2">
出诊周三下午周六上午周三下午周六上午周三下午周六上午周三下午周六上午周三下午周六上午周三下午周六上午 出诊周三下午周六上午
</view> </view>
</view> </view>
<view class="right"> <view class="right">
<img :src="cssUrl+'index_nav.svg'" alt=""> <view class="flex right-wrapper" style="justify-content:flex-end;">
<text>导航</text> <view class="">
<img :src="cssUrl+'index_nav.svg'" alt="">
<view>导航</view>
</view>
</view>
</view> </view>
</view> </view>
<view class="bot primary btn btn2"> <view class="bot primary btn btn2">
预约看诊 预约看诊
</view> </view>
</view> </view>
<view class="item">
<view class="top flex">
<view class="left">
<view class="title flex">
<text class="over2">中国中医科学院</text>
<img :src="cssUrl+'index_comback.svg'" alt="">
</view>
<view class="date over2">
出诊周三下午周六上午
</view>
</view>
<view class="right">
<view class="flex right-wrapper" style="justify-content:flex-end;">
<view class="">
<img :src="cssUrl+'index_nav.svg'" alt="">
<view>导航</view>
</view>
</view>
</view>
</view>
<view class="bot primary btn btn2">
预约看诊
</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -155,8 +187,12 @@
} }
.hospital-wrapper{ .hospital-wrapper{
.item{ .item{
&:last-child{
margin-bottom: 0rpx;
}
min-height: 207rpx; min-height: 207rpx;
width: 100%; width: 100%;
margin-bottom: 36rpx;
.top{ .top{
.left{ .left{
flex-grow: 1; flex-grow: 1;
@ -184,7 +220,6 @@
height: 52rpx; height: 52rpx;
background: #F4F4F4; background: #F4F4F4;
border-radius: 6rpx; border-radius: 6rpx;
float: right;
margin-right: 7rpx; margin-right: 7rpx;
} }
text{ text{
@ -195,7 +230,6 @@
color: #666666; color: #666666;
line-height: 37rpx; line-height: 37rpx;
text-align: center; text-align: center;
float: right;
margin-top: 5rpx; margin-top: 5rpx;
} }
} }

216
针灸挂号系统功能表结构.sql

@ -1,92 +1,67 @@
1. user_list CREATE TABLE `user_index` (
id `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
hid id `openid` varchar(255) NOT NULL DEFAULT '' COMMENT '公众号openid'
doctor_id id ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户索引表';
avator
nick
openid openid
create
CREATE TABLE `user_list` ( CREATE TABLE `user_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id', `hid` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`uindex_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户索引表id',
`avator` varchar(255) NOT NULL DEFAULT '' COMMENT '头像', `avator` varchar(255) NOT NULL DEFAULT '' COMMENT '头像',
`nick` varchar(100) NOT NULL DEFAULT '' COMMENT '昵称', `nick` varchar(100) NOT NULL DEFAULT '' COMMENT '昵称',
`openid` varchar(255) NOT NULL DEFAULT '' COMMENT '公众号openid',
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间' `create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者用户表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='登录用户表';
CREATE TABLE `visitor_index` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`idcard` char(100) NOT NULL DEFAULT '' COMMENT '身份证号'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='就诊用户索引表';
2. visitor_list
id
hid id
doctor_id id
uid id
name
idcard_ext
phone
create
status 0 1
CREATE TABLE `visitor_list` ( CREATE TABLE `visitor_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `vindex_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户索引表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`uid` int(11) NOT NULL DEFAULT '0' COMMENT '患者用户表id', `uid` int(11) NOT NULL DEFAULT '0' COMMENT '患者用户表id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名',
`idcard_ext` char(4) NOT NULL DEFAULT '' COMMENT '身份证后四位',
`phone` bigint(11) NOT NULL DEFAULT '0' COMMENT '手机号', `phone` bigint(11) NOT NULL DEFAULT '0' COMMENT '手机号',
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=正常 1=已删除' `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=正常 1=已删除'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='就诊用户人表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='就诊用户人表';
3. visit_list
id
hid id
doctor_id id
visitor_id id
visit_time 07:30-08:30
visit_date 2024-03-01
status 0= 1= 2= 3= 4= 5=退
acupuncture_status 0 1 2
start_acupuncture_time
CREATE TABLE `visit_list` ( CREATE TABLE `visit_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id', `visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id',
`visit_time` varchar(50) NOT NULL DEFAULT '' COMMENT '就诊预约时间 07:30-08:30', `visit_time` varchar(50) NOT NULL DEFAULT '' COMMENT '就诊预约时间 07:30-08:30',
`visit_date` varchar(50) NOT NULL DEFAULT '' COMMENT '就诊预约日期 2024-03-01', `visit_date` varchar(50) NOT NULL DEFAULT '' COMMENT '就诊预约日期 2024-03-01',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=待叫号 1=就诊中 2=就诊完成 3=已过期 4=已过号 5=已退号',
`acupuncture_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '针灸状态 0=待留针 1=已留针 2=已取针', `acupuncture_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '针灸状态 0=待留针 1=已留针 2=已取针',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=待叫号 1=就诊中 2=就诊完成 3=已过号',
`start_acupuncture_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '开始针灸时间' `start_acupuncture_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '开始针灸时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='就诊挂号表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='就诊挂号表';
4. visit_info_list CREATE TABLE `visit_stat_info` (
id
hid id
doctor_id id
visitor_id id
last_visit
total_num
remain_num
CREATE TABLE `visit_info_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id', `visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id',
`last_visit` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '最后就诊时间', `last_visit` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '最后就诊时间',
`total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总针灸次数', `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总针灸次数',
`remain_num` int(11) NOT NULL DEFAULT '0' COMMENT '剩余针灸次数' `remain_num` int(11) NOT NULL DEFAULT '0' COMMENT '剩余针灸次数'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户就诊信息表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者就诊信息统计表';
CREATE TABLE `hospital_depart_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id',
`depart_name` int(11) NOT NULL DEFAULT '0' COMMENT '科室部门名称',
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医院部门表';
CREATE TABLE `hospital_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`province` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`cite` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`h_name` varchar(255) NOT NULL DEFAULT '' COMMENT '医院名称',
`short_name` varchar(255) NOT NULL DEFAULT '' COMMENT '医院简称'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医院表';
1. doctor_list
id
name
phone
invite_code
desc 14
detail
openid openid
create
CREATE TABLE `doctor_list` ( CREATE TABLE `doctor_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名',
@ -98,142 +73,69 @@ CREATE TABLE `doctor_list` (
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间' `create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '注册时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生表';
2. doctor_helper_list CREATE TABLE `doctor_visit_info` (
id `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
doctor_id id `doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
hid `depart_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生科室id',
name `morning_worktime` char(50) NOT NULL DEFAULT '' COMMENT '上午上班时间-上午下班时间 9:00-12:00',
idcard `afternoon_worktime` char(50) NOT NULL DEFAULT '' COMMENT '下午上班时间-下午下班时间 14:00-17:30',
phone `holiday_work_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=否 1=是 节假日是否停诊',
type 0 1 `acupuncture_num` int(4) NOT NULL DEFAULT '0' COMMENT '一次挂号针灸次数',
status 0= 1= 2= `acupuncture_time` int(4) NOT NULL DEFAULT '0' COMMENT '每次针灸时长',
`bed_num` int(4) NOT NULL DEFAULT '0' COMMENT '时间段可预约床位数',
`acupuncture_num_exipre` int(4) NOT NULL DEFAULT '0' COMMENT '针灸次数有效期,单位天',
`visit_days` int(4) NOT NULL DEFAULT '0' COMMENT '距离当前可挂号最晚时间,单位小时,设置为2小时,用户可挂近两小时的号',
`notice` text COMMENT '就诊提醒',
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=就诊中 1=已停诊'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生所在科室出诊信息表';
CREATE TABLE `doctor_helper_list` ( CREATE TABLE `doctor_helper_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id', `doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `depart_id` int(11) NOT NULL DEFAULT '0' COMMENT '生科室id',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名', `name` varchar(255) NOT NULL DEFAULT '' COMMENT '姓名',
`idcard` varchar(255) NOT NULL DEFAULT '' COMMENT '身份证号', `idcard` varchar(100) NOT NULL DEFAULT '' COMMENT '身份证号',
`phone` bigint(11) NOT NULL DEFAULT '0' COMMENT '手机号', `phone` bigint(11) NOT NULL DEFAULT '0' COMMENT '手机号',
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=志愿者 1=助手', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=志愿者 1=助手',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=待审核 1=审核通过 2=停用' `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=待审核 1=审核通过 2=停用'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生助手表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生助手表';
3. doctor_helper_auth
id
hid 0=
doctor_id id
type 0= 1=
rule 0= 1= 2=
CREATE TABLE `doctor_helper_auth` ( CREATE TABLE `doctor_helper_auth` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id', `doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=志愿者 1=助手', `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=志愿者 1=助手',
`rule` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=代患者预约 1=帮患者取证 2=挂号条录入' `rule` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=代患者预约 1=帮患者取证 2=挂号条录入'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生助手权限表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生助手权限表';
4. hospital_list
id
doctor_id id
province
cite
name
short_name
departments
morning_worktime - 9:00-12:00
afternoon_worktime - 14:00-17:30
holiday_work_type 0= 1=
acupuncture_num
acupuncture_time
bed_num
acupuncture_num_exipre
visit_days ,2
notice
create
status 0 1
CREATE TABLE `hospital_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`province` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`cite` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`name` varchar(255) NOT NULL DEFAULT '' COMMENT '医院名称',
`short_name` varchar(255) NOT NULL DEFAULT '' COMMENT '医院简称',
`departments` varchar(100) NOT NULL DEFAULT '' COMMENT '科室部门',
`morning_worktime` char(50) NOT NULL DEFAULT '' COMMENT '上午上班时间-上午下班时间 9:00-12:00',
`afternoon_worktime` char(50) NOT NULL DEFAULT '' COMMENT '下午上班时间-下午下班时间 14:00-17:30',
`holiday_work_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=否 1=是 节假日是否停诊',
`acupuncture_num` int(4) NOT NULL DEFAULT '0' COMMENT '一次挂号针灸次数',
`acupuncture_time` int(4) NOT NULL DEFAULT '0' COMMENT '每次针灸时长',
`bed_num` int(4) NOT NULL DEFAULT '0' COMMENT '时间段可预约床位数',
`acupuncture_num_exipre` int(4) NOT NULL DEFAULT '0' COMMENT '针灸次数有效期,单位天',
`visit_days` int(4) NOT NULL DEFAULT '0' COMMENT '距离当前可挂号最晚时间,单位小时,设置为2小时,用户可挂近两小时的号',
`notice` text COMMENT '就诊提醒',
`create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=就诊中 1=已停诊'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医院表';
5. week_worktimes
id
hid
doctor_id id
week_day 1~7
type 0 1 2 3
CREATE TABLE `week_worktimes` ( CREATE TABLE `week_worktimes` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`week_day` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1~7 代表周一到周天', `week_day` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1~7 代表周一到周天',
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 休息 1 上午上班 2 下午上班 3 全天出诊' `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 休息 1 上午上班 2 下午上班 3 全天出诊'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每周出诊安排表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每周出诊安排表';
6. doctor_visit_list CREATE TABLE `doctor_visit_tmp` (
id
hid id
doctor_id id
morning_worktime - 9:00-12:00,0,1
afternoon_worktime - 14:00-17:30,0,1
date 2024-03-01
CREATE TABLE `doctor_visit_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`morning_worktime` char(50) NOT NULL DEFAULT '' COMMENT '上午上班时间-上午下班时间 9:00-12:00,0代表休息,1代表默认时间段', `morning_worktime` char(50) NOT NULL DEFAULT '' COMMENT '上午上班时间-上午下班时间 9:00-12:00,0代表休息,1代表默认时间段',
`afternoon_worktime` char(50) NOT NULL DEFAULT '' COMMENT '下午上班时间-下午下班时间 14:00-17:30,0代表休息,1代表默认时间段', `afternoon_worktime` char(50) NOT NULL DEFAULT '' COMMENT '下午上班时间-下午下班时间 14:00-17:30,0代表休息,1代表默认时间段',
`date` date NOT NULL DEFAULT '0000-00-00' COMMENT '调诊日期' `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '调诊日期'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生出诊调整表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生出诊临时调整表';
7.everyday_visit_nums
id
hid id
doctor_id id
times 07:30-08:30
date 2024-03-01
num
create_time
CREATE TABLE `everyday_visit_nums` ( CREATE TABLE `everyday_visit_nums` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`times` char(50) NOT NULL DEFAULT '' COMMENT '挂号时间段 07:30-08:30', `times` char(50) NOT NULL DEFAULT '' COMMENT '挂号时间段 07:30-08:30',
`date` date NOT NULL DEFAULT '0000-00-00' COMMENT '挂号日期', `date` date NOT NULL DEFAULT '0000-00-00' COMMENT '挂号日期',
`num` int(5) NOT NULL DEFAULT '0' COMMENT '挂号数量', `num` int(5) NOT NULL DEFAULT '0' COMMENT '挂号数量',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '放号时间' `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '放号时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每天挂号放号数量,放号表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='每天挂号放号数量,放号表';
8. register_opt_list
id
hid id
doctor_id id
visitor_id id
acupuncture_nums
type 0= 1=退
create_time
CREATE TABLE `register_opt_list` ( CREATE TABLE `register_opt_list` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY, `id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`hid` int(11) NOT NULL DEFAULT '0' COMMENT '医院id', `dv_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生所在科室出诊信息表id',
`doctor_id` int(11) NOT NULL DEFAULT '0' COMMENT '医生id',
`visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id', `visitor_id` int(11) NOT NULL DEFAULT '0' COMMENT '就诊用户人id',
`acupuncture_nums` int(11) NOT NULL DEFAULT '0' COMMENT '针灸次数', `acupuncture_nums` int(11) NOT NULL DEFAULT '0' COMMENT '针灸次数 挂号为正数 退号为负数'
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=挂号 1=退号',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间' `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='挂号操作表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='挂号操作表';
Loading…
Cancel
Save