forked from shihuaping/gamex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userdb.sql
22 lines (19 loc) · 1.15 KB
/
userdb.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
create database if not exists userdb default charset utf8;
use userdb;
-- 用户表
-- 用户只能单点登陆,单点登陆在redis中实现,不写数据库,这个表应该是读多写少的
create table if not exists user_base (
uid int not null default 0 comment '用户ID',
account varchar(64) not null default '' comment '用户帐号',
type int not null default 0 comment '用户类型[渠道],1原始,2游客,3微信',
name varchar(64) not null default '' comment '用户名',
nickName varchar(64) not null default '' comment '昵称',
password char(32) not null default '' comment '用户密码',
token char(32) not null default '' comment '用户动态token',
sex int not null default 0 comment '性别',
city int not null default 0 comment '城市',
province int not null default 0 comment '省份',
faceURL char(255) not null default '' comment '用户头像',
createTime timestamp not null default 0 comment '创建时间',
index(account,password)
) engine=innodb default charset 'utf8';