MySQL Create Table SQL
Table Structure: okayapi_travel_depot_staffs:/tablelist/okayapi_travel_depot_staffs.html
-- MySQL Table okayapi_travel_depot_staffs
-- From: OkayAPI.com
CREATE TABLE `okayapi_travel_depot_staffs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`depot_id` int(8) NOT NULL DEFAULT '0' COMMENT '对应票的ID',
`okayapi_travel_depot_staffs_name` varchar(100) NOT NULL COMMENT '职位',
`title` varchar(100) NOT NULL COMMENT '',
`card_no` varchar(100) NOT NULL COMMENT '工卡编号',
`mobile` varchar(32) NOT NULL COMMENT '',
`created` datetime NOT NULL COMMENT '',
`access_mode` set('year','month','day','all','noset') NOT NULL DEFAULT 'noset' COMMENT '限制方式:不限,总使用次数,每天限制、每月限制、每年限制',
`access_number` int(6) NOT NULL DEFAULT '0' COMMENT '限制的具体 次数',
KEY `depot_id` (`depot_id`),
KEY `okayapi_travel_depot_staffs_name` (`okayapi_travel_depot_staffs_name`),
KEY `title` (`title`),
KEY `card_no` (`card_no`),
KEY `mobile` (`mobile`),
KEY `created` (`created`),
KEY `access_mode` (`access_mode`),
KEY `access_number` (`access_number`),
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-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
depot_id | int(8) | 0 | 否 | 对应票的ID | 0 | |
okayapi_travel_depot_staffs_name | varchar(100) | 否 | 职位 | |||
title | varchar(100) | 否 | ||||
card_no | varchar(100) | 否 | 工卡编号 | |||
mobile | varchar(32) | 否 | ||||
created | datetime | 否 | ||||
access_mode | set('year','month','day','all','noset') | noset | 否 | 限制方式:不限,总使用次数,每天限制、每月限制、每年限制 | noset | |
access_number | int(6) | 0 | 否 | 限制的具体 次数 | 0 |