package model import "time" // 邀请人的历史记录 type InviteCode struct { ID int64 `gorm:"column:id" json:"id"` InviterUserID uint `gorm:"inviter_user_id" json:"inviterUserId"` InviterCode string `gorm:"column:inviter_code" json:"userId"` ExpiredAt time.Time `gorm:"column:expired_at" json:"expiredAt"` CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"` } func (r *InviteCode) TableName() string { return "recook_invite_code" }