correct db tag

This commit is contained in:
adlerhurst
2025-07-30 08:00:16 +02:00
parent eaca713581
commit aeff5928b8
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ type Instance struct {
CreatedAt time.Time `json:"createdAt" db:"created_at"` CreatedAt time.Time `json:"createdAt" db:"created_at"`
UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` UpdatedAt time.Time `json:"updatedAt" db:"updated_at"`
Domains []*InstanceDomain `json:"domains,omitempty" db:"domains"` Domains []*InstanceDomain `json:"domains,omitempty" db:"-"` // domains need to be handled separately
} }
type instanceCacheIndex uint8 type instanceCacheIndex uint8

View File

@@ -22,7 +22,7 @@ type Organization struct {
CreatedAt time.Time `json:"createdAt,omitzero" db:"created_at"` CreatedAt time.Time `json:"createdAt,omitzero" db:"created_at"`
UpdatedAt time.Time `json:"updatedAt,omitzero" db:"updated_at"` UpdatedAt time.Time `json:"updatedAt,omitzero" db:"updated_at"`
Domains []*OrganizationDomain `json:"domains,omitempty" db:"domains"` Domains []*OrganizationDomain `json:"domains,omitempty" db:"-"` // domains need to be handled separately
} }
// OrgIdentifierCondition is used to help specify a single Organization, // OrgIdentifierCondition is used to help specify a single Organization,