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
490 B

3 years ago
package model
3 years ago
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"
}