MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_receivables_plan:/tablelist/okayapi_72crm_crm_receivables_plan.html
-- MySQL Table okayapi_72crm_crm_receivables_plan
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_receivables_plan` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`file_batch` varchar(32) NOT NULL COMMENT '附件批次ID',
`contract_id` int(11) NOT NULL COMMENT '合同ID',
`customer_id` int(11) NOT NULL COMMENT '客户ID',
`plan_id` int(11) NOT NULL COMMENT '',
`num` varchar(100) NOT NULL COMMENT '期数',
`receivables_id` int(11) NOT NULL COMMENT '回款ID',
`okayapi_72crm_crm_receivables_plan_status` int(4) NOT NULL COMMENT '1完成 0 未完成',
`money` decimal(18,2) NOT NULL COMMENT '计划回款金额',
`return_date` datetime NOT NULL COMMENT '计划回款日期',
`return_type` varchar(255) NOT NULL COMMENT '计划回款方式',
`remind` int(4) NOT NULL COMMENT '提前几天提醒',
`remind_date` datetime 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 '创建时间',
KEY `file_batch` (`file_batch`),
KEY `contract_id` (`contract_id`),
KEY `customer_id` (`customer_id`),
KEY `plan_id` (`plan_id`),
KEY `num` (`num`),
KEY `receivables_id` (`receivables_id`),
KEY `okayapi_72crm_crm_receivables_plan_status` (`okayapi_72crm_crm_receivables_plan_status`),
KEY `money` (`money`),
KEY `return_date` (`return_date`),
KEY `return_type` (`return_type`),
KEY `remind` (`remind`),
KEY `remind_date` (`remind_date`),
KEY `remark` (`remark`),
KEY `create_user_id` (`create_user_id`),
KEY `owner_user_id` (`owner_user_id`),
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-16 of 16 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
file_batch | varchar(32) | 是 | 附件批次ID | |||
contract_id | int(11) | 否 | 合同ID | |||
customer_id | int(11) | 否 | 客户ID | |||
plan_id | int(11) | 否 | ||||
num | varchar(100) | 是 | 期数 | |||
receivables_id | int(11) | 是 | 回款ID | |||
okayapi_72crm_crm_receivables_plan_status | int(4) | 是 | 1完成 0 未完成 | |||
money | decimal(18,2) | 是 | 计划回款金额 | |||
return_date | datetime | 是 | 计划回款日期 | |||
return_type | varchar(255) | 是 | 计划回款方式 | |||
remind | int(4) | 是 | 提前几天提醒 | |||
remind_date | datetime | 是 | 提醒日期 | |||
remark | varchar(500) | 是 | 备注 | |||
create_user_id | bigint(20) | 否 | 创建人ID | |||
owner_user_id | bigint(20) | 是 | 负责人ID | |||
create_time | datetime | 否 | 创建时间 |