16 lines
469 B
Go
16 lines
469 B
Go
package app
|
|
|
|
import "time"
|
|
|
|
type AppUserInviteRelation struct {
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
InviterUserID uint `json:"inviterUserId" gorm:"index;not null"`
|
|
InviteeUserID uint `json:"inviteeUserId" gorm:"uniqueIndex;not null"`
|
|
InviteCodeID uint `json:"inviteCodeId" gorm:"index;not null"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
func (AppUserInviteRelation) TableName() string {
|
|
return "app_user_invite_relations"
|
|
}
|