16 lines
577 B
Go
16 lines
577 B
Go
package model
|
|
|
|
// User 用户模型
|
|
type UserInvited struct {
|
|
Model
|
|
UserId int32 `gorm:"column:user_id;type:int;not null;comment:邀请人id"`
|
|
InviteCode string `gorm:"column:invite_code;comment:邀请人的邀请码"`
|
|
InvitedCode string `gorm:"column:invited_code;comment:受邀请人的邀请码"`
|
|
InvitedUserId int32 `gorm:"column:invited_user_id;type:int;not null;comment:受邀请人画家宝用户id"`
|
|
Count int32 `gorm:"column:count;type:int;default:1;邀请次数统计"`
|
|
}
|
|
|
|
func (UserInvited) TableName() string {
|
|
return "user_invited"
|
|
}
|