Skip to content

ome_products

货品表

所属应用: ome

表结构

ColumnNameCommentTypeNot nullDefaultAutoincrement
product_id货品IDint(10) unsignedYY
goods_id商品IDint(10) unsignedY0N
titletitlevarchar(255)NN
bn货号varchar(30)NN
name货品名称varchar(200)YN
spec_info规格longtextNN
store库存(各仓库 的库存总和)mediumint(8) unsignedN0N
store_freeze冻结库存mediumint(8) unsignedN0N
price销售价格decimal(20,3)N0N
cost成本价decimal(20,3)N0N
mktprice市场价decimal(20,3)NN
weight重量decimal(20,3)NN
barcode条形码varchar(32)NN
unit单位varchar(20)NN
spec_desc规格值,序列化longtextNN
uptime录入日期int(10) unsignedNN
last_modified最后修改日期int(10) unsignedNN
disabled是否失效enum('true','false')YfalseN
marketable上架enum('true','false')YtrueN
sku_propertysku_propertytextNN
alert_store安全库存数mediumint(8) unsignedNN
limit_daylimit_daymediumint(8) unsignedNN
real_store_lastmodify实际库存最后更新时间int(10) unsignedNN
max_store_lastmodify最大可下单库存最后更新时间int(10) unsignedNN
taobao_sku_id淘宝SKU IDbigint(20)NN
picurl商品预览图片varchar(255)NN
visibility可视状态 false:隐藏;true:显示;enum('false','true')YtrueN
type货品类型 normal:基础货品;combination:组合商品;pkg:捆绑商品;enum('normal','combination','pkg')NnormalN
brand_id商品品牌mediumint(8) unsignedN0N

索引

Key nameColumn namesUniqueComment
primaryproduct_idY
ind_bnbnN
ind_namenameN
ind_barcodebarcodeN
ind_storestoreN
ind_real_store_lastmodifyreal_store_lastmodifyN
ind_max_store_lastmodifymax_store_lastmodifyN
idx_c_goods_idgoods_idN
idx_c_brand_idbrand_idN