MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_receivables:/tablelist/okayapi_72crm_crm_receivables.html
-- MySQL Table okayapi_72crm_crm_receivables
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_receivables` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`receivables_id` int(11) NOT NULL COMMENT '回款ID',
`okayapi_72crm_crm_receivables_number` varchar(100) NOT NULL COMMENT '回款编号',
`plan_id` int(11) NOT NULL COMMENT '回款计划ID',
`customer_id` int(11) NOT NULL COMMENT '客户ID',
`contract_id` int(11) NOT NULL COMMENT '合同ID',
`check_status` int(4) NOT NULL COMMENT '0 未审核 1 审核通过 2 审核拒绝 3 审核中 4 已撤回',
`examine_record_id` int(11) NOT NULL COMMENT '审核记录ID',
`return_time` date NOT NULL COMMENT '回款日期',
`return_type` varchar(100) NOT NULL COMMENT '回款方式',
`money` decimal(18,2) 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 '创建时间',
`remarks` varchar(255) NOT NULL COMMENT '备注',
`batch_id` varchar(32) NOT NULL COMMENT '批次',
KEY `receivables_id` (`receivables_id`),
KEY `okayapi_72crm_crm_receivables_number` (`okayapi_72crm_crm_receivables_number`),
KEY `plan_id` (`plan_id`),
KEY `customer_id` (`customer_id`),
KEY `contract_id` (`contract_id`),
KEY `check_status` (`check_status`),
KEY `examine_record_id` (`examine_record_id`),
KEY `return_time` (`return_time`),
KEY `return_type` (`return_type`),
KEY `money` (`money`),
KEY `remark` (`remark`),
KEY `create_user_id` (`create_user_id`),
KEY `owner_user_id` (`owner_user_id`),
KEY `create_time` (`create_time`),
KEY `remarks` (`remarks`),
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-16 of 16 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
receivables_id | int(11) | 否 | 回款ID | |||
okayapi_72crm_crm_receivables_number | varchar(100) | 是 | 回款编号 | |||
plan_id | int(11) | 是 | 回款计划ID | |||
customer_id | int(11) | 是 | 客户ID | |||
contract_id | int(11) | 是 | 合同ID | |||
check_status | int(4) | 是 | 0 未审核 1 审核通过 2 审核拒绝 3 审核中 4 已撤回 | |||
examine_record_id | int(11) | 是 | 审核记录ID | |||
return_time | date | 是 | 回款日期 | |||
return_type | varchar(100) | 是 | 回款方式 | |||
money | decimal(18,2) | 是 | 回款金额 | |||
remark | varchar(500) | 是 | 备注 | |||
create_user_id | bigint(20) | 否 | 创建人ID | |||
owner_user_id | bigint(20) | 是 | 负责人ID | |||
create_time | datetime | 否 | 创建时间 | |||
remarks | varchar(255) | 是 | 备注 | |||
batch_id | varchar(32) | 否 | 批次 |