mirror of
https://github.com/go-eagle/eagle.git
synced 2025-09-27 04:45:58 +08:00
20 lines
695 B
Go
20 lines
695 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// UserStatModel 用户数据统计表
|
|
type UserStatModel struct {
|
|
ID uint64 `gorm:"primary_key;AUTO_INCREMENT;column:id" json:"-"`
|
|
UserID uint64 `gorm:"column:user_id;not null" json:"user_id" binding:"required"`
|
|
FollowCount int `gorm:"column:follow_count" json:"follow_count"`
|
|
FollowerCount int `gorm:"column:follower_count" json:"follower_count"`
|
|
Status int `gorm:"column:status" json:"status"`
|
|
CreatedAt time.Time `gorm:"column:created_at" json:"-"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at" json:"-"`
|
|
}
|
|
|
|
// TableName 表名
|
|
func (u *UserStatModel) TableName() string {
|
|
return "user_stat"
|
|
}
|