+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_72crm_admin_dept:/tablelist/okayapi_72crm_admin_dept.html


-- MySQL Table okayapi_72crm_admin_dept
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_admin_dept` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `dept_id` int(11) NULL COMMENT '',
    `pid` int(11) NULL DEFAULT '0' COMMENT '父级ID 顶级部门为0',
    `okayapi_72crm_admin_dept_name` varchar(64) NULL COMMENT '部门名称',
    `num` int(4) NULL COMMENT '排序 越大越靠后',
    `remark` varchar(64) NULL COMMENT '部门备注',
    KEY `dept_id` (`dept_id`),
    KEY `pid` (`pid`),
    KEY `okayapi_72crm_admin_dept_name` (`okayapi_72crm_admin_dept_name`),
    KEY `num` (`num`),
    KEY `remark` (`remark`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'CRM-部门表';

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
dept_idint(11)
pidint(11)0父级ID 顶级部门为00
okayapi_72crm_admin_dept_namevarchar(64)部门名称
numint(4)排序 越大越靠后
remarkvarchar(64)部门备注

Guess You Like

MySQL Table Design okayapi_72crm_admin_config

MySQL Table Design okayapi_72crm_admin_examine

MySQL Table Design okayapi_72crm_admin_examine_log

MySQL Table Design okayapi_72crm_admin_examine_record

MySQL Table Design okayapi_72crm_admin_examine_step

MySQL Table Design okayapi_72crm_admin_field_sort

MySQL Table Design okayapi_72crm_admin_fieldv

MySQL Table Design okayapi_72crm_admin_file

MySQL Table Design okayapi_72crm_admin_menu

MySQL Table Design okayapi_72crm_admin_message

MySQL Table Design okayapi_72crm_admin_record

MySQL Table Design okayapi_72crm_admin_role

MySQL Table Design okayapi_72crm_admin_role_menu

MySQL Table Design okayapi_72crm_admin_scene

MySQL Table Design okayapi_72crm_admin_scene_default

MySQL Table Design okayapi_72crm_admin_user

MySQL Table Design okayapi_72crm_admin_user_role

MySQL Table Design okayapi_72crm_crm_achievement

MySQL Table Design okayapi_72crm_crm_action_record

MySQL Table Design okayapi_72crm_crm_area

TOP ↑