MySQL Create Table SQL
Table Structure: okayapi_crm_campaigns:/tablelist/okayapi_crm_campaigns.html
-- MySQL Table okayapi_crm_campaigns
-- From: OkayAPI.com
CREATE TABLE `okayapi_crm_campaigns` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`campaigns_name` varchar(255) NULL COMMENT '营销活动名称',
`status` varchar(255) NULL COMMENT '状态',
`product_id` int(11) NULL COMMENT '产品',
`campaigns_type` varchar(255) NULL COMMENT '营销活动类型',
`end_date` datetime NULL COMMENT '结束时间',
`targetaudience` varchar(255) NULL COMMENT '目标客户',
`targetsize` int(11) NULL COMMENT '目标大小',
`description` text NULL COMMENT '描述',
`deleted` tinyint(4) NULL DEFAULT '0' COMMENT '删除标识:0未删除,1删除',
`budget` int(11) NULL COMMENT '预算',
KEY `campaigns_name` (`campaigns_name`),
KEY `status` (`status`),
KEY `product_id` (`product_id`),
KEY `campaigns_type` (`campaigns_type`),
KEY `end_date` (`end_date`),
KEY `targetaudience` (`targetaudience`),
KEY `targetsize` (`targetsize`),
KEY `description` (`description`),
KEY `deleted` (`deleted`),
KEY `budget` (`budget`),
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-10 of 10 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
campaigns_name | varchar(255) | 是 | 营销活动名称 | |||
status | varchar(255) | 是 | 状态 | |||
product_id | int(11) | 是 | 产品 | |||
campaigns_type | varchar(255) | 是 | 营销活动类型 | |||
end_date | datetime | 是 | 结束时间 | |||
targetaudience | varchar(255) | 是 | 目标客户 | |||
targetsize | int(11) | 是 | 目标大小 | |||
description | text | 是 | 描述 | |||
deleted | tinyint(4) | 0 | 否 | 删除标识:0未删除,1删除 | 0 | |
budget | int(11) | 是 | 预算 |