186 lines
6.8 KiB
Go
186 lines
6.8 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package db
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
type AdmissionBarrier struct {
|
|
TrunkID string `json:"trunk_id"`
|
|
OperationID string `json:"operation_id"`
|
|
TargetRevision int64 `json:"target_revision"`
|
|
Reason string `json:"reason"`
|
|
State string `json:"state"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type Attempt struct {
|
|
AttemptID string `json:"attempt_id"`
|
|
ExecutionID string `json:"execution_id"`
|
|
CallID string `json:"call_id"`
|
|
TenantKey string `json:"tenant_key"`
|
|
ProviderID string `json:"provider_id"`
|
|
TrunkID string `json:"trunk_id"`
|
|
CellID string `json:"cell_id"`
|
|
EgressPoolID string `json:"egress_pool_id"`
|
|
ConfigRevision int64 `json:"config_revision"`
|
|
Mode string `json:"mode"`
|
|
DialedNumber string `json:"dialed_number"`
|
|
AttemptStartedAt sql.NullString `json:"attempt_started_at"`
|
|
OriginStatus string `json:"origin_status"`
|
|
AnsweredAt sql.NullString `json:"answered_at"`
|
|
EndedAt sql.NullString `json:"ended_at"`
|
|
TerminationReason string `json:"termination_reason"`
|
|
SipCode sql.NullInt64 `json:"sip_code"`
|
|
Q850 string `json:"q850"`
|
|
AiStatus string `json:"ai_status"`
|
|
Source string `json:"source"`
|
|
FactVersion int64 `json:"fact_version"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type AttemptEvent struct {
|
|
EventID string `json:"event_id"`
|
|
AttemptID string `json:"attempt_id"`
|
|
EventType string `json:"event_type"`
|
|
EventTime string `json:"event_time"`
|
|
ReceivedAt string `json:"received_at"`
|
|
Source string `json:"source"`
|
|
FactVersion int64 `json:"fact_version"`
|
|
PayloadJson string `json:"payload_json"`
|
|
}
|
|
|
|
type AuditEntry struct {
|
|
AuditID string `json:"audit_id"`
|
|
ResourceType string `json:"resource_type"`
|
|
ResourceID string `json:"resource_id"`
|
|
Action string `json:"action"`
|
|
Revision int64 `json:"revision"`
|
|
Actor string `json:"actor"`
|
|
RequestID sql.NullString `json:"request_id"`
|
|
DetailsJson string `json:"details_json"`
|
|
CreatedAt string `json:"created_at"`
|
|
}
|
|
|
|
type Cell struct {
|
|
CellID string `json:"cell_id"`
|
|
Revision int64 `json:"revision"`
|
|
ConfigJson string `json:"config_json"`
|
|
CloudInstanceID string `json:"cloud_instance_id"`
|
|
InstanceName string `json:"instance_name"`
|
|
Region string `json:"region"`
|
|
BootID string `json:"boot_id"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
UpdatedBy string `json:"updated_by"`
|
|
}
|
|
|
|
type EgressPool struct {
|
|
EgressPoolID string `json:"egress_pool_id"`
|
|
ProviderID string `json:"provider_id"`
|
|
DisplayName string `json:"display_name"`
|
|
FixedIpsJson string `json:"fixed_ips_json"`
|
|
WhitelistStatus string `json:"whitelist_status"`
|
|
WhitelistCheckedAt sql.NullString `json:"whitelist_checked_at"`
|
|
Source string `json:"source"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type Observation struct {
|
|
ObservationID string `json:"observation_id"`
|
|
CellID string `json:"cell_id"`
|
|
TrunkID sql.NullString `json:"trunk_id"`
|
|
BootID string `json:"boot_id"`
|
|
Sequence int64 `json:"sequence"`
|
|
ObservedAt string `json:"observed_at"`
|
|
ReceivedAt string `json:"received_at"`
|
|
Source string `json:"source"`
|
|
ConfigRevision int64 `json:"config_revision"`
|
|
StatesJson string `json:"states_json"`
|
|
OccupancyJson string `json:"occupancy_json"`
|
|
SampleID string `json:"sample_id"`
|
|
}
|
|
|
|
type Operation struct {
|
|
OperationID string `json:"operation_id"`
|
|
Actor string `json:"actor"`
|
|
Action string `json:"action"`
|
|
ResourceType string `json:"resource_type"`
|
|
ResourceID string `json:"resource_id"`
|
|
RequestID string `json:"request_id"`
|
|
RequestDigest string `json:"request_digest"`
|
|
ExpectedRevision int64 `json:"expected_revision"`
|
|
State string `json:"state"`
|
|
HttpStatus int64 `json:"http_status"`
|
|
ResponseJson sql.NullString `json:"response_json"`
|
|
ErrorJson sql.NullString `json:"error_json"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
ExpiresAt string `json:"expires_at"`
|
|
}
|
|
|
|
type Provider struct {
|
|
ProviderID string `json:"provider_id"`
|
|
DisplayName string `json:"display_name"`
|
|
Notes string `json:"notes"`
|
|
Lifecycle string `json:"lifecycle"`
|
|
Revision int64 `json:"revision"`
|
|
CreatedAt string `json:"created_at"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
CreatedBy string `json:"created_by"`
|
|
UpdatedBy string `json:"updated_by"`
|
|
}
|
|
|
|
type Publication struct {
|
|
TrunkID string `json:"trunk_id"`
|
|
Revision int64 `json:"revision"`
|
|
CellID string `json:"cell_id"`
|
|
Status string `json:"status"`
|
|
ErrorCode sql.NullString `json:"error_code"`
|
|
TargetDigest string `json:"target_digest"`
|
|
LocalRevision int64 `json:"local_revision"`
|
|
LocalDigest string `json:"local_digest"`
|
|
AppliedAt sql.NullString `json:"applied_at"`
|
|
OperationID string `json:"operation_id"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
}
|
|
|
|
type SchemaMigration struct {
|
|
Version int64 `json:"version"`
|
|
AppliedAt string `json:"applied_at"`
|
|
}
|
|
|
|
type Trunk struct {
|
|
TrunkID string `json:"trunk_id"`
|
|
ProviderID string `json:"provider_id"`
|
|
LatestRevision int64 `json:"latest_revision"`
|
|
ActiveRevision int64 `json:"active_revision"`
|
|
ActiveStatus string `json:"active_status"`
|
|
UpdatedAt string `json:"updated_at"`
|
|
UpdatedBy string `json:"updated_by"`
|
|
}
|
|
|
|
type TrunkVerification struct {
|
|
TrunkID string `json:"trunk_id"`
|
|
Revision int64 `json:"revision"`
|
|
CheckName string `json:"check_name"`
|
|
Result string `json:"result"`
|
|
EvidenceRef string `json:"evidence_ref"`
|
|
CheckedBy string `json:"checked_by"`
|
|
CheckedAt string `json:"checked_at"`
|
|
}
|
|
|
|
type TrunkVersion struct {
|
|
TrunkID string `json:"trunk_id"`
|
|
Revision int64 `json:"revision"`
|
|
State string `json:"state"`
|
|
ConfigJson string `json:"config_json"`
|
|
ConfigSha256 string `json:"config_sha256"`
|
|
CreatedAt string `json:"created_at"`
|
|
CreatedBy string `json:"created_by"`
|
|
}
|