智果内容付费-会员表 - MySQL数据库表结构设计

yesapi_zhiguo_ocenter_member
字段数:26 分类:付费内容 使用次数:0

智果内容付费-会员表 是一个MySQL数据库表,表名为 yesapi_zhiguo_ocenter_member, 共包含 26 个字段。 所属分类:付费内容。 该表提供了完整的字段定义、类型说明、默认值、索引设计和示例数据,可直接用于MySQL数据库建表。

💡 使用方式:复制下方SQL语句到MySQL客户端执行即可创建此表;也可通过果创云一键创建并生成RESTful API接口,免去手动部署。

MySQL数据库表结构设计

第 1-26 条, 共 26 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
uidint(10)用户ID无索引
nicknamechar(32)昵称普通索引
sextinyint(3)0性别无索引0
birthdaydate0000-00-00生日无索引0000-00-00
qqchar(10)qq号无索引
loginint(10)0登录次数无索引0
reg_ipbigint(20)0注册IP无索引0
reg_timeint(10)0注册时间无索引0
last_login_ipbigint(20)0最后登录IP无索引0
last_login_timeint(10)0最后登录时间无索引0
yesapi_zhiguo_ocenter_member_statustinyint(4)0会员状态普通索引0
last_login_roleint(11)无索引
show_roleint(11)个人主页显示角色无索引
signaturetext无索引
pos_provincevarchar(10)无索引
pos_cityvarchar(11)无索引
pos_districtvarchar(11)无索引
pos_communityint(11)无索引
score1double0用户积分无索引0
score2double0score2无索引0
score3double0score3无索引0
score4double0score4无索引0
con_checkint(11)0无索引0
total_checkint(11)0无索引0
fansint(11)0粉丝数无索引0
session_idvarchar(225)无索引

MySQL建表SQL语句

来源:智果内容付费-会员表  |  链接:https://open.yesapi.cn/tablelist/yesapi_zhiguo_ocenter_member.html

SQL
-- 数据库大全:智果内容付费-会员表
-- 来源: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 '智果内容付费-会员表';

复制后,到数据库执行,即可创建此数据库表。

📖 如何使用 智果内容付费-会员表 数据库表

  1. 手动建表:复制上方SQL语句,在MySQL客户端(如Navicat、phpMyAdmin、命令行)中执行即可
  2. 一键创建:点击「立即免费创建此表」按钮,果创云自动生成表和RESTful API接口
  3. API调用:创建表后,即可通过HTTP接口对数据进行增删改查操作
  4. 二次开发:支持自定义字段、添加业务逻辑、生成小程序/APP后端接口

❓ 常见问题

Q:智果内容付费-会员表表的主键是什么?
A:主键为 id 字段,类型为 bigint(20) unsigned NOT NULL AUTO_INCREMENT,自增无符号整数。
Q:如何在项目中使用这张表?
A:可以直接复制建表SQL到MySQL数据库中执行创建,也可以通过果创云平台一键创建并自动生成RESTful API接口,无需手动部署。
Q:这张表的索引有哪些?
A:nickname(普通索引)、yesapi_zhiguo_ocenter_member_status(普通索引),以及主键索引(id)。

猜你喜欢

回到顶部 ↑