book-api/db/mysql/module/maku-module-member.sql
2024-04-01 09:50:16 +08:00

18 lines
989 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CREATE TABLE member_user
(
id bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
nick_name varchar(100) NOT NULL COMMENT '昵称',
mobile varchar(20) NOT NULL COMMENT '手机号',
avatar varchar(200) COMMENT '头像',
birthday date COMMENT '出生日期',
gender tinyint COMMENT '性别 0男 1女 2未知',
openid varchar(200) COMMENT '第三方平台,唯一标识',
last_login_ip varchar(100) COMMENT '最后登录IP',
last_login_time datetime COMMENT '最后登录时间',
remark varchar(500) COMMENT '备注',
status tinyint COMMENT '状态 0禁用 1启用',
version int COMMENT '版本号',
deleted tinyint COMMENT '删除标识 0正常 1已删除',
create_time datetime COMMENT '创建时间',
primary key (id)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT ='会员管理';