MySQL数据库表结构设计
第 1-26 条, 共 26 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
uid | int(10) | 否 | 用户ID | 无索引 | ||
nickname | char(32) | 否 | 昵称 | 普通索引 | ||
sex | tinyint(3) | 0 | 否 | 性别 | 无索引 | 0 |
birthday | date | 0000-00-00 | 否 | 生日 | 无索引 | 0000-00-00 |
char(10) | 否 | qq号 | 无索引 | |||
login | int(10) | 0 | 否 | 登录次数 | 无索引 | 0 |
reg_ip | bigint(20) | 0 | 否 | 注册IP | 无索引 | 0 |
reg_time | int(10) | 0 | 否 | 注册时间 | 无索引 | 0 |
last_login_ip | bigint(20) | 0 | 否 | 最后登录IP | 无索引 | 0 |
last_login_time | int(10) | 0 | 否 | 最后登录时间 | 无索引 | 0 |
yesapi_zhiguo_ocenter_member_status | tinyint(4) | 0 | 否 | 会员状态 | 普通索引 | 0 |
last_login_role | int(11) | 否 | 无索引 | |||
show_role | int(11) | 否 | 个人主页显示角色 | 无索引 | ||
signature | text | 否 | 无索引 | |||
pos_province | varchar(10) | 否 | 无索引 | |||
pos_city | varchar(11) | 否 | 无索引 | |||
pos_district | varchar(11) | 否 | 无索引 | |||
pos_community | int(11) | 否 | 无索引 | |||
score1 | double | 0 | 是 | 用户积分 | 无索引 | 0 |
score2 | double | 0 | 是 | score2 | 无索引 | 0 |
score3 | double | 0 | 是 | score3 | 无索引 | 0 |
score4 | double | 0 | 是 | score4 | 无索引 | 0 |
con_check | int(11) | 0 | 否 | 无索引 | 0 | |
total_check | int(11) | 0 | 否 | 无索引 | 0 | |
fans | int(11) | 0 | 否 | 粉丝数 | 无索引 | 0 |
session_id | varchar(225) | 否 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:智果内容付费-会员表:https://open.yesapi.cn/tablelist/yesapi_zhiguo_ocenter_member.html
-- 数据库大全:智果内容付费-会员表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_zhiguo_ocenter_member` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(10) NOT NULL COMMENT '用户ID',
`nickname` char(32) NOT NULL COMMENT '昵称',
`sex` tinyint(3) NOT NULL DEFAULT '0' COMMENT '性别',
`birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT '生日',
`qq` char(10) NOT NULL COMMENT 'qq号',
`login` int(10) NOT NULL DEFAULT '0' COMMENT '登录次数',
`reg_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '注册IP',
`reg_time` int(10) NOT NULL DEFAULT '0' COMMENT '注册时间',
`last_login_ip` bigint(20) NOT NULL DEFAULT '0' COMMENT '最后登录IP',
`last_login_time` int(10) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`yesapi_zhiguo_ocenter_member_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '会员状态',
`last_login_role` int(11) NOT NULL COMMENT '',
`show_role` int(11) NOT NULL COMMENT '个人主页显示角色',
`signature` text NOT NULL COMMENT '',
`pos_province` varchar(10) NOT NULL COMMENT '',
`pos_city` varchar(11) NOT NULL COMMENT '',
`pos_district` varchar(11) NOT NULL COMMENT '',
`pos_community` int(11) NOT NULL COMMENT '',
`score1` double NOT NULL DEFAULT '0' COMMENT '用户积分',
`score2` double NOT NULL DEFAULT '0' COMMENT 'score2',
`score3` double NOT NULL DEFAULT '0' COMMENT 'score3',
`score4` double NOT NULL DEFAULT '0' COMMENT 'score4',
`con_check` int(11) NOT NULL DEFAULT '0' COMMENT '',
`total_check` int(11) NOT NULL DEFAULT '0' COMMENT '',
`fans` int(11) NOT NULL DEFAULT '0' COMMENT '粉丝数',
`session_id` varchar(225) NOT NULL COMMENT '',
KEY `nickname` (`nickname`),
KEY `yesapi_zhiguo_ocenter_member_status` (`yesapi_zhiguo_ocenter_member_status`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '智果内容付费-会员表';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢
MySQL数据库设计 智果内容付费-权限组与分类的对应关系表

