+ Use This Table All Design

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 NameField TypeDefaultIS NULLField CommentIndexDemo Data
goods_idint(11)0商品id0
pricedecimal(10,2)0.00销售价格Normal Index0.00
inventoryint(10)0库存0
weightdecimal(10,2) unsigned0.00重量(kg) 0.00
codingchar(80)编码
barcodechar(80)条形码
original_pricedecimal(10,2)0.00原价0.00
extendslongtext扩展数据(json格式存储)

Guess You Like

MySQL Table Design okayapi_goods

MySQL Table Design okayapi_goods_comment

MySQL Table Design okayapi_shopxo_s_admin

MySQL Table Design okayapi_shopxo_s_answer

MySQL Table Design okayapi_shopxo_s_app_center_nav

MySQL Table Design okayapi_shopxo_s_app_home_nav

MySQL Table Design okayapi_shopxo_s_article

MySQL Table Design okayapi_shopxo_s_article_category

MySQL Table Design okayapi_shopxo_s_attachment

MySQL Table Design okayapi_shopxo_s_brand

MySQL Table Design okayapi_shopxo_s_brand_category

MySQL Table Design okayapi_shopxo_s_cart

MySQL Table Design okayapi_shopxo_s_config

MySQL Table Design okayapi_shopxo_s_custom_view

MySQL Table Design okayapi_shopxo_s_express

MySQL Table Design okayapi_shopxo_s_goods

MySQL Table Design okayapi_shopxo_s_goods_browse

MySQL Table Design okayapi_shopxo_s_goods_category

MySQL Table Design okayapi_shopxo_s_goods_category_join

MySQL Table Design okayapi_shopxo_s_goods_comments

TOP ↑