13 lines
502 B
Go
13 lines
502 B
Go
package model
|
|
|
|
// User 用户模型
|
|
type UserInvited struct {
|
|
Model
|
|
UserId int32 `gorm:"column:user_id;type:int;not null;comment:邀请人账号id"`
|
|
InvitedUserId int32 `gorm:"column:invited_user_id;type:int;not null;comment:受邀请人账号id"`
|
|
Count int32 `gorm:"column:count;type:int;default:1;邀请次数统计"`
|
|
|
|
InviteCode string `gorm:"column:invite_code;comment:邀请人的邀请码"`
|
|
InvitedCode string `gorm:"column:invited_code;comment:受邀请人的邀请码"`
|
|
}
|