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.