+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_shopxo_s_cart:/tablelist/okayapi_shopxo_s_cart.html


-- MySQL Table okayapi_shopxo_s_cart
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_cart` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
    `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
    `title` char(60) NOT NULL COMMENT '标题',
    `images` char(255) NOT NULL COMMENT '封面图片',
    `original_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '原价',
    `price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '销售价格',
    `stock` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
    `spec` char(255) NOT NULL COMMENT '规格',
    `upd_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
    KEY `user_id` (`user_id`),
    KEY `goods_id` (`goods_id`),
    KEY `title` (`title`),
    KEY `images` (`images`),
    KEY `original_price` (`original_price`),
    KEY `price` (`price`),
    KEY `stock` (`stock`),
    KEY `spec` (`spec`),
    KEY `upd_time` (`upd_time`),
    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-9 of 9 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(11)0用户idNormal Index0
goods_idint(11)0商品idNormal Index0
titlechar(60)标题Normal Index
imageschar(255)封面图片
original_pricedecimal(10,2) unsigned0.00原价0.00
pricedecimal(10,2) unsigned0.00销售价格0.00
stockint(11)0购买数量Normal Index0
specchar(255)规格
upd_timeint(11)0更新时间0

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_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

MySQL Table Design okayapi_shopxo_s_goods_content_app

TOP ↑