+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
achievement_idint(11)
obj_idint(11)对象ID
okayapi_72crm_crm_achievement_typeint(2)01公司2部门3员工0
okayapi_72crm_crm_achievement_yearvarchar(20)
januarydecimal(18,2)0.00一月0.00
februarydecimal(18,2)0.00二月0.00
marchdecimal(18,2)0.00三月0.00
aprildecimal(18,2)0.00四月0.00
maydecimal(18,2)0.00五月0.00
junedecimal(18,2)0.00六月0.00
julydecimal(18,2)0.00七月0.00
augustdecimal(18,2)0.00八月0.00
septemberdecimal(18,2)0.00九月0.00
octoberdecimal(18,2)0.00十月0.00
novemberdecimal(18,2)0.00十一月0.00
decemberdecimal(18,2)0.00十二月0.00
okayapi_72crm_crm_achievement_statusint(2)1销售(目标)2回款(目标)
yeartargetdecimal(18,2)0.00年目标0.00

Guess You Like

MySQL Table Design okayapi_72crm_admin_config

MySQL Table Design okayapi_72crm_admin_dept

MySQL Table Design okayapi_72crm_admin_examine

MySQL Table Design okayapi_72crm_admin_examine_log

MySQL Table Design okayapi_72crm_admin_examine_record

MySQL Table Design okayapi_72crm_admin_examine_step

MySQL Table Design okayapi_72crm_admin_field_sort

MySQL Table Design okayapi_72crm_admin_fieldv

MySQL Table Design okayapi_72crm_admin_file

MySQL Table Design okayapi_72crm_admin_menu

MySQL Table Design okayapi_72crm_admin_message

MySQL Table Design okayapi_72crm_admin_record

MySQL Table Design okayapi_72crm_admin_role

MySQL Table Design okayapi_72crm_admin_role_menu

MySQL Table Design okayapi_72crm_admin_scene

MySQL Table Design okayapi_72crm_admin_scene_default

MySQL Table Design okayapi_72crm_admin_user

MySQL Table Design okayapi_72crm_admin_user_role

MySQL Table Design okayapi_72crm_crm_action_record

MySQL Table Design okayapi_72crm_crm_area

TOP ↑