CREATE TABLE "用户表"(
id integer GENERATED ALWAYS AS IDENTITY PRIMARY KEY ,
name VARCHAR(128) NOT NULL ,
email VARCHAR(128) NOT NULL ,
email_verified_at timestamp ,
password VARCHAR(128) NOT NULL ,
created_at timestamp ,
updated_at timestamp ,
openid VARCHAR(32) NOT NULL ,
sex Boolean ,
province VARCHAR(32) ,
city VARCHAR(32) ,
country VARCHAR(32) ,
headimgurl VARCHAR(255) ,
subscribe Boolean NOT NULL DEFAULT false,
level_id INT DEFAULT 0 ,
deposit DECIMAL(32,8) DEFAULT null ,
phone VARCHAR(32) DEFAULT '',
is_frz Boolean DEFAULT false
);
COMMENT ON COLUMN "用户表"."id" IS '用户id';
COMMENT ON COLUMN "用户表"."name" IS '用户名称';
COMMENT ON COLUMN "用户表"."email" IS '用户邮箱';
COMMENT ON COLUMN "用户表"."email_verified_at" IS '地址通过验证的时间';
COMMENT ON COLUMN "用户表"."password" IS '用户密码';
COMMENT ON COLUMN "用户表"."created_at" IS '创建时间';
COMMENT ON COLUMN "用户表"."updated_at" IS '更新时间';
COMMENT ON COLUMN "用户表"."openid" IS '微信用户唯一标示码';
COMMENT ON COLUMN "用户表"."sex" IS '性别 用户的性别,值为1时是男性,值为2时是女性,值为0时是未知';
COMMENT ON COLUMN "用户表"."province" IS '省份 用户个人资料填写的省份';
COMMENT ON COLUMN "用户表"."city" IS '城市 普通用户个人资料填写的城市';
COMMENT ON COLUMN "用户表"."country" IS '国家 国家代码';
COMMENT ON COLUMN "用户表"."headimgurl" IS '用户头像 最后一个数值代表正方形头像大小(有0、46、64、96、132数值可选,
0代表640*640正方形头像),用户没有头像时该项为空。若用户更换头像,原有头像URL将失效';
COMMENT ON COLUMN "用户表"."subscribe" IS '是否关注公众号 0是未关注1是已关注';
COMMENT ON COLUMN "用户表"."level_id" IS '会员等级id 用户等级id';
COMMENT ON COLUMN "用户表"."deposit" IS '累计充值金额 用户累计充值金额作为提升vip等级的';
COMMENT ON COLUMN "用户表"."phone" IS '用户手机号 用户手机号';
COMMENT ON COLUMN "用户表"."is_frz" IS '是否解封 是否冻结默认0正常1冻结';
网友评论