This commit is contained in:
@@ -13,13 +13,13 @@ const (
|
||||
FamilyMemberActive uint8 = 1
|
||||
FamilyMemberLeft uint8 = 2
|
||||
FamilyMemberRemoved uint8 = 3
|
||||
DefaultFamilyMaxSize int64 = 5
|
||||
DefaultFamilyMaxSize int64 = 2
|
||||
)
|
||||
|
||||
type UserFamily struct {
|
||||
Id int64 `gorm:"primaryKey"`
|
||||
OwnerUserId int64 `gorm:"uniqueIndex:uniq_owner_user_id;not null;comment:Owner User ID"`
|
||||
MaxMembers int64 `gorm:"not null;default:5;comment:Max members in family"`
|
||||
MaxMembers int64 `gorm:"not null;default:2;comment:Max members in family"`
|
||||
Status uint8 `gorm:"type:tinyint(1);not null;default:1;comment:Status: 1=active, 0=disabled"`
|
||||
CreatedAt time.Time `gorm:"<-:create;comment:Creation Time"`
|
||||
UpdatedAt time.Time `gorm:"comment:Update Time"`
|
||||
|
||||
Reference in New Issue
Block a user