Files
member-console/internal/domains/models.go
T
cgalo5758 c85ac6acdc Add domain claim lifecycle safeguards
Make claim windows and workspace caps configurable, and enforce
initiation
and abandonment budgets without penalizing DNS evidence or system
failures.
Add operator visibility into live claims and default verification to 24
hours.
2026-07-25 00:40:24 -05:00

57 lines
1.9 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package domains
import (
"database/sql"
"time"
"github.com/google/uuid"
)
type Claim struct {
ClaimID string `json:"claim_id"`
WorkspaceID string `json:"workspace_id"`
RootFqdn string `json:"root_fqdn"`
ReversedLabels string `json:"reversed_labels"`
Kind string `json:"kind"`
ParentClaimID uuid.NullUUID `json:"parent_claim_id"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Token string `json:"token"`
ExpiresAt sql.NullTime `json:"expires_at"`
VerifiedAt sql.NullTime `json:"verified_at"`
TxtState string `json:"txt_state"`
TxtObserved string `json:"txt_observed"`
ConnectState string `json:"connect_state"`
ConnectObserved string `json:"connect_observed"`
LastCheckedAt sql.NullTime `json:"last_checked_at"`
EvidenceAt sql.NullTime `json:"evidence_at"`
AbandonedAt sql.NullTime `json:"abandoned_at"`
SystemCanceledAt sql.NullTime `json:"system_canceled_at"`
}
type NameRule struct {
RuleID string `json:"rule_id"`
RootClaimID uuid.NullUUID `json:"root_claim_id"`
Label string `json:"label"`
Kind string `json:"kind"`
Note string `json:"note"`
CreatedAt time.Time `json:"created_at"`
}
type Placement struct {
PlacementID string `json:"placement_id"`
ClaimID string `json:"claim_id"`
Fqdn string `json:"fqdn"`
ReversedLabels string `json:"reversed_labels"`
Provider string `json:"provider"`
ResourceRef string `json:"resource_ref"`
Servable bool `json:"servable"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}