MySQL Create Table SQL
Table Structure: okayapi_72crm_crm_business_product:/tablelist/okayapi_72crm_crm_business_product.html
-- MySQL Table okayapi_72crm_crm_business_product
-- From: OkayAPI.com
CREATE TABLE `okayapi_72crm_crm_business_product` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`r_id` int(11) NULL COMMENT '',
`business_id` int(11) NULL COMMENT '商机ID',
`product_id` int(11) NULL COMMENT '产品ID',
`price` decimal(18,2) NULL COMMENT '产品单价',
`sales_price` decimal(18,2) NULL COMMENT '销售价格',
`num` int(10) NULL COMMENT '数量',
`discount` decimal(10,2) NULL COMMENT '折扣',
`subtotal` decimal(18,2) NULL COMMENT '小计(折扣后价格)',
`unit` varchar(50) NULL COMMENT '单位',
KEY `r_id` (`r_id`),
KEY `business_id` (`business_id`),
KEY `product_id` (`product_id`),
KEY `price` (`price`),
KEY `sales_price` (`sales_price`),
KEY `num` (`num`),
KEY `discount` (`discount`),
KEY `subtotal` (`subtotal`),
KEY `unit` (`unit`),
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-9 of 9 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
r_id | int(11) | 否 | ||||
business_id | int(11) | 否 | 商机ID | |||
product_id | int(11) | 否 | 产品ID | |||
price | decimal(18,2) | 否 | 产品单价 | |||
sales_price | decimal(18,2) | 否 | 销售价格 | |||
num | int(10) | 否 | 数量 | |||
discount | decimal(10,2) | 否 | 折扣 | |||
subtotal | decimal(18,2) | 否 | 小计(折扣后价格) | |||
unit | varchar(50) | 是 | 单位 |