# 销户需求
-- http://confluence.quantgroup.cn/pages/viewpage.action?pageId=61677003
CREATE TABLE `user_deregister_record`
(
    `id`              bigint(20)              NOT NULL AUTO_INCREMENT COMMENT '主键ID',
    `user_id`         bigint(20)              NOT NULL COMMENT '用户ID',
    `phone_no`        varchar(255)             NOT NULL COMMENT '手机号MD5值',
    `password`        varchar(128) DEFAULT '' NULL COMMENT '密码',
    `registered_from` bigint(20)   DEFAULT 0  null COMMENT '渠道ID',
    `uuid`            varchar(64)  DEFAULT '' COMMENT 'uuid',
    `deregister_time`     DATETIME                NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '销户时间',
    PRIMARY KEY (`id`),
    KEY `idx_user_id` (`user_id`) USING BTREE,
    KEY `idx_delete_time` (`deregister_time`)
) ENGINE = InnoDB
  AUTO_INCREMENT = 1
  DEFAULT CHARSET = utf8 COMMENT ='销户记录表';
