You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
386 B
14 lines
386 B
package goods
|
|
|
|
type Attribute struct {
|
|
ID uint `gorm:"column:id;primary_key" json:"id"`
|
|
GoodsID uint `gorm:"column:goods_id" json:"-"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Value string `gorm:"column:value" json:"value"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (r *Attribute) TableName() string {
|
|
return "recook_goods_attribute"
|
|
}
|