YiTao/model/history_model.go

16 lines
242 B
Go
Raw Permalink Normal View History

2025-01-12 13:50:43 +08:00
package model
type HistoryModel struct {
BaseModel
UserId uint
ItemId uint
Count int
2025-01-21 14:37:34 +08:00
User UserModel `gorm:"foreignKey:UserId"`
Item ItemModel `gorm:"foreignKey:ItemId"`
}
func (HistoryModel) TableName() string {
return "history"
2025-01-12 13:50:43 +08:00
}