MySQL Create Table SQL
Table Structure: okayapi_vhr_department:/tablelist/okayapi_vhr_department.html
-- MySQL Table okayapi_vhr_department
-- From: OkayAPI.com
CREATE TABLE `okayapi_vhr_department` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NULL COMMENT '部门名称',
`parentId` int(11) NULL COMMENT '',
`depPath` varchar(255) NULL COMMENT '',
`enabled` tinyint(1) NULL DEFAULT '1' COMMENT '',
`isParent` tinyint(1) NULL DEFAULT '0' COMMENT '',
KEY `name` (`name`),
KEY `parentId` (`parentId`),
KEY `depPath` (`depPath`),
KEY `enabled` (`enabled`),
KEY `isParent` (`isParent`),
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 |
---|---|---|---|---|---|---|
name | varchar(32) | 是 | 部门名称 | |||
parentId | int(11) | 是 | ||||
depPath | varchar(255) | 是 | ||||
enabled | tinyint(1) | 1 | 是 | 1 | ||
isParent | tinyint(1) | 0 | 是 | 0 |