17 lines
541 B
Go
17 lines
541 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// UserTrack 对应表 user_tracks
|
|
type UserTrack struct {
|
|
ID string `gorm:"column:id;primaryKey;size:50"`
|
|
UserID string `gorm:"column:user_id;size:100"`
|
|
Action string `gorm:"column:action;size:50"`
|
|
ChapterID *string `gorm:"column:chapter_id;size:100"`
|
|
Target *string `gorm:"column:target;size:200"`
|
|
ExtraData []byte `gorm:"column:extra_data;type:json"`
|
|
CreatedAt *time.Time `gorm:"column:created_at"`
|
|
}
|
|
|
|
func (UserTrack) TableName() string { return "user_tracks" }
|