2025-07-16 09:26:46 +02:00
|
|
|
package domain
|
|
|
|
|
|
|
|
import (
|
2025-07-16 18:36:21 +02:00
|
|
|
"time"
|
2025-07-16 09:26:46 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type OrganizationDomain struct {
|
2025-07-25 17:59:02 +02:00
|
|
|
InstanceID string `json:"instanceId,omitempty" db:"instance_id"`
|
|
|
|
OrgID string `json:"orgId,omitempty" db:"org_id"`
|
|
|
|
Domain string `json:"domain,omitempty" db:"domain"`
|
|
|
|
IsVerified bool `json:"isVerified,omitempty" db:"is_verified"`
|
|
|
|
IsPrimary bool `json:"isPrimary,omitempty" db:"is_primary"`
|
|
|
|
ValidationType *DomainValidationType `json:"validationType,omitempty" db:"validation_type"`
|
2025-07-16 09:26:46 +02:00
|
|
|
|
2025-07-23 12:11:51 +02:00
|
|
|
CreatedAt time.Time `json:"createdAt,omitzero" db:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updatedAt,omitzero" db:"updated_at"`
|
2025-07-16 09:26:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type AddOrganizationDomain struct {
|
2025-07-25 17:59:02 +02:00
|
|
|
InstanceID string `json:"instanceId,omitempty" db:"instance_id"`
|
|
|
|
OrgID string `json:"orgId,omitempty" db:"org_id"`
|
|
|
|
Domain string `json:"domain,omitempty" db:"domain"`
|
|
|
|
IsVerified bool `json:"isVerified,omitempty" db:"is_verified"`
|
|
|
|
IsPrimary bool `json:"isPrimary,omitempty" db:"is_primary"`
|
|
|
|
ValidationType *DomainValidationType `json:"validationType,omitempty" db:"validation_type"`
|
2025-07-16 18:36:21 +02:00
|
|
|
|
|
|
|
// CreatedAt is the time when the domain was added.
|
|
|
|
// It is set by the repository and should not be set by the caller.
|
|
|
|
CreatedAt time.Time `json:"createdAt,omitzero" db:"created_at"`
|
|
|
|
// UpdatedAt is the time when the domain was added.
|
|
|
|
// It is set by the repository and should not be set by the caller.
|
|
|
|
UpdatedAt time.Time `json:"updatedAt,omitzero" db:"updated_at"`
|
2025-07-16 09:26:46 +02:00
|
|
|
}
|