MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_achievement:/tablelist/okayapi_72crm_crm_achievement.html
-- MySQL Table okayapi_72crm_crm_achievement
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_achievement` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`achievement_id` int(11) NULL COMMENT '',
`obj_id` int(11) NULL COMMENT '对象ID',
`okayapi_72crm_crm_achievement_type` int(2) NULL DEFAULT '0' COMMENT '1公司2部门3员工',
`okayapi_72crm_crm_achievement_year` varchar(20) NULL COMMENT '年',
`january` decimal(18,2) NULL DEFAULT '0.00' COMMENT '一月',
`february` decimal(18,2) NULL DEFAULT '0.00' COMMENT '二月',
`march` decimal(18,2) NULL DEFAULT '0.00' COMMENT '三月',
`april` decimal(18,2) NULL DEFAULT '0.00' COMMENT '四月',
`may` decimal(18,2) NULL DEFAULT '0.00' COMMENT '五月',
`june` decimal(18,2) NULL DEFAULT '0.00' COMMENT '六月',
`july` decimal(18,2) NULL DEFAULT '0.00' COMMENT '七月',
`august` decimal(18,2) NULL DEFAULT '0.00' COMMENT '八月',
`september` decimal(18,2) NULL DEFAULT '0.00' COMMENT '九月',
`october` decimal(18,2) NULL DEFAULT '0.00' COMMENT '十月',
`november` decimal(18,2) NULL DEFAULT '0.00' COMMENT '十一月',
`december` decimal(18,2) NULL DEFAULT '0.00' COMMENT '十二月',
`okayapi_72crm_crm_achievement_status` int(2) NULL COMMENT '1销售(目标)2回款(目标)',
`yeartarget` decimal(18,2) NULL DEFAULT '0.00' COMMENT '年目标',
KEY `achievement_id` (`achievement_id`),
KEY `obj_id` (`obj_id`),
KEY `okayapi_72crm_crm_achievement_type` (`okayapi_72crm_crm_achievement_type`),
KEY `okayapi_72crm_crm_achievement_year` (`okayapi_72crm_crm_achievement_year`),
KEY `january` (`january`),
KEY `february` (`february`),
KEY `march` (`march`),
KEY `april` (`april`),
KEY `may` (`may`),
KEY `june` (`june`),
KEY `july` (`july`),
KEY `august` (`august`),
KEY `september` (`september`),
KEY `october` (`october`),
KEY `november` (`november`),
KEY `december` (`december`),
KEY `okayapi_72crm_crm_achievement_status` (`okayapi_72crm_crm_achievement_status`),
KEY `yeartarget` (`yeartarget`),
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-18 of 18 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
achievement_id | int(11) | 否 | ||||
obj_id | int(11) | 是 | 对象ID | |||
okayapi_72crm_crm_achievement_type | int(2) | 0 | 是 | 1公司2部门3员工 | 0 | |
okayapi_72crm_crm_achievement_year | varchar(20) | 是 | 年 | |||
january | decimal(18,2) | 0.00 | 是 | 一月 | 0.00 | |
february | decimal(18,2) | 0.00 | 是 | 二月 | 0.00 | |
march | decimal(18,2) | 0.00 | 是 | 三月 | 0.00 | |
april | decimal(18,2) | 0.00 | 是 | 四月 | 0.00 | |
may | decimal(18,2) | 0.00 | 是 | 五月 | 0.00 | |
june | decimal(18,2) | 0.00 | 是 | 六月 | 0.00 | |
july | decimal(18,2) | 0.00 | 是 | 七月 | 0.00 | |
august | decimal(18,2) | 0.00 | 是 | 八月 | 0.00 | |
september | decimal(18,2) | 0.00 | 是 | 九月 | 0.00 | |
october | decimal(18,2) | 0.00 | 是 | 十月 | 0.00 | |
november | decimal(18,2) | 0.00 | 是 | 十一月 | 0.00 | |
december | decimal(18,2) | 0.00 | 是 | 十二月 | 0.00 | |
okayapi_72crm_crm_achievement_status | int(2) | 是 | 1销售(目标)2回款(目标) | |||
yeartarget | decimal(18,2) | 0.00 | 是 | 年目标 | 0.00 |