Files
Go-Web-Template/server/model/system/user_invite_relation.go
2026-04-23 15:29:07 +08:00

17 lines
604 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package system
import "time"
// UserInviteRelation 邀请关系inviter -> invitee
type UserInviteRelation struct {
ID uint `json:"id" gorm:"primaryKey"`
InviterUserID uint `json:"inviterUserId" gorm:"index;not null;comment:邀请人用户ID"`
InviteeUserID uint `json:"inviteeUserId" gorm:"uniqueIndex;not null;comment:被邀请人用户ID(唯一)"`
InviteCodeID uint `json:"inviteCodeId" gorm:"index;not null;comment:邀请码ID"`
CreatedAt time.Time `json:"createdAt"`
}
func (UserInviteRelation) TableName() string {
return "user_invite_relations"
}