feat: 苹果支付uuid 及设备逻辑
Build docker and publish / build (20.15.1) (push) Successful in 8m3s

This commit is contained in:
2026-03-10 19:53:19 -07:00
parent 662ef6edb3
commit 26f6400e74
10 changed files with 142 additions and 25 deletions
+2 -2
View File
@@ -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"`