MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_leads:/tablelist/okayapi_72crm_crm_leads.html
-- MySQL Table okayapi_72crm_crm_leads
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_leads` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`leads_id` int(11) NULL COMMENT '',
`is_transform` int(1) NULL DEFAULT '0' COMMENT '1已转化 0 未转化',
`followup` int(11) NULL COMMENT '跟进状态 0未跟进1已跟进',
`leads_name` varchar(255) NULL COMMENT '线索名称',
`customer_id` int(11) NULL COMMENT '客户id',
`next_time` datetime NULL COMMENT '下次联系时间',
`telephone` varchar(20) NULL COMMENT '电话',
`mobile` varchar(50) NULL COMMENT '手机号',
`address` varchar(500) NULL COMMENT '地址',
`remark` varchar(50) NULL COMMENT '备注',
`create_user_id` bigint(20) NULL COMMENT '创建人ID',
`owner_user_id` bigint(20) NULL COMMENT '负责人ID',
`create_time` datetime NULL COMMENT '创建时间',
`batch_id` varchar(32) NULL COMMENT '批次 比如附件批次',
`last_content` varchar(1024) NULL COMMENT '',
KEY `leads_id` (`leads_id`),
KEY `is_transform` (`is_transform`),
KEY `followup` (`followup`),
KEY `leads_name` (`leads_name`),
KEY `customer_id` (`customer_id`),
KEY `next_time` (`next_time`),
KEY `telephone` (`telephone`),
KEY `mobile` (`mobile`),
KEY `address` (`address`),
KEY `remark` (`remark`),
KEY `create_user_id` (`create_user_id`),
KEY `owner_user_id` (`owner_user_id`),
KEY `create_time` (`create_time`),
KEY `batch_id` (`batch_id`),
KEY `last_content` (`last_content`),
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-15 of 15 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
leads_id | int(11) | 否 | ||||
is_transform | int(1) | 0 | 是 | 1已转化 0 未转化 | 0 | |
followup | int(11) | 是 | 跟进状态 0未跟进1已跟进 | |||
leads_name | varchar(255) | 否 | 线索名称 | |||
customer_id | int(11) | 是 | 客户id | |||
next_time | datetime | 是 | 下次联系时间 | |||
telephone | varchar(20) | 是 | 电话 | |||
mobile | varchar(50) | 是 | 手机号 | |||
address | varchar(500) | 是 | 地址 | |||
remark | varchar(50) | 是 | 备注 | |||
create_user_id | bigint(20) | 否 | 创建人ID | |||
owner_user_id | bigint(20) | 是 | 负责人ID | |||
create_time | datetime | 是 | 创建时间 | |||
batch_id | varchar(32) | 否 | 批次 比如附件批次 | |||
last_content | varchar(1024) | 是 |