+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:CRM-商机产品关系表:https://open.yesapi.cn/tablelist/yesapi_72crm_crm_business_product.html


-- 数据库大全:CRM-商机产品关系表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_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 '单位',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'CRM-商机产品关系表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-9 条, 共 9 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
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)单位无索引

猜你喜欢

MySQL数据库设计 CRM-客户规则

MySQL数据库设计 CRM-部门表

MySQL数据库设计 CRM-审批流程表

MySQL数据库设计 CRM-审核日志表

MySQL数据库设计 CRM-审核记录表

MySQL数据库设计 CRM-审批步骤表

MySQL数据库设计 CRM-字段排序表

MySQL数据库设计 CRM-自定义字段值

MySQL数据库设计 CRM-附件表

MySQL数据库设计 CRM-后台菜单表

MySQL数据库设计 CRM-系统消息表

MySQL数据库设计 CRM-跟进记录

MySQL数据库设计 CRM-角色表

MySQL数据库设计 CRM-角色菜单对应关系表

MySQL数据库设计 CRM-场景

MySQL数据库设计 CRM-场景默认关系表

MySQL数据库设计 CRM-用户表

MySQL数据库设计 CRM-用户角色对应关系表

MySQL数据库设计 CRM-业绩目标

MySQL数据库设计 CRM-字段操作记录表



回到顶部 ↑