From e7b0ca8ba900fdf379cf1a53ab3117265c2a62a6 Mon Sep 17 00:00:00 2001 From: adlerhurst <27845747+adlerhurst@users.noreply.github.com> Date: Fri, 25 Jul 2025 16:17:14 +0200 Subject: [PATCH] add missing fields --- backend/v3/domain/domain.go | 9 ++++++++- backend/v3/domain/instance_domain.go | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/v3/domain/domain.go b/backend/v3/domain/domain.go index fbe4f04192..2632775a55 100644 --- a/backend/v3/domain/domain.go +++ b/backend/v3/domain/domain.go @@ -1,6 +1,10 @@ package domain -import "github.com/zitadel/zitadel/backend/v3/storage/database" +import ( + "time" + + "github.com/zitadel/zitadel/backend/v3/storage/database" +) type DomainValidationType string @@ -61,6 +65,9 @@ type domainChanges interface { // SetValidationType sets the verification type column. // If the domain is already verified, this is a no-op. SetValidationType(verificationType DomainValidationType) database.Change + // SetUpdatedAt sets the updated at column. + // This is used for reducing events. + SetUpdatedAt(t time.Time) database.Change } // import ( diff --git a/backend/v3/domain/instance_domain.go b/backend/v3/domain/instance_domain.go index 7acbf11b6b..e4e0d3924c 100644 --- a/backend/v3/domain/instance_domain.go +++ b/backend/v3/domain/instance_domain.go @@ -23,6 +23,7 @@ type AddInstanceDomain struct { Domain string `json:"domain,omitempty" db:"domain"` IsVerified bool `json:"isVerified,omitempty" db:"is_verified"` IsPrimary bool `json:"isPrimary,omitempty" db:"is_primary"` + IsGenerated bool `json:"isGenerated,omitempty" db:"is_generated"` ValidationType DomainValidationType `json:"validationType,omitempty" db:"validation_type"` // CreatedAt is the time when the domain was added.