账号上下架增加统计
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// ListingStatusEvent 记录商品上架/主动下架/交易离架等状态变更,供后台日统计使用。
|
||||
type ListingStatusEvent struct {
|
||||
ID uint64 `gorm:"primaryKey" json:"id"`
|
||||
ListingID uint64 `gorm:"not null;index" json:"listing_id"`
|
||||
OwnerID uint64 `gorm:"not null;default:0" json:"owner_id"`
|
||||
EventType string `gorm:"size:32;not null" json:"event_type"`
|
||||
FromStatus string `gorm:"size:32;not null;default:''" json:"from_status"`
|
||||
ToStatus string `gorm:"size:32;not null;default:''" json:"to_status"`
|
||||
Source string `gorm:"size:32;not null;default:''" json:"source"`
|
||||
ActorType string `gorm:"size:16;not null;default:''" json:"actor_type"`
|
||||
ActorID uint64 `gorm:"not null;default:0" json:"actor_id"`
|
||||
Remark string `gorm:"size:255;not null;default:''" json:"remark"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
func (ListingStatusEvent) TableName() string {
|
||||
return "listing_status_events"
|
||||
}
|
||||
Reference in New Issue
Block a user