MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_customer_setting:/tablelist/okayapi_72crm_crm_customer_setting.html
-- MySQL Table okayapi_72crm_crm_customer_setting
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_customer_setting` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`setting_id` int(11) NULL COMMENT '主键ID',
`setting_name` varchar(255) NULL COMMENT '规则名称',
`customer_num` int(11) NULL COMMENT '可拥有客户数量',
`customer_deal` int(1) NULL DEFAULT '0' COMMENT '成交客户是否占用数量 0 不占用 1 占用',
`okayapi_72crm_crm_customer_setting_type` int(1) NULL COMMENT '类型 1 拥有客户数限制 2 锁定客户数限制',
`create_time` datetime NULL COMMENT '',
KEY `setting_id` (`setting_id`),
KEY `setting_name` (`setting_name`),
KEY `customer_num` (`customer_num`),
KEY `customer_deal` (`customer_deal`),
KEY `okayapi_72crm_crm_customer_setting_type` (`okayapi_72crm_crm_customer_setting_type`),
KEY `create_time` (`create_time`),
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-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
setting_id | int(11) | 否 | 主键ID | |||
setting_name | varchar(255) | 是 | 规则名称 | |||
customer_num | int(11) | 是 | 可拥有客户数量 | |||
customer_deal | int(1) | 0 | 是 | 成交客户是否占用数量 0 不占用 1 占用 | 0 | |
okayapi_72crm_crm_customer_setting_type | int(1) | 是 | 类型 1 拥有客户数限制 2 锁定客户数限制 | |||
create_time | datetime | 是 |