+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:openant电商-商品:https://open.yesapi.cn/tablelist/yesapi_openant_product.html


-- 数据库大全:openant电商-商品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_openant_product` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL COMMENT '',
    `address_id` int(11) NOT NULL COMMENT '',
    `stock_status_id` int(11) NOT NULL COMMENT '',
    `freight_template_id` int(11) NOT NULL COMMENT '',
    `image` varchar(255) NOT NULL COMMENT '',
    `manufacturer_id` int(11) NOT NULL COMMENT '',
    `shipping` tinyint(1) NOT NULL DEFAULT '1' COMMENT '',
    `price` decimal(15,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `points` int(8) NOT NULL DEFAULT '0' COMMENT '',
    `user_points` int(11) NOT NULL COMMENT '',
    `tax_class_id` int(11) NOT NULL COMMENT '',
    `weight` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
    `weight_class_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `length` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
    `width` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
    `height` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
    `length_class_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `subtract` tinyint(1) NOT NULL DEFAULT '1' COMMENT '',
    `maximum` int(3) NOT NULL COMMENT '',
    `commission_rate` int(11) NOT NULL DEFAULT '1' COMMENT '',
    `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `seo_order` float(11,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `yesapi_openant_product_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '上下架',
    `viewed` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `quantity` int(11) NOT NULL COMMENT '',
    `invalid` tinyint(1) NOT NULL DEFAULT '0' COMMENT '永久屏蔽',
    `date_added` datetime NOT NULL COMMENT '',
    `date_modified` datetime NOT NULL COMMENT '',
    `date_invalid` datetime NOT NULL COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'openant电商-商品';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-30 条, 共 30 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
product_idint(11)无索引
address_idint(11)无索引
stock_status_idint(11)无索引
freight_template_idint(11)无索引
imagevarchar(255)无索引
manufacturer_idint(11)无索引
shippingtinyint(1)1无索引1
pricedecimal(15,4)0.0000无索引0.0000
pointsint(8)0无索引0
user_pointsint(11)无索引
tax_class_idint(11)无索引
weightdecimal(15,8)0.00000000无索引0.00000000
weight_class_idint(11)0无索引0
lengthdecimal(15,8)0.00000000无索引0.00000000
widthdecimal(15,8)0.00000000无索引0.00000000
heightdecimal(15,8)0.00000000无索引0.00000000
length_class_idint(11)0无索引0
subtracttinyint(1)1无索引1
maximumint(3)无索引
commission_rateint(11)1无索引1
store_idint(11)0无索引0
sort_orderint(11)0无索引0
seo_orderfloat(11,4)0.0000无索引0.0000
yesapi_openant_product_statustinyint(1)0上下架无索引0
viewedint(11)0无索引0
quantityint(11)无索引
invalidtinyint(1)0永久屏蔽无索引0
date_addeddatetime无索引
date_modifieddatetime无索引
date_invaliddatetime无索引

猜你喜欢

MySQL数据库设计 商品表

MySQL数据库设计 商品评价

MySQL数据库设计 openant电商-

MySQL数据库设计 openant电商-市场提醒

MySQL数据库设计 openant电商-市场提醒描述

MySQL数据库设计 openant电商-API接口

MySQL数据库设计 openant电商-属性

MySQL数据库设计 openant电商-属性分组

MySQL数据库设计 openant电商-属性分组

MySQL数据库设计 openant电商-属性分组描述

MySQL数据库设计 openant电商-顶部

MySQL数据库设计 openant电商-顶部大图

MySQL数据库设计 openant电商-顶部图片描述

MySQL数据库设计 openant电商-条形码

MySQL数据库设计 openant电商-条形码描述

MySQL数据库设计 openant电商-论坛活动

MySQL数据库设计 openant电商-论坛讨论

MySQL数据库设计 openant电商-论坛讨论描述

MySQL数据库设计 openant电商-论坛版块

MySQL数据库设计 openant电商-论坛版块说明



回到顶部 ↑