MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_goods_spec_base:/tablelist/okayapi_shopxo_s_goods_spec_base.html
-- MySQL Table okayapi_shopxo_s_goods_spec_base
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_goods_spec_base` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`goods_id` int(11) NULL DEFAULT '0' COMMENT '商品id',
`price` decimal(10,2) NULL DEFAULT '0.00' COMMENT '销售价格',
`inventory` int(10) NULL DEFAULT '0' COMMENT '库存',
`weight` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '重量(kg) ',
`coding` char(80) NULL COMMENT '编码',
`barcode` char(80) NULL COMMENT '条形码',
`original_price` decimal(10,2) NULL DEFAULT '0.00' COMMENT '原价',
`extends` longtext NULL COMMENT '扩展数据(json格式存储)',
KEY `goods_id` (`goods_id`),
KEY `price` (`price`),
KEY `inventory` (`inventory`),
KEY `weight` (`weight`),
KEY `coding` (`coding`),
KEY `barcode` (`barcode`),
KEY `original_price` (`original_price`),
KEY `extends` (`extends`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-商品规格基础';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
goods_id | int(11) | 0 | 否 | 商品id | 0 | |
price | decimal(10,2) | 0.00 | 否 | 销售价格 | Normal Index | 0.00 |
inventory | int(10) | 0 | 否 | 库存 | 0 | |
weight | decimal(10,2) unsigned | 0.00 | 否 | 重量(kg) | 0.00 | |
coding | char(80) | 否 | 编码 | |||
barcode | char(80) | 否 | 条形码 | |||
original_price | decimal(10,2) | 0.00 | 否 | 原价 | 0.00 | |
extends | longtext | 是 | 扩展数据(json格式存储) |