Files
zyt/server/sql/tcm_patient_trtc.sql
2026-05-11 17:49:38 +08:00

19 lines
1.0 KiB
SQL
Executable File

-- 患者 TRTC 账号表
CREATE TABLE IF NOT EXISTS `la_tcm_patient_trtc` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`patient_id` int(11) NOT NULL DEFAULT '0' COMMENT '患者ID',
`user_id` varchar(100) NOT NULL DEFAULT '' COMMENT 'TRTC用户ID',
`user_sig` text COMMENT 'UserSig签名',
`sdk_app_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SDKAppID',
`expire_time` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间',
`is_active` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否激活:0-未激活 1-已激活',
`last_login_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`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`),
UNIQUE KEY `idx_patient_id` (`patient_id`),
KEY `idx_user_id` (`user_id`),
KEY `idx_create_time` (`create_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='患者TRTC账号表';