From 6cd06d86bc0162f285225c74374ba432b1f20a83 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Thu, 17 Apr 2025 17:18:58 +0800 Subject: [PATCH] add std_owner --- types/db.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/types/db.go b/types/db.go index 4dbde7e..2213dbb 100644 --- a/types/db.go +++ b/types/db.go @@ -51,7 +51,13 @@ type ( // standard PassportID,PassportIdentity definition. Std_Passport struct { PassportID uint `gorm:"column:passport_id;Index;" json:"passport_id"` - PassportIdentity string `gorm:"column:passport_identity;type:varchar(36);Index;" json:"passport_identity"` // 用户唯一标识,24位NanoID,36位为ULID + PassportIdentity string `gorm:"column:passport_identity;type:varchar(36);Index;" json:"passport_identity"` // 用户唯一标识,24位NanoID,36位为UUID + } + + // standard OwnerID,OwnerIdentity definition. + Std_Owner struct { + OwnerID uint `gorm:"column:owner_id;Index;" json:"owner_id"` + OwnerIdentity string `gorm:"column:owner_identity;type:varchar(36);Index;" json:"owner_identity"` // 用户唯一标识,24位NanoID,36位为UUID } // standard ID definition. @@ -61,7 +67,7 @@ type ( // standard Identity definition. Std_Identity struct { - Identity string `gorm:"column:identity;type:varchar(36);uniqueIndex;" json:"identity"` // 唯一标识,24位NanoID,36位为ULID + Identity string `gorm:"column:identity;type:varchar(36);uniqueIndex;" json:"identity"` // 唯一标识,24位NanoID,36位为UUID } // standard Status definition.