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

MySQL建表SQL语句

数据库结构:微同商城-订单商品: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 '微同商城-订单商品';

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


MySQL数据库表结构设计

第 1-12 条, 共 12 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
order_idmediumint(8)0订单Id普通索引0
goods_idmediumint(8)0商品id普通索引0
goods_namevarchar(120)商品名称无索引
goods_snvarchar(60)商品序列号无索引
product_idmediumint(8)0产品Id无索引0
yesapi_nideshop_order_goods_numbersmallint(5)1商品数量无索引1
market_pricedecimal(10,2)0.00市场价无索引0.00
retail_pricedecimal(10,2)0.00零售价格无索引0.00
goods_specifition_name_valuetext商品规格详情无索引
is_realtinyint(1)0虚拟商品无索引0
goods_specifition_idsvarchar(255)商品规格Ids无索引
list_pic_urlvarchar(255)图片链接无索引

猜你喜欢

MySQL数据库设计 微同商城-广告

MySQL数据库设计 微同商城-地址

MySQL数据库设计 微同商城-广告位置

MySQL数据库设计 微同商城-属性

MySQL数据库设计 微同商城-属性分类

MySQL数据库设计 微同商城-品牌

MySQL数据库设计 微同商城-购物车

MySQL数据库设计 微同商城-分类

MySQL数据库设计 微同商城-频道

MySQL数据库设计 微同商城-收藏

MySQL数据库设计 微同商城-评论

MySQL数据库设计 微同商城-评论图片

MySQL数据库设计 微同商城-优惠券

MySQL数据库设计 微同商城-优惠券关联商品

MySQL数据库设计 微同商城-反馈

MySQL数据库设计 微同商城-足迹

MySQL数据库设计 微同商城-商品

MySQL数据库设计 微同商城-商品属性

MySQL数据库设计 微同商城-商品相册

MySQL数据库设计 微同商城-商品对应规格表值表



回到顶部 ↑