Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SkuMetas ¶
type SkuMetas struct { ID int64 `gorm:"column:id;type:bigint unsigned NOT NULL;autoIncrement;primaryKey" json:"id"` SKU string `gorm:"column:sku;type:varchar(64) NOT NULL;uniqueIndex:udx_sku" json:"sku"` //SKU Model string `gorm:"column:model;type:varchar(128) NOT NULL;index:idx_model" json:"model"` //型号 BrandName string `gorm:"column:brand_name;type:varchar(128) NOT NULL" json:"brand_name"` //品牌名称 BrandCode string `gorm:"column:brand_code;type:varchar(16) NOT NULL;index:idx_brand_code" json:"brand_code"` //品牌编码 CreatedAt string `gorm:"column:created_at;->;type:timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP" json:"-"` //更新时间 UpdatedAt string `gorm:"column:updated_at;->;type:timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" json:"-"` //更新时间 Specification string `gorm:"column:specification;type:text DEFAULT NULL" json:"specification"` //属性 }
Click to show internal directories.
Click to hide internal directories.