Skip to content

Commit 81de394

Browse files
committed
refactor(datamodel): rename ProfileMetadata to Metadata for consistency
Because - Field naming should be consistent with full_name (no profile_ prefix) - Both fields are part of UserProfile in protobuf This commit - Rename ProfileMetadata to Metadata in Owner struct - Add explicit column:metadata tag for GORM mapping
1 parent a4a4ad2 commit 81de394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/datamodel/datamodel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type Owner struct {
6161
CookieToken sql.NullString
6262
ProfileAvatar sql.NullString
6363
SocialProfileLinks datatypes.JSON `gorm:"type:jsonb"`
64-
ProfileMetadata datatypes.JSON `gorm:"type:jsonb"`
64+
Metadata datatypes.JSON `gorm:"type:jsonb"`
6565
OnboardingStatus OnboardingStatus
6666
FullName sql.NullString
6767
}

0 commit comments

Comments
 (0)