MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_contacts:/tablelist/okayapi_72crm_crm_contacts.html
-- MySQL Table okayapi_72crm_crm_contacts
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_contacts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`contacts_id` int(11) NOT NULL COMMENT '',
`okayapi_72crm_crm_contacts_name` varchar(50) NOT NULL COMMENT '联系人名称',
`next_time` datetime NOT NULL COMMENT '下次联系时间',
`mobile` varchar(255) NOT NULL COMMENT '手机',
`telephone` varchar(255) NOT NULL COMMENT '电话',
`email` varchar(255) NOT NULL COMMENT '电子邮箱',
`post` varchar(255) NOT NULL COMMENT '职务',
`customer_id` int(11) NOT NULL COMMENT '客户ID',
`address` varchar(500) NOT NULL COMMENT '地址',
`remark` varchar(500) NOT NULL COMMENT '备注',
`create_user_id` bigint(20) NOT NULL COMMENT '创建人ID',
`owner_user_id` bigint(20) NOT NULL COMMENT '负责人ID',
`create_time` datetime NOT NULL COMMENT '创建时间',
`batch_id` varchar(32) NOT NULL COMMENT '批次',
KEY `contacts_id` (`contacts_id`),
KEY `okayapi_72crm_crm_contacts_name` (`okayapi_72crm_crm_contacts_name`),
KEY `next_time` (`next_time`),
KEY `mobile` (`mobile`),
KEY `telephone` (`telephone`),
KEY `email` (`email`),
KEY `post` (`post`),
KEY `customer_id` (`customer_id`),
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`),
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-14 of 14 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
contacts_id | int(11) | 否 | ||||
okayapi_72crm_crm_contacts_name | varchar(50) | 是 | 联系人名称 | |||
next_time | datetime | 是 | 下次联系时间 | |||
mobile | varchar(255) | 是 | 手机 | |||
telephone | varchar(255) | 是 | 电话 | |||
varchar(255) | 是 | 电子邮箱 | ||||
post | varchar(255) | 是 | 职务 | |||
customer_id | int(11) | 否 | 客户ID | |||
address | varchar(500) | 是 | 地址 | |||
remark | varchar(500) | 是 | 备注 | |||
create_user_id | bigint(20) | 是 | 创建人ID | |||
owner_user_id | bigint(20) | 是 | 负责人ID | |||
create_time | datetime | 是 | 创建时间 | |||
batch_id | varchar(32) | 否 | 批次 |