MySQL数据库表结构设计
第 1-12 条, 共 12 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
order_id | mediumint(8) | 0 | 否 | 订单Id | 普通索引 | 0 |
goods_id | mediumint(8) | 0 | 否 | 商品id | 普通索引 | 0 |
goods_name | varchar(120) | 否 | 商品名称 | 无索引 | ||
goods_sn | varchar(60) | 否 | 商品序列号 | 无索引 | ||
product_id | mediumint(8) | 0 | 否 | 产品Id | 无索引 | 0 |
yesapi_nideshop_order_goods_number | smallint(5) | 1 | 否 | 商品数量 | 无索引 | 1 |
market_price | decimal(10,2) | 0.00 | 否 | 市场价 | 无索引 | 0.00 |
retail_price | decimal(10,2) | 0.00 | 否 | 零售价格 | 无索引 | 0.00 |
goods_specifition_name_value | text | 是 | 商品规格详情 | 无索引 | ||
is_real | tinyint(1) | 0 | 是 | 虚拟商品 | 无索引 | 0 |
goods_specifition_ids | varchar(255) | 是 | 商品规格Ids | 无索引 | ||
list_pic_url | varchar(255) | 是 | 图片链接 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:微同商城-订单商品:https://open.yesapi.cn/tablelist/yesapi_nideshop_order_goods.html
-- 数据库大全:微同商城-订单商品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_nideshop_order_goods` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`order_id` mediumint(8) NULL DEFAULT '0' COMMENT '订单Id',
`goods_id` mediumint(8) NULL DEFAULT '0' COMMENT '商品id',
`goods_name` varchar(120) NULL COMMENT '商品名称',
`goods_sn` varchar(60) NULL COMMENT '商品序列号',
`product_id` mediumint(8) NULL DEFAULT '0' COMMENT '产品Id',
`yesapi_nideshop_order_goods_number` smallint(5) NULL DEFAULT '1' COMMENT '商品数量',
`market_price` decimal(10,2) NULL DEFAULT '0.00' COMMENT '市场价',
`retail_price` decimal(10,2) NULL DEFAULT '0.00' COMMENT '零售价格',
`goods_specifition_name_value` text NULL COMMENT '商品规格详情',
`is_real` tinyint(1) NULL DEFAULT '0' COMMENT '虚拟商品',
`goods_specifition_ids` varchar(255) NULL COMMENT '商品规格Ids',
`list_pic_url` varchar(255) NULL COMMENT '图片链接',
KEY `order_id` (`order_id`),
KEY `goods_id` (`goods_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '微同商城-订单商品';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

