MySQL Create Table SQL
Table Structure: okayapi_crm_customer:/tablelist/okayapi_crm_customer.html
-- MySQL Table okayapi_crm_customer
-- From: OkayAPI.com
CREATE TABLE `okayapi_crm_customer` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`customer_name` varchar(255) NULL COMMENT '客户名称',
`phone` varchar(255) NULL COMMENT '手机',
`status` varchar(255) NULL COMMENT '状态',
`deleted` tinyint(4) NULL DEFAULT '0' COMMENT '删除标识:0未删除,1删除',
`createtime` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`website` int(11) NULL COMMENT '网站',
`numberofemployees` int(11) NULL COMMENT '员工人数',
`natureofbusiness` int(11) NULL COMMENT '公司性质',
`customertype` int(11) NULL COMMENT '客户类型',
`tel` int(11) NULL COMMENT '电话',
`firstcontacter` int(11) NULL COMMENT '首要联系人',
`othertel` int(11) NULL COMMENT '其他电话',
`fax` int(11) NULL COMMENT '传真',
`email` int(11) NULL COMMENT 'Email',
`address` int(11) NULL COMMENT '地址',
`paymethod` int(11) NULL COMMENT '支付方式',
`memo` int(11) NULL COMMENT '备注',
KEY `customer_name` (`customer_name`),
KEY `phone` (`phone`),
KEY `status` (`status`),
KEY `deleted` (`deleted`),
KEY `createtime` (`createtime`),
KEY `website` (`website`),
KEY `numberofemployees` (`numberofemployees`),
KEY `natureofbusiness` (`natureofbusiness`),
KEY `customertype` (`customertype`),
KEY `tel` (`tel`),
KEY `firstcontacter` (`firstcontacter`),
KEY `othertel` (`othertel`),
KEY `fax` (`fax`),
KEY `email` (`email`),
KEY `address` (`address`),
KEY `paymethod` (`paymethod`),
KEY `memo` (`memo`),
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-17 of 17 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
customer_name | varchar(255) | 是 | 客户名称 | |||
phone | varchar(255) | 是 | 手机 | |||
status | varchar(255) | 是 | 状态 | |||
deleted | tinyint(4) | 0 | 否 | 删除标识:0未删除,1删除 | 0 | |
createtime | timestamp | CURRENT_TIMESTAMP | 否 | 创建时间 | CURRENT_TIMESTAMP | |
website | int(11) | 是 | 网站 | |||
numberofemployees | int(11) | 是 | 员工人数 | |||
natureofbusiness | int(11) | 是 | 公司性质 | |||
customertype | int(11) | 是 | 客户类型 | |||
tel | int(11) | 是 | 电话 | |||
firstcontacter | int(11) | 是 | 首要联系人 | |||
othertel | int(11) | 是 | 其他电话 | |||
fax | int(11) | 是 | 传真 | |||
int(11) | 是 | |||||
address | int(11) | 是 | 地址 | |||
paymethod | int(11) | 是 | 支付方式 | |||
memo | int(11) | 是 | 备注 |