MySQL Create Table SQL
Table Structure: okayapi_fl_admin:/tablelist/okayapi_fl_admin.html
-- MySQL Table okayapi_fl_admin
-- From: OkayAPI.com
CREATE TABLE `okayapi_fl_admin` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID',
`name` varchar(30) NOT NULL COMMENT 'admin888',
`pwd` char(32) NOT NULL COMMENT 'admin',
`mobile` varchar(20) NOT NULL COMMENT '手机号',
`email` varchar(30) NOT NULL COMMENT '邮箱',
`avatar` varchar(150) NOT NULL COMMENT '头像',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '用户状态 0:正常; 1:禁用 ;2:未验证',
`login_time` int(11) NOT NULL DEFAULT '0' COMMENT '登录时间',
`delete_time` int(11) NOT NULL DEFAULT '0' COMMENT '删除时间',
KEY `role_id` (`role_id`),
KEY `name` (`name`),
KEY `pwd` (`pwd`),
KEY `mobile` (`mobile`),
KEY `email` (`email`),
KEY `avatar` (`avatar`),
KEY `status` (`status`),
KEY `login_time` (`login_time`),
KEY `delete_time` (`delete_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'CMS建站系统-管理员表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
role_id | int(11) | 0 | 否 | 角色ID | 0 | |
name | varchar(30) | 否 | admin888 | |||
pwd | char(32) | 否 | admin | |||
mobile | varchar(20) | 否 | 手机号 | |||
varchar(30) | 否 | 邮箱 | ||||
avatar | varchar(150) | 否 | 头像 | |||
status | tinyint(1) | 0 | 否 | 用户状态 0:正常; 1:禁用 ;2:未验证 | 0 | |
login_time | int(11) | 0 | 否 | 登录时间 | 0 | |
delete_time | int(11) | 0 | 否 | 删除时间 | 0 |