Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

14 linhas
668 B

  1. -- 消息表
  2. CREATE TABLE `message` (
  3. `id` INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  4. `patient_id` INT UNSIGNED NOT NULL COMMENT '患者ID',
  5. `type` TINYINT NOT NULL DEFAULT 0 COMMENT '类型:1=审核通过 2=审核拒绝',
  6. `title` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '标题',
  7. `content` TEXT COMMENT '详细内容',
  8. `reason` VARCHAR(500) NOT NULL DEFAULT '' COMMENT '驳回原因',
  9. `is_read` TINYINT NOT NULL DEFAULT 0 COMMENT '0=未读 1=已读',
  10. `create_time` DATETIME DEFAULT CURRENT_TIMESTAMP,
  11. KEY `idx_patient_id` (`patient_id`),
  12. KEY `idx_is_read` (`patient_id`, `is_read`)
  13. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='消息通知';