+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_zd_wiki_page:/tablelist/okayapi_zd_wiki_page.html


-- MySQL Table okayapi_zd_wiki_page
-- From: OkayAPI.com
CREATE TABLE `okayapi_zd_wiki_page` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `space_id` bigint(20) NOT NULL COMMENT '空间ID',
    `name` varchar(50) NOT NULL COMMENT '名字',
    `parent_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '父ID',
    `node_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '节点类型 0=有子节点 1=终节点',
    `zan_num` int(11) NOT NULL DEFAULT '0' COMMENT '赞的数量',
    `edit_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '编辑类型 0=可编辑 1=不允许编辑',
    `create_user_id` bigint(20) NOT NULL COMMENT '创建人ID',
    `create_user_name` varchar(20) NOT NULL COMMENT '创建人名字',
    `update_user_id` bigint(20) NOT NULL COMMENT '修改人ID',
    `update_user_name` varchar(20) NOT NULL COMMENT '修改人名字',
    `del_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=有效 1=删除',
    `view_num` int(11) NOT NULL DEFAULT '0' COMMENT '阅读数',
    `seq_no` int(11) NOT NULL DEFAULT '0' COMMENT '顺序',
    KEY `space_id` (`space_id`),
    KEY `name` (`name`),
    KEY `parent_id` (`parent_id`),
    KEY `node_type` (`node_type`),
    KEY `zan_num` (`zan_num`),
    KEY `edit_type` (`edit_type`),
    KEY `create_user_id` (`create_user_id`),
    KEY `create_user_name` (`create_user_name`),
    KEY `update_user_id` (`update_user_id`),
    KEY `update_user_name` (`update_user_name`),
    KEY `del_flag` (`del_flag`),
    KEY `view_num` (`view_num`),
    KEY `seq_no` (`seq_no`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'WIKI-WIKI页面';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-13 of 13 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
space_idbigint(20)空间ID
namevarchar(50)名字
parent_idbigint(20)0父ID0
node_typetinyint(4)0节点类型 0=有子节点 1=终节点0
zan_numint(11)0赞的数量0
edit_typetinyint(4)0编辑类型 0=可编辑 1=不允许编辑0
create_user_idbigint(20)创建人ID
create_user_namevarchar(20)创建人名字
update_user_idbigint(20)修改人ID
update_user_namevarchar(20)修改人名字
del_flagtinyint(4)00=有效 1=删除0
view_numint(11)0阅读数0
seq_noint(11)0顺序0

Guess You Like

MySQL Table Design okayapi_zd_auth_info

MySQL Table Design okayapi_zd_user_auth

MySQL Table Design okayapi_zd_user_info

MySQL Table Design okayapi_zd_wiki_page_comment

MySQL Table Design okayapi_zd_wiki_page_content

MySQL Table Design okayapi_zd_wiki_page_file

MySQL Table Design okayapi_zd_wiki_page_history

MySQL Table Design okayapi_zd_wiki_page_zan

MySQL Table Design okayapi_zd_wiki_space

MySQL Table Design okayapi_zd_zyplayer_storage

MySQL Table Design okayapi_zd_db_favorite

MySQL Table Design okayapi_zd_db_history

TOP ↑