2023-01-18 09:03:15 +00:00
|
|
|
package model
|
|
|
|
|
2023-02-15 01:10:11 +00:00
|
|
|
// User 用户模型
|
2023-01-18 09:03:15 +00:00
|
|
|
type UserInvited struct {
|
2023-02-15 01:10:11 +00:00
|
|
|
Model
|
2023-03-16 05:18:57 +00:00
|
|
|
UserId int32 `gorm:"column:user_id;type:int;not null;comment:邀请人id"`
|
2023-03-14 07:09:13 +00:00
|
|
|
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;邀请次数统计"`
|
2023-01-18 09:03:15 +00:00
|
|
|
}
|
2023-03-14 10:45:35 +00:00
|
|
|
|
|
|
|
func (UserInvited) TableName() string {
|
|
|
|
return "user_invited"
|
|
|
|
}
|