You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
496 B

package user
import "time"
// 邀请人的历史记录
type InviteHistory struct {
ID int64 `gorm:"column:id" json:"id"`
InviterUserID uint `gorm:"inviter_user_id" json:"inviterUserId"`
InviterCode string `gorm:"column:inviter_code" json:"inviteCode"`
UserId uint `gorm:"column:user_id" json:"userId"`
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
}
func (r *InviteHistory) TableName() string {
return "recook_invite_history"
}