MySQL Create Table SQL
Table Structure: okayapi_opms_pms_overtimes:/tablelist/okayapi_opms_pms_overtimes.html
-- MySQL Table okayapi_opms_pms_overtimes
-- From: OkayAPI.com
CREATE TABLE `okayapi_opms_pms_overtimes` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`userid` bigint(20) NULL COMMENT '请假人',
`started` int(10) NULL COMMENT '开始时间',
`ended` int(10) NULL COMMENT '结束时间',
`longtime` tinyint(4) NULL COMMENT '加班时长',
`holiday` tinyint(1) NULL COMMENT '节假日1是2否',
`way` tinyint(1) NULL COMMENT '核算方式1调休,2加班费',
`reason` varchar(500) NULL COMMENT '原因',
`result` tinyint(1) NULL COMMENT '1同意2拒绝',
`okayapi_opms_pms_overtimes_status` tinyint(1) NULL DEFAULT '1' COMMENT '1草稿2正常发布',
`approverids` varchar(200) NULL COMMENT '审批人串',
`created` int(10) NULL COMMENT '',
`okayapi_opms_pms_overtimes_changed` int(10) NULL COMMENT '',
KEY `userid` (`userid`),
KEY `started` (`started`),
KEY `ended` (`ended`),
KEY `longtime` (`longtime`),
KEY `holiday` (`holiday`),
KEY `way` (`way`),
KEY `reason` (`reason`),
KEY `result` (`result`),
KEY `okayapi_opms_pms_overtimes_status` (`okayapi_opms_pms_overtimes_status`),
KEY `approverids` (`approverids`),
KEY `created` (`created`),
KEY `okayapi_opms_pms_overtimes_changed` (`okayapi_opms_pms_overtimes_changed`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'OPMS和OA管理-加班表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-12 of 12 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
userid | bigint(20) | 是 | 请假人 | |||
started | int(10) | 是 | 开始时间 | |||
ended | int(10) | 是 | 结束时间 | |||
longtime | tinyint(4) | 是 | 加班时长 | |||
holiday | tinyint(1) | 是 | 节假日1是2否 | |||
way | tinyint(1) | 是 | 核算方式1调休,2加班费 | |||
reason | varchar(500) | 是 | 原因 | |||
result | tinyint(1) | 是 | 1同意2拒绝 | |||
okayapi_opms_pms_overtimes_status | tinyint(1) | 1 | 是 | 1草稿2正常发布 | 1 | |
approverids | varchar(200) | 是 | 审批人串 | |||
created | int(10) | 是 | ||||
okayapi_opms_pms_overtimes_changed | int(10) | 是 |