book-api/db/postgresql/module/maku-module-member.sql
2024-06-03 15:02:41 +08:00

35 lines
1.4 KiB
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 bigserial NOT NULL,
nick_name varchar(100) NOT NULL,
mobile varchar(20) NOT NULL,
avatar varchar(200),
birthday timestamp,
gender int,
openid varchar(200),
last_login_ip varchar(100),
last_login_time timestamp,
remark varchar(500),
tenant_id int8,
status int,
version int,
deleted int,
create_time timestamp,
primary key (id)
);
COMMENT ON TABLE member_user IS '会员管理';
COMMENT ON COLUMN member_user.id IS 'id';
COMMENT ON COLUMN member_user.nick_name IS '昵称';
COMMENT ON COLUMN member_user.mobile IS '手机号';
COMMENT ON COLUMN member_user.avatar IS '头像';
COMMENT ON COLUMN member_user.birthday IS '出生日期';
COMMENT ON COLUMN member_user.gender IS '性别 0男 1女 2未知';
COMMENT ON COLUMN member_user.openid IS '第三方平台,唯一标识';
COMMENT ON COLUMN member_user.last_login_ip IS '最后登录IP';
COMMENT ON COLUMN member_user.last_login_time IS '最后登录时间';
COMMENT ON COLUMN member_user.remark IS '备注';
COMMENT ON COLUMN member_user.status IS '状态 0禁用 1启用';
COMMENT ON COLUMN member_user.version IS '版本号';
COMMENT ON COLUMN member_user.deleted IS '删除标识 0正常 1已删除';
COMMENT ON COLUMN member_user.create_time IS '创建时间';