迁移结束
This commit is contained in:
@@ -210,8 +210,6 @@ CREATE TABLE IF NOT EXISTS `tb_customer_service` (
|
||||
`status` varchar(20) NOT NULL DEFAULT 'offline' COMMENT '状态:online-在线 busy-忙碌 offline-离线',
|
||||
`skill_tags` json DEFAULT NULL COMMENT '技能标签',
|
||||
`max_concurrent` int NOT NULL DEFAULT 5 COMMENT '最大并发接待数',
|
||||
`current_workload` int NOT NULL DEFAULT 0 COMMENT '当前工作量',
|
||||
`total_served` int NOT NULL DEFAULT 0 COMMENT '累计服务次数',
|
||||
`avg_response_time` int DEFAULT NULL COMMENT '平均响应时间(秒)',
|
||||
`satisfaction_score` decimal(3,2) DEFAULT NULL COMMENT '满意度评分(0-5)',
|
||||
`tenant_id` bigint NOT NULL DEFAULT 1 COMMENT '租户ID',
|
||||
@@ -221,7 +219,6 @@ CREATE TABLE IF NOT EXISTS `tb_customer_service` (
|
||||
`delete_time` datetime DEFAULT NULL COMMENT '删除时间',
|
||||
`deleted` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除',
|
||||
PRIMARY KEY (`user_id`),
|
||||
KEY `idx_status_workload` (`status`, `current_workload`),
|
||||
KEY `idx_tenant_id` (`tenant_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='客服人员配置表';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user