MySQL数据库表结构设计
第 1-6 条, 共 6 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
goods_id | mediumint(8) | 0 | 是 | 商品Id | 无索引 | 0 |
goods_specification_ids | varchar(50) | 是 | 商品规格ids | 无索引 | ||
goods_sn | varchar(60) | 是 | 商品序列号 | 无索引 | ||
goods_number | mediumint(8) | 0 | 是 | 商品编码 | 无索引 | 0 |
retail_price | decimal(10,2) unsigned | 0.00 | 是 | 零售价格 | 无索引 | 0.00 |
market_price | decimal(10,2) unsigned | 0.00 | 是 | 价格 | 无索引 | 0.00 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:微同商城-商品:https://open.yesapi.cn/tablelist/yesapi_nideshop_product.html
-- 数据库大全:微同商城-商品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_nideshop_product` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`goods_id` mediumint(8) NULL DEFAULT '0' COMMENT '商品Id',
`goods_specification_ids` varchar(50) NULL COMMENT '商品规格ids',
`goods_sn` varchar(60) NULL COMMENT '商品序列号',
`goods_number` mediumint(8) NULL DEFAULT '0' COMMENT '商品编码',
`retail_price` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '零售价格',
`market_price` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '价格',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '微同商城-商品';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

