MySQL Create Table SQL
Table Structure: okayapi_fl_menu:/tablelist/okayapi_fl_menu.html
-- MySQL Table okayapi_fl_menu
-- From: OkayAPI.com
CREATE TABLE `okayapi_fl_menu` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` int(11) NOT NULL DEFAULT '0' COMMENT '父级ID',
`module` varchar(50) NOT NULL COMMENT '模型',
`controller` varchar(50) NOT NULL COMMENT '控制器',
`action` varchar(50) NOT NULL COMMENT '方法',
`data` varchar(50) NOT NULL COMMENT '额外参数',
`type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '菜单类型 1:权限认证+菜单;0:只作为菜单',
`name` varchar(50) NOT NULL COMMENT '菜单名称',
`icon` varchar(50) NOT NULL COMMENT '菜单图标',
`desc` varchar(250) NOT NULL COMMENT '备注',
`listorder` int(11) NOT NULL DEFAULT '50' COMMENT '排序ID',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态,0正常,1隐藏',
KEY `parent_id` (`parent_id`),
KEY `module` (`module`),
KEY `controller` (`controller`),
KEY `action` (`action`),
KEY `data` (`data`),
KEY `type` (`type`),
KEY `name` (`name`),
KEY `icon` (`icon`),
KEY `desc` (`desc`),
KEY `listorder` (`listorder`),
KEY `status` (`status`),
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-11 of 11 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
parent_id | int(11) | 0 | 否 | 父级ID | Normal Index | 0 |
module | varchar(50) | 否 | 模型 | |||
controller | varchar(50) | 否 | 控制器 | |||
action | varchar(50) | 否 | 方法 | |||
data | varchar(50) | 否 | 额外参数 | |||
type | tinyint(1) | 0 | 否 | 菜单类型 1:权限认证+菜单;0:只作为菜单 | 0 | |
name | varchar(50) | 否 | 菜单名称 | |||
icon | varchar(50) | 否 | 菜单图标 | |||
desc | varchar(250) | 否 | 备注 | |||
listorder | int(11) | 50 | 否 | 排序ID | 50 | |
status | tinyint(1) | 0 | 否 | 状态,0正常,1隐藏 | Normal Index | 0 |