+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
r_idint(11)
business_idint(11)商机ID
product_idint(11)产品ID
pricedecimal(18,2)产品单价
sales_pricedecimal(18,2)销售价格
numint(10)数量
discountdecimal(10,2)折扣
subtotaldecimal(18,2)小计(折扣后价格)
unitvarchar(50)单位

Guess You Like

MySQL Table Design okayapi_72crm_admin_config

MySQL Table Design okayapi_72crm_admin_dept

MySQL Table Design okayapi_72crm_admin_examine

MySQL Table Design okayapi_72crm_admin_examine_log

MySQL Table Design okayapi_72crm_admin_examine_record

MySQL Table Design okayapi_72crm_admin_examine_step

MySQL Table Design okayapi_72crm_admin_field_sort

MySQL Table Design okayapi_72crm_admin_fieldv

MySQL Table Design okayapi_72crm_admin_file

MySQL Table Design okayapi_72crm_admin_menu

MySQL Table Design okayapi_72crm_admin_message

MySQL Table Design okayapi_72crm_admin_record

MySQL Table Design okayapi_72crm_admin_role

MySQL Table Design okayapi_72crm_admin_role_menu

MySQL Table Design okayapi_72crm_admin_scene

MySQL Table Design okayapi_72crm_admin_scene_default

MySQL Table Design okayapi_72crm_admin_user

MySQL Table Design okayapi_72crm_admin_user_role

MySQL Table Design okayapi_72crm_crm_achievement

MySQL Table Design okayapi_72crm_crm_action_record

TOP ↑