package domain import "time" type RPUserMetadata struct { ClientID string `gorm:"column:client_id;primaryKey" json:"clientId"` UserID string `gorm:"column:user_id;type:uuid;primaryKey" json:"userId"` User *User `gorm:"foreignKey:UserID" json:"-"` Metadata JSONMap `gorm:"column:metadata;type:jsonb" json:"metadata"` CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"` } func (RPUserMetadata) TableName() string { return "rp_user_metadata" }