+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_xbinstore_tb_item:/tablelist/okayapi_xbinstore_tb_item.html


-- MySQL Table okayapi_xbinstore_tb_item
-- From: OkayAPI.com
CREATE TABLE `okayapi_xbinstore_tb_item` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `title` varchar(100) NOT NULL COMMENT '商品标题',
    `sell_point` varchar(500) NOT NULL COMMENT '商品卖点',
    `price` bigint(20) NOT NULL COMMENT '商品价格,单位为:分',
    `num` int(10) NOT NULL COMMENT '库存数量',
    `barcode` varchar(30) NOT NULL COMMENT '商品条形码',
    `image` varchar(500) NOT NULL COMMENT '商品图片',
    `cid` bigint(10) NOT NULL COMMENT '所属类目,叶子类目',
    `okayapi_xbinstore_tb_item_status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '商品状态,1-正常,2-下架,3-删除',
    `weight` int(10) NOT NULL COMMENT '重量',
    `created` datetime NOT NULL COMMENT '创建时间',
    `updated` datetime NOT NULL COMMENT '更新时间',
    `colour` varchar(10) NOT NULL COMMENT '颜色',
    `size` varchar(10) NOT NULL COMMENT '尺寸',
    KEY `title` (`title`),
    KEY `sell_point` (`sell_point`),
    KEY `price` (`price`),
    KEY `num` (`num`),
    KEY `barcode` (`barcode`),
    KEY `image` (`image`),
    KEY `cid` (`cid`),
    KEY `okayapi_xbinstore_tb_item_status` (`okayapi_xbinstore_tb_item_status`),
    KEY `weight` (`weight`),
    KEY `created` (`created`),
    KEY `updated` (`updated`),
    KEY `colour` (`colour`),
    KEY `size` (`size`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'B2C商城-商品表';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-13 of 13 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
titlevarchar(100)商品标题
sell_pointvarchar(500)商品卖点
pricebigint(20)商品价格,单位为:分
numint(10)库存数量
barcodevarchar(30)商品条形码
imagevarchar(500)商品图片
cidbigint(10)所属类目,叶子类目Normal Index
okayapi_xbinstore_tb_item_statustinyint(4)1商品状态,1-正常,2-下架,3-删除Normal Index1
weightint(10)重量
createddatetime创建时间
updateddatetime更新时间Normal Index
colourvarchar(10)颜色
sizevarchar(10)尺寸

Guess You Like

MySQL Table Design okayapi_xbinstore_tb_category

MySQL Table Design okayapi_xbinstore_tb_category_image

MySQL Table Design okayapi_xbinstore_tb_category_secondary

MySQL Table Design okayapi_xbinstore_tb_hot_words

MySQL Table Design okayapi_xbinstore_tb_index_slide_ad

MySQL Table Design okayapi_xbinstore_tb_item_desc

MySQL Table Design okayapi_xbinstore_tb_item_param

MySQL Table Design okayapi_xbinstore_tb_item_param_item

MySQL Table Design okayapi_xbinstore_tb_manage_user

MySQL Table Design okayapi_xbinstore_tb_order

MySQL Table Design okayapi_xbinstore_tb_order_item

MySQL Table Design okayapi_xbinstore_tb_transaction_message

MySQL Table Design okayapi_xbinstore_tb_user

MySQL Table Design okayapi_xbinstore_tb_user_addr

TOP ↑