18 lines
307 B
Go
18 lines
307 B
Go
|
package model
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type Event struct {
|
||
|
ID int `gorm:"primarykey" readonly:"true"`
|
||
|
Appid int
|
||
|
EventName string
|
||
|
ShowName string
|
||
|
YesterdayCount int
|
||
|
CreateTime time.Time
|
||
|
UpdateTime time.Time
|
||
|
}
|
||
|
|
||
|
func (m *Event) TableName() string {
|
||
|
return "mata_event"
|
||
|
}
|