MySQL Create Table SQL
Table Structure: okayapi_opms_pms_projects_task:/tablelist/okayapi_opms_pms_projects_task.html
-- MySQL Table okayapi_opms_pms_projects_task
-- From: OkayAPI.com
CREATE TABLE `okayapi_opms_pms_projects_task` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`needsid` bigint(20) NULL COMMENT '',
`userid` bigint(20) NULL COMMENT '创建人',
`projectid` bigint(20) NULL COMMENT '项目ID',
`acceptid` bigint(20) NULL COMMENT '任务接受人ID',
`ccid` varchar(100) NULL COMMENT '抄送给',
`completeid` bigint(20) NULL COMMENT '完成者id',
`okayapi_opms_pms_projects_task_name` varchar(100) NULL COMMENT '任务名称',
`okayapi_opms_pms_projects_task_desc` text NULL COMMENT '描述',
`note` text NULL COMMENT '备注',
`okayapi_opms_pms_projects_task_type` tinyint(1) NULL DEFAULT '8' COMMENT '任务类型1设计,2开发,3测试,4研究,5讨论,6界面,7事务,8其他',
`okayapi_opms_pms_projects_task_level` tinyint(1) NULL DEFAULT '4' COMMENT '优先级1,2,3,4',
`tasktime` tinyint(4) NULL COMMENT '预计工时',
`ended` int(10) NULL COMMENT '截止日期',
`started` int(10) NULL COMMENT '预计开始时间',
`attachment` varchar(255) NULL COMMENT '附件',
`created` int(10) NULL COMMENT '',
`okayapi_opms_pms_projects_task_changed` int(10) NULL COMMENT '',
`okayapi_opms_pms_projects_task_status` tinyint(1) NULL DEFAULT '1' COMMENT '1未开始,2进行中,3已完成,4已暂停,5已取消,6已关闭',
`closeid` bigint(20) NULL COMMENT '关闭者ID',
`cancelid` bigint(20) NULL COMMENT '取消者ID',
KEY `needsid` (`needsid`),
KEY `userid` (`userid`),
KEY `projectid` (`projectid`),
KEY `acceptid` (`acceptid`),
KEY `ccid` (`ccid`),
KEY `completeid` (`completeid`),
KEY `okayapi_opms_pms_projects_task_name` (`okayapi_opms_pms_projects_task_name`),
KEY `okayapi_opms_pms_projects_task_desc` (`okayapi_opms_pms_projects_task_desc`),
KEY `note` (`note`),
KEY `okayapi_opms_pms_projects_task_type` (`okayapi_opms_pms_projects_task_type`),
KEY `okayapi_opms_pms_projects_task_level` (`okayapi_opms_pms_projects_task_level`),
KEY `tasktime` (`tasktime`),
KEY `ended` (`ended`),
KEY `started` (`started`),
KEY `attachment` (`attachment`),
KEY `created` (`created`),
KEY `okayapi_opms_pms_projects_task_changed` (`okayapi_opms_pms_projects_task_changed`),
KEY `okayapi_opms_pms_projects_task_status` (`okayapi_opms_pms_projects_task_status`),
KEY `closeid` (`closeid`),
KEY `cancelid` (`cancelid`),
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-20 of 20 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
needsid | bigint(20) | 是 | ||||
userid | bigint(20) | 是 | 创建人 | |||
projectid | bigint(20) | 是 | 项目ID | |||
acceptid | bigint(20) | 是 | 任务接受人ID | |||
ccid | varchar(100) | 是 | 抄送给 | |||
completeid | bigint(20) | 是 | 完成者id | |||
okayapi_opms_pms_projects_task_name | varchar(100) | 是 | 任务名称 | |||
okayapi_opms_pms_projects_task_desc | text | 是 | 描述 | |||
note | text | 是 | 备注 | |||
okayapi_opms_pms_projects_task_type | tinyint(1) | 8 | 是 | 任务类型1设计,2开发,3测试,4研究,5讨论,6界面,7事务,8其他 | 8 | |
okayapi_opms_pms_projects_task_level | tinyint(1) | 4 | 是 | 优先级1,2,3,4 | 4 | |
tasktime | tinyint(4) | 是 | 预计工时 | |||
ended | int(10) | 是 | 截止日期 | |||
started | int(10) | 是 | 预计开始时间 | |||
attachment | varchar(255) | 是 | 附件 | |||
created | int(10) | 是 | ||||
okayapi_opms_pms_projects_task_changed | int(10) | 是 | ||||
okayapi_opms_pms_projects_task_status | tinyint(1) | 1 | 是 | 1未开始,2进行中,3已完成,4已暂停,5已取消,6已关闭 | 1 | |
closeid | bigint(20) | 是 | 关闭者ID | |||
cancelid | bigint(20) | 是 | 取消者ID |