MySQL Create Table SQL
Table Structure: okayapi_category:/tablelist/okayapi_category.html
-- MySQL Table okayapi_category
-- From: OkayAPI.com
CREATE TABLE `okayapi_category` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(128) NULL COMMENT '标题',
`okayapi_category_type` varchar(16) NULL COMMENT '类型',
`icon` varchar(255) NULL COMMENT '图标',
`parent_id` int(11) NULL DEFAULT '0' COMMENT '父节点ID',
`sort_seq` smallint(6) NULL DEFAULT '0' COMMENT '排序',
KEY `title` (`title`),
KEY `okayapi_category_type` (`okayapi_category_type`),
KEY `icon` (`icon`),
KEY `parent_id` (`parent_id`),
KEY `sort_seq` (`sort_seq`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '分类';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-5 of 5 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
title | varchar(128) | 是 | 标题 | |||
okayapi_category_type | varchar(16) | 是 | 类型 | |||
icon | varchar(255) | 是 | 图标 | |||
parent_id | int(11) | 0 | 是 | 父节点ID | 0 | |
sort_seq | smallint(6) | 0 | 是 | 排序 | 0 |