// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.18.0 package queries import ( "database/sql" "time" "github.com/google/uuid" "github.com/tabbed/pqtype" ) type Allowlist struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UserEmail string } type ApiContractRevision struct { ID uuid.UUID CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Base64Contract sql.NullString ClusterID sql.NullInt64 ProjectID sql.NullInt64 Condition sql.NullString ConditionMetadata pqtype.NullRawMessage } type ApiToken struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UniqueID sql.NullString ProjectID sql.NullInt64 CreatedByUserID sql.NullInt64 Expiry sql.NullTime Revoked sql.NullBool PolicyUid sql.NullString PolicyName sql.NullString Name sql.NullString SecretKey []byte } type AuthCode struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Token sql.NullString AuthorizationCode sql.NullString Expiry sql.NullTime } type AwsAssumeRoleChain struct { ID uuid.UUID CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 SourceArn sql.NullString TargetArn sql.NullString ExternalID sql.NullString } type AwsIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UserID sql.NullInt64 ProjectID sql.NullInt64 AwsArn sql.NullString AwsRegion sql.NullString AwsAssumeRoleArn sql.NullString AwsClusterID []byte AwsAccessKeyID []byte AwsSecretAccessKey []byte AwsSessionToken []byte } type AzureIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UserID sql.NullInt64 ProjectID sql.NullInt64 AzureClientID sql.NullString AzureSubscriptionID sql.NullString AzureTenantID sql.NullString AcrTokenName sql.NullString AcrResourceGroupName sql.NullString AcrName sql.NullString ServicePrincipalSecret []byte AcrPassword1 []byte AcrPassword2 []byte AksPassword []byte } type BasicIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UserID sql.NullInt64 ProjectID sql.NullInt64 Username []byte Password []byte } type BuildConfig struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString Builder sql.NullString Buildpacks sql.NullString Config []byte } type Cluster struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime AuthMechanism sql.NullString ProjectID sql.NullInt64 AgentIntegrationEnabled sql.NullBool Name sql.NullString VanityName sql.NullString Server sql.NullString ClusterLocationOfOrigin sql.NullString TlsServerName sql.NullString InsecureSkipTlsVerify sql.NullBool ProxyUrl sql.NullString UserLocationOfOrigin sql.NullString UserImpersonate sql.NullString UserImpersonateGroups sql.NullString InfraID sql.NullInt64 NotificationsDisabled sql.NullBool PreviewEnvsEnabled sql.NullBool AwsClusterID sql.NullString Status sql.NullString ProvisionedBy sql.NullString CloudProvider sql.NullString CloudProviderCredentialIdentifier sql.NullString KubeIntegrationID sql.NullInt64 OIDCIntegrationID sql.NullInt64 GcpIntegrationID sql.NullInt64 AwsIntegrationID sql.NullInt64 DoIntegrationID sql.NullInt64 AzureIntegrationID sql.NullInt64 TokenCacheID sql.NullInt64 CertificateAuthorityData []byte MonitorHelmReleases sql.NullBool } type ClusterCandidate struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime AuthMechanism sql.NullString ProjectID sql.NullInt64 CreatedClusterID sql.NullInt64 Name sql.NullString Server sql.NullString ContextName sql.NullString AwsClusterIDGuess []byte Kubeconfig []byte } type ClusterResolver struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ClusterCandidateID sql.NullInt64 Name sql.NullString Resolved sql.NullBool Data []byte } type ClusterTokenCach struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Expiry sql.NullTime Token []byte ClusterID sql.NullInt64 } type CredentialsExchangeToken struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 Token []byte Expiry sql.NullTime DoCredentialID sql.NullInt64 AwsCredentialID sql.NullInt64 GcpCredentialID sql.NullInt64 AzureCredentialID sql.NullInt64 } type Database struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 InfraID sql.NullInt64 InstanceID sql.NullString InstanceEndpoint sql.NullString InstanceName sql.NullString Status sql.NullString } type DbMigration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Version sql.NullInt64 } type Deployment struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime EnvironmentID sql.NullInt64 Namespace sql.NullString Status sql.NullString Subdomain sql.NullString PullRequestID sql.NullInt64 GhDeploymentID sql.NullInt64 GhprCommentID sql.NullInt64 PrName sql.NullString RepoName sql.NullString RepoOwner sql.NullString CommitSha sql.NullString PrBranchFrom sql.NullString PrBranchInto sql.NullString LastErrors sql.NullString } type DnsRecord struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime SubdomainPrefix sql.NullString RootDomain sql.NullString Endpoint sql.NullString Hostname sql.NullString ClusterID sql.NullInt64 } type Environment struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 GitInstallationID sql.NullInt64 GitRepoOwner sql.NullString GitRepoName sql.NullString GitRepoBranches sql.NullString Name sql.NullString Mode sql.NullString NewCommentsDisabled sql.NullBool NamespaceLabels []byte NamespaceAnnotations []byte GitDeployBranches sql.NullString WebhookID sql.NullString GithubWebhookID sql.NullInt64 } type EventContainer struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ReleaseID sql.NullInt64 } type GcpIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UserID sql.NullInt64 ProjectID sql.NullInt64 GcpProjectID sql.NullString GcpsaEmail sql.NullString GCpuserEmail sql.NullString GcpRegion sql.NullString GcpKeyData []byte } type GitActionConfig struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ReleaseID sql.NullInt64 GitRepo sql.NullString GitBranch sql.NullString ImageRepoUri sql.NullString GithubInstallationID sql.NullInt64 GitRepoID sql.NullInt64 GitlabIntegrationID sql.NullInt64 DockerfilePath sql.NullString FolderPath sql.NullString IsInstallation sql.NullBool Version sql.NullString } type GitRepo struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 RepoEntity sql.NullString OAuthIntegrationID sql.NullInt64 } type GithubAppInstallation struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime AccountID sql.NullInt64 InstallationID sql.NullInt64 } type GithubAppOAuthIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ClientID []byte AccessToken []byte RefreshToken []byte Expiry sql.NullTime UserID sql.NullInt64 } type GitlabAppOAuthIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime OAuthIntegrationID sql.NullInt64 GitlabIntegrationID sql.NullInt64 } type GitlabIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 InstanceUrl sql.NullString AppClientID []byte AppClientSecret []byte } type HelmRepo struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString ProjectID sql.NullInt64 RepoUrl sql.NullString BasicAuthIntegrationID sql.NullInt64 GcpIntegrationID sql.NullInt64 AwsIntegrationID sql.NullInt64 } type HelmRepoTokenCach struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Expiry sql.NullTime Token []byte HelmRepoID sql.NullInt64 } type Infra struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Kind sql.NullString ApiVersion sql.NullString SourceLink sql.NullString SourceVersion sql.NullString Suffix sql.NullString ProjectID sql.NullInt64 CreatedByUserID sql.NullInt64 ParentClusterID sql.NullInt64 Status sql.NullString AwsIntegrationID sql.NullInt64 AzureIntegrationID sql.NullInt64 GcpIntegrationID sql.NullInt64 DoIntegrationID sql.NullInt64 DatabaseID sql.NullInt64 LastApplied []byte } type Invite struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Token sql.NullString Expiry sql.NullTime Email sql.NullString Kind sql.NullString ProjectID sql.NullInt64 UserID sql.NullInt64 } type JobNotificationConfig struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString Namespace sql.NullString ProjectID sql.NullInt64 ClusterID sql.NullInt64 LastNotifiedTime sql.NullTime } type KubeEvent struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 Name sql.NullString ResourceType sql.NullString OwnerType sql.NullString OwnerName sql.NullString Namespace sql.NullString } type KubeIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Mechanism sql.NullString UserID sql.NullInt64 ProjectID sql.NullInt64 ClientCertificateData []byte ClientKeyData []byte Token []byte Username []byte Password []byte Kubeconfig []byte } type KubeSubEvent struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime KubeEventID sql.NullInt64 Message sql.NullString Reason sql.NullString Timestamp sql.NullTime EventType sql.NullString } type MonitorTestResult struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 Category sql.NullString ObjectID sql.NullString LastStatusChange sql.NullTime LastTested sql.NullTime LastRunResult sql.NullString LastRunResultEnum sql.NullInt64 LastRecommenderRunID sql.NullString Archived sql.NullBool Title sql.NullString Message sql.NullString Severity sql.NullString SeverityEnum sql.NullInt64 } type NotificationConfig struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Enabled sql.NullBool Success sql.NullBool Failure sql.NullBool LastNotifiedTime sql.NullTime NotifLimit sql.NullString } type OAuthIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ClientID []byte AccessToken []byte RefreshToken []byte Expiry sql.NullTime Client sql.NullString UserID sql.NullInt64 ProjectID sql.NullInt64 TargetEmail sql.NullString TargetName sql.NullString } type OIDCIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Client sql.NullString UserID sql.NullInt64 ProjectID sql.NullInt64 IssuerUrl []byte ClientID []byte ClientSecret []byte CertificateAuthorityData []byte IDToken []byte RefreshToken []byte } type Onboarding struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 CurrentStep sql.NullString ConnectedSource sql.NullString SkipRegistryConnection sql.NullBool SkipResourceProvision sql.NullBool RegistryConnectionID sql.NullInt64 RegistryConnectionCredentialID sql.NullInt64 RegistryConnectionProvider sql.NullString RegistryInfraID sql.NullInt64 RegistryInfraCredentialID sql.NullInt64 RegistryInfraProvider sql.NullString ClusterInfraID sql.NullInt64 ClusterInfraCredentialID sql.NullInt64 ClusterInfraProvider sql.NullString } type Operation struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Uid sql.NullString InfraID sql.NullInt64 Type sql.NullString Status sql.NullString Errored sql.NullBool Error sql.NullString TemplateVersion sql.NullString LastApplied []byte } type Policy struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime UniqueID sql.NullString ProjectID sql.NullInt64 CreatedByUserID sql.NullInt64 Name sql.NullString PolicyBytes []byte } type PorterApp struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 Name sql.NullString ImageRepoUri sql.NullString GitRepoID sql.NullInt64 RepoName sql.NullString GitBranch sql.NullString BuildContext sql.NullString Builder sql.NullString Buildpacks sql.NullString Dockerfile sql.NullString PullRequestUrl sql.NullString } type PorterAppRevision struct { ID uuid.UUID CreatedAt time.Time UpdatedAt time.Time DeletedAt sql.NullTime Base64Contract string ProjectID int64 } type Project struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString ProjectUsageID sql.NullInt64 ProjectUsageCacheID sql.NullInt64 PreviewEnvsEnabled sql.NullBool RdsDatabasesEnabled sql.NullBool ManagedInfraEnabled sql.NullBool StacksEnabled sql.NullBool ApiTokensEnabled sql.NullBool CapiProvisionerEnabled sql.NullBool SimplifiedViewEnabled sql.NullBool } type ProjectBilling struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 BillingTeamID sql.NullString } type ProjectUsage struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ResourceCpu sql.NullInt64 ResourceMemory sql.NullInt64 Clusters sql.NullInt64 Users sql.NullInt64 } type ProjectUsageCach struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ResourceCpu sql.NullInt64 ResourceMemory sql.NullInt64 Clusters sql.NullInt64 Users sql.NullInt64 Exceeded sql.NullBool ExceededSince sql.NullTime } type PwResetToken struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Email sql.NullString IsValid sql.NullBool Expiry sql.NullTime Token sql.NullString } type RegTokenCach struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Expiry sql.NullTime Token []byte RegistryID sql.NullInt64 } type Registry struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString Url sql.NullString ProjectID sql.NullInt64 InfraID sql.NullInt64 GcpIntegrationID sql.NullInt64 AwsIntegrationID sql.NullInt64 AzureIntegrationID sql.NullInt64 DoIntegrationID sql.NullInt64 BasicIntegrationID sql.NullInt64 } type Release struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime WebhookToken sql.NullString ClusterID sql.NullInt64 ProjectID sql.NullInt64 Name sql.NullString Namespace sql.NullString StackResourceID sql.NullInt64 ImageRepoUri sql.NullString EventContainer sql.NullInt64 NotificationConfig sql.NullInt64 BuildConfig sql.NullInt64 CanonicalName sql.NullString } type ReleaseTag struct { TagID int64 ReleaseID int64 } type Role struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Kind sql.NullString UserID sql.NullInt64 ProjectID sql.NullInt64 } type Session struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Key sql.NullString Data []byte ExpiresAt sql.NullTime } type SlackIntegration struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ClientID []byte AccessToken []byte RefreshToken []byte Expiry sql.NullTime Client sql.NullString UserID sql.NullInt64 ProjectID sql.NullInt64 TeamID sql.NullString TeamName sql.NullString TeamIconUrl sql.NullString Channel sql.NullString ChannelID sql.NullString ConfigurationUrl sql.NullString Webhook []byte } type Stack struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 ClusterID sql.NullInt64 Namespace sql.NullString Name sql.NullString Uid sql.NullString } type StackEnvGroup struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime StackRevisionID sql.NullInt64 Name sql.NullString Namespace sql.NullString ProjectID sql.NullInt64 ClusterID sql.NullInt64 Uid sql.NullString EnvGroupVersion sql.NullInt64 } type StackResource struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Name sql.NullString Uid sql.NullString StackRevisionID sql.NullInt64 StackSourceConfigUid sql.NullString HelmRevisionID sql.NullInt64 Values []byte TemplateRepoUrl sql.NullString TemplateName sql.NullString TemplateVersion sql.NullString } type StackRevision struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime RevisionNumber sql.NullInt64 StackID sql.NullInt64 Status sql.NullString Reason sql.NullString Message sql.NullString } type StackSourceConfig struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime StackRevisionID sql.NullInt64 Name sql.NullString DisplayName sql.NullString Uid sql.NullString ImageRepoUri sql.NullString ImageTag sql.NullString } type SubEvent struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime EventContainerID sql.NullInt64 EventID sql.NullString Name sql.NullString Index sql.NullInt64 Status sql.NullInt64 Info sql.NullString } type Tag struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 Name sql.NullString Color sql.NullString } type TokenCach struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Expiry sql.NullTime Token []byte } type User struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime Email sql.NullString Password sql.NullString EmailVerified sql.NullBool FirstName sql.NullString LastName sql.NullString CompanyName sql.NullString GithubAppIntegrationID sql.NullInt64 GithubUserID sql.NullInt64 GoogleUserID sql.NullString } type UserBilling struct { ID int64 CreatedAt sql.NullTime UpdatedAt sql.NullTime DeletedAt sql.NullTime ProjectID sql.NullInt64 UserID sql.NullInt64 TeammateID sql.NullString Token []byte }