add missing fields

This commit is contained in:
adlerhurst
2025-07-25 16:17:14 +02:00
parent 3aa5adf8f4
commit e7b0ca8ba9
2 changed files with 9 additions and 1 deletions

View File

@@ -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 (

View File

@@ -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.