代码拉取完成,页面将自动刷新
同步操作将从 cristiane/micro-mall-sku 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package models
import (
"time"
)
type SkuInventory struct {
Id int64 `xorm:"pk autoincr comment('商品库存ID') BIGINT"`
SkuCode string `xorm:"not null comment('商品编码') unique CHAR(64)"`
Amount int64 `xorm:"comment('库存数量') BIGINT"`
Price string `xorm:"comment('入库单价') DECIMAL(32,16)"`
ShopId int64 `xorm:"not null comment('所属店铺ID') index BIGINT"`
Version int `xorm:"not null default 1 comment('商品版本') INT"`
LastTxId string `xorm:"not null default 'dd13b4aa-4121-4898-a2b5-bcfebccb713b' comment('最后一次更新事务ID') index CHAR(60)"`
CreateTime time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
UpdateTime time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('修改时间') DATETIME"`
}
type SkuInventoryRecord struct {
Id int64 `xorm:"pk autoincr comment('自责ID') BIGINT"`
OutTradeNo string `xorm:"comment('外部订单号') index CHAR(40)"`
ShopId int64 `xorm:"comment('店铺ID') index BIGINT"`
SkuCode string `xorm:"comment('商品sku') index CHAR(40)"`
OpType int `xorm:"default 0 comment('操作类型,0-入库,1-出库,2-冻结') index(verify_op_type_index) TINYINT"`
OpUid int64 `xorm:"comment('操作的用户ID') BIGINT"`
OpIp string `xorm:"comment('操作IP地址') VARCHAR(255)"`
AmountBefore int64 `xorm:"comment('变化之前数量') BIGINT"`
Amount int64 `xorm:"comment('操作数量') BIGINT"`
OpTxId string `xorm:"comment('操作的事务ID') index CHAR(60)"`
State int `xorm:"default 0 comment('状态,0-有效,1-锁定中,2-无效') TINYINT"`
Verify int `xorm:"default 0 comment('是否核实,0-未核实,1-已核实') index(verify_op_type_index) TINYINT"`
CreateTime time.Time `xorm:"default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
UpdateTime time.Time `xorm:"default CURRENT_TIMESTAMP comment('修改时间') DATETIME"`
}
type SkuPriceHistory struct {
Id int64 `xorm:"pk autoincr comment('自增ID') BIGINT"`
ShopId int64 `xorm:"not null comment('调价的店铺id') index(shop_id_sku_code_index) BIGINT"`
SkuCode string `xorm:"not null comment('商品sku_code') index(shop_id_sku_code_index) index CHAR(40)"`
Price string `xorm:"not null comment('调整后价格') DECIMAL(32,16)"`
Reason string `xorm:"comment('调价说明') TEXT"`
Version int `xorm:"comment('调整版本') INT"`
OpUid int64 `xorm:"comment('操作员UID') BIGINT"`
OpIp string `xorm:"comment('操作员IP') CHAR(16)"`
CreateTime time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
UpdateTime time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('更新时间') DATETIME"`
}
type SkuProperty struct {
Id int64 `xorm:"pk autoincr comment('ID') BIGINT"`
Code string `xorm:"not null comment('商品唯一编号') index CHAR(64)"`
Price string `xorm:"comment('商品当前价格') DECIMAL(32,16)"`
Name string `xorm:"comment('商品名称') index VARCHAR(255)"`
Desc string `xorm:"comment('商品描述') TEXT"`
Production string `xorm:"comment('生产企业') VARCHAR(1024)"`
Supplier string `xorm:"comment('供应商') VARCHAR(1024)"`
Category int `xorm:"comment('商品类别') INT"`
Title string `xorm:"comment('商品标题') VARCHAR(255)"`
SubTitle string `xorm:"comment('商品副标题') VARCHAR(255)"`
Color string `xorm:"comment('商品颜色') VARCHAR(64)"`
ColorCode int `xorm:"comment('商品颜色代码') INT"`
Specification string `xorm:"comment('商品规格') VARCHAR(255)"`
DescLink string `xorm:"comment('商品介绍链接') VARCHAR(255)"`
State int `xorm:"default 0 comment('商品状态,0-有效,1-无效,2-锁定') TINYINT"`
CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"`
UpdateTime time.Time `xorm:"not null comment('更新时间') DATETIME"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。