新增功能
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
-- 通话记录表
|
||||
CREATE TABLE IF NOT EXISTS `la_tcm_call_record` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`diagnosis_id` int(11) NOT NULL DEFAULT '0' COMMENT '诊单ID',
|
||||
`caller_id` int(11) NOT NULL DEFAULT '0' COMMENT '呼叫方ID',
|
||||
`caller_type` varchar(20) NOT NULL DEFAULT '' COMMENT '呼叫方类型:doctor-医生 patient-患者',
|
||||
`callee_id` int(11) NOT NULL DEFAULT '0' COMMENT '被叫方ID',
|
||||
`callee_type` varchar(20) NOT NULL DEFAULT '' COMMENT '被叫方类型:doctor-医生 patient-患者',
|
||||
`call_type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '通话类型:1-语音通话 2-视频通话',
|
||||
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态:1-进行中 2-已结束 3-未接听 4-已取消',
|
||||
`start_time` int(11) NOT NULL DEFAULT '0' COMMENT '开始时间',
|
||||
`end_time` int(11) NOT NULL DEFAULT '0' COMMENT '结束时间',
|
||||
`duration` int(11) NOT NULL DEFAULT '0' COMMENT '通话时长(秒)',
|
||||
`room_id` varchar(100) NOT NULL DEFAULT '' COMMENT '房间ID',
|
||||
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
|
||||
`delete_time` int(11) DEFAULT NULL COMMENT '删除时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_diagnosis_id` (`diagnosis_id`),
|
||||
KEY `idx_caller_id` (`caller_id`),
|
||||
KEY `idx_callee_id` (`callee_id`),
|
||||
KEY `idx_create_time` (`create_time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='通话记录表';
|
||||
Reference in New Issue
Block a user