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

MySQL建表SQL语句

数据库结构:汽车故障诊断-:https://open.yesapi.cn/tablelist/yesapi_ecs_goods.html


-- 数据库大全:汽车故障诊断-
-- 来源:YesApi.cn
CREATE TABLE `yesapi_ecs_goods` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `cat_id` smallint(5) NULL DEFAULT '0' COMMENT '',
    `goods_sn` varchar(60) NULL COMMENT '',
    `goods_name` varchar(120) NULL COMMENT '',
    `goods_name_style` varchar(60) NULL DEFAULT '+' COMMENT '',
    `click_count` int(10) NULL DEFAULT '0' COMMENT '',
    `brand_id` smallint(5) NULL DEFAULT '0' COMMENT '',
    `provider_name` varchar(100) NULL COMMENT '',
    `goods_number` smallint(5) NULL DEFAULT '0' COMMENT '',
    `goods_weight` decimal(10,3) unsigned NULL DEFAULT '0.000' COMMENT '',
    `market_price` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '',
    `shop_price` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '',
    `promote_price` decimal(10,2) unsigned NULL DEFAULT '0.00' COMMENT '',
    `promote_start_date` int(11) NULL DEFAULT '0' COMMENT '',
    `promote_end_date` int(11) NULL DEFAULT '0' COMMENT '',
    `warn_number` tinyint(3) NULL DEFAULT '1' COMMENT '',
    `keywords` varchar(255) NULL COMMENT '',
    `goods_brief` varchar(255) NULL COMMENT '',
    `goods_desc` text NULL COMMENT '',
    `goods_thumb` varchar(255) NULL COMMENT '',
    `goods_img` varchar(255) NULL COMMENT '',
    `original_img` varchar(255) NULL COMMENT '',
    `is_real` tinyint(3) NULL DEFAULT '1' COMMENT '',
    `extension_code` varchar(30) NULL COMMENT '',
    `is_on_sale` tinyint(1) NULL DEFAULT '1' COMMENT '',
    `is_alone_sale` tinyint(1) NULL DEFAULT '1' COMMENT '',
    `is_shipping` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `integral` int(10) NULL DEFAULT '0' COMMENT '',
    `sort_order` smallint(4) NULL DEFAULT '100' COMMENT '',
    `is_delete` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_best` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_new` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_hot` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_promote` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `bonus_type_id` tinyint(3) NULL DEFAULT '0' COMMENT '',
    `last_update` int(10) NULL DEFAULT '0' COMMENT '',
    `goods_type` smallint(5) NULL DEFAULT '0' COMMENT '',
    `seller_note` varchar(255) NULL COMMENT '',
    `give_integral` int(11) NULL DEFAULT '-1' COMMENT '',
    `rank_integral` int(11) NULL DEFAULT '-1' COMMENT '',
    `suppliers_id` smallint(5) NULL COMMENT '',
    `is_check` tinyint(1) NULL COMMENT '',
    KEY `cat_id` (`cat_id`),
    KEY `goods_sn` (`goods_sn`),
    KEY `brand_id` (`brand_id`),
    KEY `goods_number` (`goods_number`),
    KEY `goods_weight` (`goods_weight`),
    KEY `promote_start_date` (`promote_start_date`),
    KEY `promote_end_date` (`promote_end_date`),
    KEY `sort_order` (`sort_order`),
    KEY `last_update` (`last_update`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '汽车故障诊断-';

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


MySQL数据库表结构设计

第 1-41 条, 共 41 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
cat_idsmallint(5)0普通索引0
goods_snvarchar(60)普通索引
goods_namevarchar(120)无索引
goods_name_stylevarchar(60)+无索引+
click_countint(10)0无索引0
brand_idsmallint(5)0普通索引0
provider_namevarchar(100)无索引
goods_numbersmallint(5)0普通索引0
goods_weightdecimal(10,3) unsigned0.000普通索引0.000
market_pricedecimal(10,2) unsigned0.00无索引0.00
shop_pricedecimal(10,2) unsigned0.00无索引0.00
promote_pricedecimal(10,2) unsigned0.00无索引0.00
promote_start_dateint(11)0普通索引0
promote_end_dateint(11)0普通索引0
warn_numbertinyint(3)1无索引1
keywordsvarchar(255)无索引
goods_briefvarchar(255)无索引
goods_desctext无索引
goods_thumbvarchar(255)无索引
goods_imgvarchar(255)无索引
original_imgvarchar(255)无索引
is_realtinyint(3)1无索引1
extension_codevarchar(30)无索引
is_on_saletinyint(1)1无索引1
is_alone_saletinyint(1)1无索引1
is_shippingtinyint(1)0无索引0
integralint(10)0无索引0
sort_ordersmallint(4)100普通索引100
is_deletetinyint(1)0无索引0
is_besttinyint(1)0无索引0
is_newtinyint(1)0无索引0
is_hottinyint(1)0无索引0
is_promotetinyint(1)0无索引0
bonus_type_idtinyint(3)0无索引0
last_updateint(10)0普通索引0
goods_typesmallint(5)0无索引0
seller_notevarchar(255)无索引
give_integralint(11)-1无索引-1
rank_integralint(11)-1无索引-1
suppliers_idsmallint(5)无索引
is_checktinyint(1)无索引

猜你喜欢

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-



回到顶部 ↑