MySQL Create Table SQL
Table Structure: okayapi_apijson_user:/tablelist/okayapi_apijson_user.html
-- MySQL Table okayapi_apijson_user
-- From: OkayAPI.com
CREATE TABLE `okayapi_apijson_user` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`sex` tinyint(2) NULL DEFAULT '0' COMMENT '性别:
0-男
1-女',
`name` varchar(20) NULL COMMENT '名称',
`tag` varchar(45) NULL COMMENT '标签',
`head` varchar(300) NULL DEFAULT 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png' COMMENT '头像url',
`contactIdList` varchar(100) NULL COMMENT '联系人id列表',
`pictureList` varchar(100) NULL COMMENT '照片列表',
`date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
KEY `sex` (`sex`),
KEY `name` (`name`),
KEY `tag` (`tag`),
KEY `head` (`head`),
KEY `contactIdList` (`contactIdList`),
KEY `pictureList` (`pictureList`),
KEY `date` (`date`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'web开发-用户公开信息表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-7 of 7 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
sex | tinyint(2) | 0 | 否 | 性别: 0-男 1-女 | 0 | |
name | varchar(20) | 是 | 名称 | |||
tag | varchar(45) | 是 | 标签 | |||
head | varchar(300) | https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png | 是 | 头像url | https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png | |
contactIdList | varchar(100) | 是 | 联系人id列表 | |||
pictureList | varchar(100) | 是 | 照片列表 | |||
date | timestamp | CURRENT_TIMESTAMP | 是 | 创建日期 | CURRENT_TIMESTAMP |