mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 13:07:46 +00:00
add missing fields
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
package domain
|
package domain
|
||||||
|
|
||||||
import "github.com/zitadel/zitadel/backend/v3/storage/database"
|
import (
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/zitadel/zitadel/backend/v3/storage/database"
|
||||||
|
)
|
||||||
|
|
||||||
type DomainValidationType string
|
type DomainValidationType string
|
||||||
|
|
||||||
@@ -61,6 +65,9 @@ type domainChanges interface {
|
|||||||
// SetValidationType sets the verification type column.
|
// SetValidationType sets the verification type column.
|
||||||
// If the domain is already verified, this is a no-op.
|
// If the domain is already verified, this is a no-op.
|
||||||
SetValidationType(verificationType DomainValidationType) database.Change
|
SetValidationType(verificationType DomainValidationType) database.Change
|
||||||
|
// SetUpdatedAt sets the updated at column.
|
||||||
|
// This is used for reducing events.
|
||||||
|
SetUpdatedAt(t time.Time) database.Change
|
||||||
}
|
}
|
||||||
|
|
||||||
// import (
|
// import (
|
||||||
|
@@ -23,6 +23,7 @@ type AddInstanceDomain struct {
|
|||||||
Domain string `json:"domain,omitempty" db:"domain"`
|
Domain string `json:"domain,omitempty" db:"domain"`
|
||||||
IsVerified bool `json:"isVerified,omitempty" db:"is_verified"`
|
IsVerified bool `json:"isVerified,omitempty" db:"is_verified"`
|
||||||
IsPrimary bool `json:"isPrimary,omitempty" db:"is_primary"`
|
IsPrimary bool `json:"isPrimary,omitempty" db:"is_primary"`
|
||||||
|
IsGenerated bool `json:"isGenerated,omitempty" db:"is_generated"`
|
||||||
ValidationType DomainValidationType `json:"validationType,omitempty" db:"validation_type"`
|
ValidationType DomainValidationType `json:"validationType,omitempty" db:"validation_type"`
|
||||||
|
|
||||||
// CreatedAt is the time when the domain was added.
|
// CreatedAt is the time when the domain was added.
|
||||||
|
Reference in New Issue
Block a user