|
@ -195,17 +195,3 @@ ALTER TABLE `muc_messages`
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS=1
|
|
|
;
|
|
|
|
|
|
/* 用户视图:医生、患者、用户微信状态*/
|
|
|
create or replace view doctors as
|
|
|
select code id, name, sex, birthday birthdate, photo avatar, level
|
|
|
from wlyy.wlyy_doctor;
|
|
|
|
|
|
create or replace view patients as
|
|
|
select code id, name, sex, birthday birthdate, photo avatar, openid
|
|
|
from wlyy.wlyy_patient;
|
|
|
|
|
|
create or replace view wechat_status as
|
|
|
select code user_id, openid open_id
|
|
|
from wlyy.wlyy_patient
|
|
|
;
|