sqlc

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessGrant

type AccessGrant struct {
	ID               int64              `json:"id"`
	PublicID         string             `json:"public_id"`
	WorkspaceID      int64              `json:"workspace_id"`
	SubjectType      string             `json:"subject_type"`
	SubjectID        int64              `json:"subject_id"`
	ResourceType     string             `json:"resource_type"`
	ResourcePublicID string             `json:"resource_public_id"`
	Relation         string             `json:"relation"`
	Version          int64              `json:"version"`
	CreatedByUserID  int64              `json:"created_by_user_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
}

type AgentEnrollmentToken

type AgentEnrollmentToken struct {
	InstallationID int64              `json:"installation_id"`
	TokenHash      []byte             `json:"token_hash"`
	ExpiresAt      pgtype.Timestamptz `json:"expires_at"`
	ConsumedAt     pgtype.Timestamptz `json:"consumed_at"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
}

type AgentInstallation

type AgentInstallation struct {
	ID                     int64              `json:"id"`
	PublicID               string             `json:"public_id"`
	Name                   string             `json:"name"`
	Status                 string             `json:"status"`
	EnrollmentAttemptID    pgtype.Text        `json:"enrollment_attempt_id"`
	CsrFingerprint         []byte             `json:"csr_fingerprint"`
	CertificatePem         []byte             `json:"certificate_pem"`
	CaCertificatePem       []byte             `json:"ca_certificate_pem"`
	CertificateSerial      pgtype.Text        `json:"certificate_serial"`
	CertificateFingerprint []byte             `json:"certificate_fingerprint"`
	CertificateNotAfter    pgtype.Timestamptz `json:"certificate_not_after"`
	LastSeenAt             pgtype.Timestamptz `json:"last_seen_at"`
	CreatedBy              int64              `json:"created_by"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
}

type App

type App struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	NameKey    string             `json:"name_key"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type AppEnvironment

type AppEnvironment struct {
	ID                   int64              `json:"id"`
	PublicID             string             `json:"public_id"`
	WorkspaceID          int64              `json:"workspace_id"`
	ProjectID            int64              `json:"project_id"`
	AppID                int64              `json:"app_id"`
	EnvironmentID        int64              `json:"environment_id"`
	SourceBranch         string             `json:"source_branch"`
	RuntimeName          string             `json:"runtime_name"`
	ConfigurationJson    []byte             `json:"configuration_json"`
	ConfigurationVersion int64              `json:"configuration_version"`
	Version              int64              `json:"version"`
	DesiredDeploymentID  pgtype.Int8        `json:"desired_deployment_id"`
	CurrentDeploymentID  pgtype.Int8        `json:"current_deployment_id"`
	CurrentReleaseID     pgtype.Int8        `json:"current_release_id"`
	LastState            string             `json:"last_state"`
	LastMessage          string             `json:"last_message"`
	DeletionRequestedAt  pgtype.Timestamptz `json:"deletion_requested_at"`
	ArchivedAt           pgtype.Timestamptz `json:"archived_at"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	UpdatedAt            pgtype.Timestamptz `json:"updated_at"`
	WorkloadKind         string             `json:"workload_kind"`
}

type AppEnvironmentConfigurationRevision

type AppEnvironmentConfigurationRevision struct {
	AppEnvironmentID  int64              `json:"app_environment_id"`
	Version           int64              `json:"version"`
	ConfigurationJson []byte             `json:"configuration_json"`
	CreatedByUserID   pgtype.Int8        `json:"created_by_user_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
}

type AppEnvironmentDeliveryPolicy

type AppEnvironmentDeliveryPolicy struct {
	AppEnvironmentID int64              `json:"app_environment_id"`
	WorkspaceID      int64              `json:"workspace_id"`
	PushEnabled      bool               `json:"push_enabled"`
	ReleaseEnabled   bool               `json:"release_enabled"`
	Version          int64              `json:"version"`
	UpdatedByUserID  int64              `json:"updated_by_user_id"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	UpdatedAt        pgtype.Timestamptz `json:"updated_at"`
}

type AppEnvironmentParameterBinding

type AppEnvironmentParameterBinding struct {
	AppEnvironmentID int64              `json:"app_environment_id"`
	EnvironmentName  string             `json:"environment_name"`
	ParameterID      int64              `json:"parameter_id"`
	ParameterVersion int64              `json:"parameter_version"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
}

type AppGithubSource

type AppGithubSource struct {
	AppID                int64              `json:"app_id"`
	GithubInstallationID int64              `json:"github_installation_id"`
	RepositoryID         int64              `json:"repository_id"`
	RepositoryName       string             `json:"repository_name"`
	RepositoryFullName   string             `json:"repository_full_name"`
	RepositoryPrivate    bool               `json:"repository_private"`
	DefaultBranch        string             `json:"default_branch"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	UpdatedAt            pgtype.Timestamptz `json:"updated_at"`
}

type AppVolume

type AppVolume struct {
	ID                  int64              `json:"id"`
	PublicID            string             `json:"public_id"`
	WorkspaceID         int64              `json:"workspace_id"`
	AppEnvironmentID    int64              `json:"app_environment_id"`
	StorageProfileID    string             `json:"storage_profile_id"`
	RequestedSizeGib    int64              `json:"requested_size_gib"`
	ObservedSizeGib     int64              `json:"observed_size_gib"`
	MountPath           string             `json:"mount_path"`
	RetentionPolicy     string             `json:"retention_policy"`
	DesiredState        string             `json:"desired_state"`
	ObservedState       string             `json:"observed_state"`
	Message             string             `json:"message"`
	Version             int64              `json:"version"`
	DeletionRequestedAt pgtype.Timestamptz `json:"deletion_requested_at"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	UpdatedAt           pgtype.Timestamptz `json:"updated_at"`
}

type ArchiveAppParams

type ArchiveAppParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
	Version     int64  `json:"version"`
}

type ArchiveAppRow

type ArchiveAppRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type ArchiveEnvironmentParams

type ArchiveEnvironmentParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
	Version     int64  `json:"version"`
}

type ArchiveEnvironmentRow

type ArchiveEnvironmentRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type ArchiveProjectParams

type ArchiveProjectParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	Version     int64  `json:"version"`
}

type ArchiveProjectRow

type ArchiveProjectRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type AuditEvent

type AuditEvent struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	OccurredAt     pgtype.Timestamptz `json:"occurred_at"`
	ActorUserID    pgtype.Int8        `json:"actor_user_id"`
	SessionID      pgtype.Int8        `json:"session_id"`
	WorkspaceID    pgtype.Int8        `json:"workspace_id"`
	Action         string             `json:"action"`
	TargetType     string             `json:"target_type"`
	TargetPublicID string             `json:"target_public_id"`
	Outcome        string             `json:"outcome"`
	Reason         string             `json:"reason"`
	RequestID      string             `json:"request_id"`
	TraceID        string             `json:"trace_id"`
	SourceHash     []byte             `json:"source_hash"`
	UserAgentHash  []byte             `json:"user_agent_hash"`
	MetadataJson   []byte             `json:"metadata_json"`
}

type AuthenticationChallenge

type AuthenticationChallenge struct {
	ID            int64              `json:"id"`
	ChallengeHash []byte             `json:"challenge_hash"`
	UserID        int64              `json:"user_id"`
	Kind          string             `json:"kind"`
	PayloadJson   []byte             `json:"payload_json"`
	Attempts      int32              `json:"attempts"`
	ExpiresAt     pgtype.Timestamptz `json:"expires_at"`
	ConsumedAt    pgtype.Timestamptz `json:"consumed_at"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
}

type AuthenticationRateLimit

type AuthenticationRateLimit struct {
	KeyHash      []byte             `json:"key_hash"`
	Failures     int32              `json:"failures"`
	BlockedUntil pgtype.Timestamptz `json:"blocked_until"`
	UpdatedAt    pgtype.Timestamptz `json:"updated_at"`
}

type Build

type Build struct {
	ID                           int64              `json:"id"`
	PublicID                     string             `json:"public_id"`
	WorkspaceID                  int64              `json:"workspace_id"`
	ProjectID                    int64              `json:"project_id"`
	AppID                        int64              `json:"app_id"`
	RequestedByUserID            int64              `json:"requested_by_user_id"`
	GithubInstallationID         pgtype.Int8        `json:"github_installation_id"`
	GithubInstallationExternalID int64              `json:"github_installation_external_id"`
	RepositoryID                 int64              `json:"repository_id"`
	RepositoryFullName           string             `json:"repository_full_name"`
	CommitSha                    string             `json:"commit_sha"`
	Platform                     string             `json:"platform"`
	Status                       string             `json:"status"`
	Attempts                     int32              `json:"attempts"`
	WorkerID                     pgtype.Text        `json:"worker_id"`
	FencingToken                 int64              `json:"fencing_token"`
	LeaseUntil                   pgtype.Timestamptz `json:"lease_until"`
	IdempotencyHash              []byte             `json:"idempotency_hash"`
	PayloadHash                  []byte             `json:"payload_hash"`
	ErrorCode                    pgtype.Text        `json:"error_code"`
	ErrorMessage                 pgtype.Text        `json:"error_message"`
	StartedAt                    pgtype.Timestamptz `json:"started_at"`
	CompletedAt                  pgtype.Timestamptz `json:"completed_at"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                    pgtype.Timestamptz `json:"updated_at"`
	SourceBranch                 string             `json:"source_branch"`
	AppEnvironmentID             int64              `json:"app_environment_id"`
	TriggerType                  string             `json:"trigger_type"`
	GithubDeliveryID             pgtype.Int8        `json:"github_delivery_id"`
	CommitTitle                  string             `json:"commit_title"`
	CommitAuthorName             string             `json:"commit_author_name"`
	CommitAuthorLogin            string             `json:"commit_author_login"`
	CommittedAt                  pgtype.Timestamptz `json:"committed_at"`
}

type BuildLog

type BuildLog struct {
	BuildID   int64              `json:"build_id"`
	Sequence  int64              `json:"sequence"`
	Message   string             `json:"message"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type CreateAppParams

type CreateAppParams struct {
	PublicID  string `json:"public_id"`
	ProjectID int64  `json:"project_id"`
	Name      string `json:"name"`
	NameKey   string `json:"name_key"`
}

type CreateAppRow

type CreateAppRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type CreateEnvironmentParams

type CreateEnvironmentParams struct {
	PublicID  string `json:"public_id"`
	ProjectID int64  `json:"project_id"`
	Name      string `json:"name"`
	NameKey   string `json:"name_key"`
}

type CreateEnvironmentRow

type CreateEnvironmentRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type CreateProjectParams

type CreateProjectParams struct {
	PublicID    string `json:"public_id"`
	WorkspaceID int64  `json:"workspace_id"`
	Name        string `json:"name"`
	NameKey     string `json:"name_key"`
}

type CreateProjectRow

type CreateProjectRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeliveryTarget

type DeliveryTarget struct {
	ID                int64              `json:"id"`
	PublicID          string             `json:"public_id"`
	GithubDeliveryID  int64              `json:"github_delivery_id"`
	WorkspaceID       int64              `json:"workspace_id"`
	ProjectID         int64              `json:"project_id"`
	AppID             int64              `json:"app_id"`
	AppEnvironmentID  int64              `json:"app_environment_id"`
	RequestedByUserID int64              `json:"requested_by_user_id"`
	PolicyVersion     int64              `json:"policy_version"`
	TriggerType       string             `json:"trigger_type"`
	SourceBranch      string             `json:"source_branch"`
	CommitSha         string             `json:"commit_sha"`
	BuildID           pgtype.Int8        `json:"build_id"`
	DeploymentID      pgtype.Int8        `json:"deployment_id"`
	Status            string             `json:"status"`
	ErrorCode         string             `json:"error_code"`
	ErrorMessage      string             `json:"error_message"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	CompletedAt       pgtype.Timestamptz `json:"completed_at"`
}

type Deployment

type Deployment struct {
	ID                   int64              `json:"id"`
	PublicID             string             `json:"public_id"`
	WorkspaceID          int64              `json:"workspace_id"`
	AppEnvironmentID     int64              `json:"app_environment_id"`
	AppID                int64              `json:"app_id"`
	ReleaseID            int64              `json:"release_id"`
	RequestedByUserID    int64              `json:"requested_by_user_id"`
	ConfigurationVersion int64              `json:"configuration_version"`
	ConfigurationJson    []byte             `json:"configuration_json"`
	Status               string             `json:"status"`
	Message              string             `json:"message"`
	ObservedRelease      string             `json:"observed_release"`
	StartedAt            pgtype.Timestamptz `json:"started_at"`
	CompletedAt          pgtype.Timestamptz `json:"completed_at"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	UpdatedAt            pgtype.Timestamptz `json:"updated_at"`
	WorkloadKind         string             `json:"workload_kind"`
	AppVolumeID          pgtype.Int8        `json:"app_volume_id"`
}

type Environment

type Environment struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	NameKey    string             `json:"name_key"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type FindActiveAppForUpdateParams

type FindActiveAppForUpdateParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
}

type FindActiveAppForUpdateRow

type FindActiveAppForUpdateRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type FindActiveEnvironmentForUpdateParams

type FindActiveEnvironmentForUpdateParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
}

type FindActiveEnvironmentForUpdateRow

type FindActiveEnvironmentForUpdateRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type FindActiveProjectForUpdateParams

type FindActiveProjectForUpdateParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
}

type FindActiveProjectForUpdateRow

type FindActiveProjectForUpdateRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type FindAppParams

type FindAppParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
}

type FindAppRow

type FindAppRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type FindEnvironmentParams

type FindEnvironmentParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
}

type FindEnvironmentRow

type FindEnvironmentRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type FindProjectParams

type FindProjectParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
}

type FindProjectRow

type FindProjectRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type FindWorkspaceForUserParams

type FindWorkspaceForUserParams struct {
	UserID   int64  `json:"user_id"`
	PublicID string `json:"public_id"`
}

type FindWorkspaceForUserRow

type FindWorkspaceForUserRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type FindWorkspaceOperationByIdempotencyParams

type FindWorkspaceOperationByIdempotencyParams struct {
	RequestedByUserID int64  `json:"requested_by_user_id"`
	IdempotencyHash   []byte `json:"idempotency_hash"`
}

type FindWorkspaceOperationByIdempotencyRow

type FindWorkspaceOperationByIdempotencyRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	WorkspaceID    int64              `json:"workspace_id"`
	ActorID        int64              `json:"actor_id"`
	Kind           string             `json:"kind"`
	Status         string             `json:"status"`
	DesiredVersion int64              `json:"desired_version"`
	Attempts       int32              `json:"attempts"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	ErrorCode      string             `json:"error_code"`
	ErrorMessage   string             `json:"error_message"`
	PayloadHash    []byte             `json:"payload_hash"`
}

type GetWorkspaceByIDRow

type GetWorkspaceByIDRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type GetWorkspaceForUserRow

type GetWorkspaceForUserRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type GithubConnectionState

type GithubConnectionState struct {
	ID                   int64              `json:"id"`
	StateHash            []byte             `json:"state_hash"`
	BrowserHash          []byte             `json:"browser_hash"`
	UserID               int64              `json:"user_id"`
	WorkspaceID          int64              `json:"workspace_id"`
	Step                 string             `json:"step"`
	GithubInstallationID pgtype.Int8        `json:"github_installation_id"`
	ExpiresAt            pgtype.Timestamptz `json:"expires_at"`
	ConsumedAt           pgtype.Timestamptz `json:"consumed_at"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
}

type GithubDelivery

type GithubDelivery struct {
	ID                     int64              `json:"id"`
	DeliveryID             string             `json:"delivery_id"`
	EventType              string             `json:"event_type"`
	Action                 string             `json:"action"`
	InstallationExternalID int64              `json:"installation_external_id"`
	RepositoryID           int64              `json:"repository_id"`
	RepositoryFullName     string             `json:"repository_full_name"`
	SourceBranch           string             `json:"source_branch"`
	SourceRef              string             `json:"source_ref"`
	CommitSha              string             `json:"commit_sha"`
	TagName                string             `json:"tag_name"`
	RepositoryIds          []int64            `json:"repository_ids"`
	PayloadHash            []byte             `json:"payload_hash"`
	Status                 string             `json:"status"`
	Attempts               int32              `json:"attempts"`
	WorkerID               pgtype.Text        `json:"worker_id"`
	FencingToken           int64              `json:"fencing_token"`
	LeaseUntil             pgtype.Timestamptz `json:"lease_until"`
	ErrorCode              string             `json:"error_code"`
	ErrorMessage           string             `json:"error_message"`
	ReceivedAt             pgtype.Timestamptz `json:"received_at"`
	ProcessedAt            pgtype.Timestamptz `json:"processed_at"`
	UpdatedAt              pgtype.Timestamptz `json:"updated_at"`
}

type GithubInstallation

type GithubInstallation struct {
	ID                   int64              `json:"id"`
	PublicID             string             `json:"public_id"`
	WorkspaceID          int64              `json:"workspace_id"`
	ConnectedByUserID    int64              `json:"connected_by_user_id"`
	GithubInstallationID int64              `json:"github_installation_id"`
	AccountID            int64              `json:"account_id"`
	AccountLogin         string             `json:"account_login"`
	AccountType          string             `json:"account_type"`
	RepositorySelection  string             `json:"repository_selection"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	UpdatedAt            pgtype.Timestamptz `json:"updated_at"`
	Status               string             `json:"status"`
}

type InsertWorkspaceOperationParams

type InsertWorkspaceOperationParams struct {
	PublicID          string `json:"public_id"`
	WorkspaceID       int64  `json:"workspace_id"`
	RequestedByUserID int64  `json:"requested_by_user_id"`
	IdempotencyHash   []byte `json:"idempotency_hash"`
	PayloadHash       []byte `json:"payload_hash"`
}

type InsertWorkspaceOperationRow

type InsertWorkspaceOperationRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	WorkspaceID    int64              `json:"workspace_id"`
	ActorID        int64              `json:"actor_id"`
	Kind           string             `json:"kind"`
	Status         string             `json:"status"`
	DesiredVersion int64              `json:"desired_version"`
	Attempts       int32              `json:"attempts"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	ErrorCode      string             `json:"error_code"`
	ErrorMessage   string             `json:"error_message"`
}

type InsertWorkspaceParams

type InsertWorkspaceParams struct {
	PublicID      string `json:"public_id"`
	Name          string `json:"name"`
	NamespaceName string `json:"namespace_name"`
}

type InsertWorkspaceRow

type InsertWorkspaceRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type InstallationRoleAssignment

type InstallationRoleAssignment struct {
	UserID    int64              `json:"user_id"`
	Role      string             `json:"role"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type ListAppsParams

type ListAppsParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	ID          int64  `json:"id"`
	Limit       int32  `json:"limit"`
	Column5     bool   `json:"column_5"`
}

type ListAppsRow

type ListAppsRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type ListEnvironmentsParams

type ListEnvironmentsParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	ID          int64  `json:"id"`
	Limit       int32  `json:"limit"`
	Column5     bool   `json:"column_5"`
}

type ListEnvironmentsRow

type ListEnvironmentsRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type ListProjectsParams

type ListProjectsParams struct {
	WorkspaceID int64 `json:"workspace_id"`
	ID          int64 `json:"id"`
	Limit       int32 `json:"limit"`
	Column4     bool  `json:"column_4"`
}

type ListProjectsRow

type ListProjectsRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type ListWorkspacesForUserParams

type ListWorkspacesForUserParams struct {
	UserID int64 `json:"user_id"`
	ID     int64 `json:"id"`
	Limit  int32 `json:"limit"`
}

type ListWorkspacesForUserRow

type ListWorkspacesForUserRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type Operation

type Operation struct {
	ID                int64              `json:"id"`
	PublicID          string             `json:"public_id"`
	WorkspaceID       int64              `json:"workspace_id"`
	AppEnvironmentID  pgtype.Int8        `json:"app_environment_id"`
	DeploymentID      pgtype.Int8        `json:"deployment_id"`
	RequestedByUserID int64              `json:"requested_by_user_id"`
	Kind              string             `json:"kind"`
	Status            string             `json:"status"`
	IdempotencyHash   []byte             `json:"idempotency_hash"`
	PayloadHash       []byte             `json:"payload_hash"`
	DesiredVersion    int64              `json:"desired_version"`
	Attempts          int32              `json:"attempts"`
	NextAttemptAt     pgtype.Timestamptz `json:"next_attempt_at"`
	LeaseUntil        pgtype.Timestamptz `json:"lease_until"`
	WorkerID          pgtype.Text        `json:"worker_id"`
	FencingToken      int64              `json:"fencing_token"`
	ErrorCode         string             `json:"error_code"`
	ErrorMessage      string             `json:"error_message"`
	StartedAt         pgtype.Timestamptz `json:"started_at"`
	CompletedAt       pgtype.Timestamptz `json:"completed_at"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
	AppVolumeID       pgtype.Int8        `json:"app_volume_id"`
}

type Parameter

type Parameter struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	WorkspaceID    int64              `json:"workspace_id"`
	Path           string             `json:"path"`
	Kind           string             `json:"kind"`
	Description    string             `json:"description"`
	CurrentVersion int64              `json:"current_version"`
	Version        int64              `json:"version"`
	ArchivedAt     pgtype.Timestamptz `json:"archived_at"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	ValueState     string             `json:"value_state"`
	PurgeAfter     pgtype.Timestamptz `json:"purge_after"`
	PurgedAt       pgtype.Timestamptz `json:"purged_at"`
}

type ParameterPathReservation

type ParameterPathReservation struct {
	WorkspaceID      int64              `json:"workspace_id"`
	Path             string             `json:"path"`
	ParameterID      int64              `json:"parameter_id"`
	ParameterVersion int64              `json:"parameter_version"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
}

type ParameterVersion

type ParameterVersion struct {
	ParameterID                  int64              `json:"parameter_id"`
	Version                      int64              `json:"version"`
	CreatedByUserID              int64              `json:"created_by_user_id"`
	PlaintextValue               pgtype.Text        `json:"plaintext_value"`
	SecretReference              pgtype.Text        `json:"secret_reference"`
	SecretBackendVersion         pgtype.Int8        `json:"secret_backend_version"`
	Fingerprint                  []byte             `json:"fingerprint"`
	CreatedAt                    pgtype.Timestamptz `json:"created_at"`
	ValueState                   string             `json:"value_state"`
	ExpectedSecretBackendVersion pgtype.Int8        `json:"expected_secret_backend_version"`
	IdempotencyHash              []byte             `json:"idempotency_hash"`
	PayloadHash                  []byte             `json:"payload_hash"`
	RequestedPath                pgtype.Text        `json:"requested_path"`
	RequestedDescription         pgtype.Text        `json:"requested_description"`
	CompletedAt                  pgtype.Timestamptz `json:"completed_at"`
}

type PasswordCredential

type PasswordCredential struct {
	UserID       int64              `json:"user_id"`
	PasswordHash string             `json:"password_hash"`
	Algorithm    string             `json:"algorithm"`
	ChangedAt    pgtype.Timestamptz `json:"changed_at"`
}

type PasswordResetGrant

type PasswordResetGrant struct {
	ID              int64              `json:"id"`
	PublicID        string             `json:"public_id"`
	UserID          int64              `json:"user_id"`
	CodeHash        []byte             `json:"code_hash"`
	Attempts        int32              `json:"attempts"`
	ExpiresAt       pgtype.Timestamptz `json:"expires_at"`
	VerifiedAt      pgtype.Timestamptz `json:"verified_at"`
	ConsumedAt      pgtype.Timestamptz `json:"consumed_at"`
	CreatedByUserID int64              `json:"created_by_user_id"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
}

type Project

type Project struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	NameKey     string             `json:"name_key"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type PublicationClaim

type PublicationClaim struct {
	ID                          int64              `json:"id"`
	AppEnvironmentID            int64              `json:"app_environment_id"`
	EndpointName                string             `json:"endpoint_name"`
	EndpointType                string             `json:"endpoint_type"`
	Hostname                    string             `json:"hostname"`
	ExternalPort                pgtype.Int4        `json:"external_port"`
	DesiredConfigurationVersion pgtype.Int8        `json:"desired_configuration_version"`
	CurrentConfigurationVersion pgtype.Int8        `json:"current_configuration_version"`
	CreatedAt                   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt                   pgtype.Timestamptz `json:"updated_at"`
}

type Querier

type Querier interface {
	ArchiveApp(ctx context.Context, arg ArchiveAppParams) (ArchiveAppRow, error)
	ArchiveEnvironment(ctx context.Context, arg ArchiveEnvironmentParams) (ArchiveEnvironmentRow, error)
	ArchiveProject(ctx context.Context, arg ArchiveProjectParams) (ArchiveProjectRow, error)
	CreateApp(ctx context.Context, arg CreateAppParams) (CreateAppRow, error)
	CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (CreateEnvironmentRow, error)
	CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)
	FindActiveAppForUpdate(ctx context.Context, arg FindActiveAppForUpdateParams) (FindActiveAppForUpdateRow, error)
	FindActiveEnvironmentForUpdate(ctx context.Context, arg FindActiveEnvironmentForUpdateParams) (FindActiveEnvironmentForUpdateRow, error)
	FindActiveProjectForUpdate(ctx context.Context, arg FindActiveProjectForUpdateParams) (FindActiveProjectForUpdateRow, error)
	FindApp(ctx context.Context, arg FindAppParams) (FindAppRow, error)
	FindEnvironment(ctx context.Context, arg FindEnvironmentParams) (FindEnvironmentRow, error)
	FindProject(ctx context.Context, arg FindProjectParams) (FindProjectRow, error)
	FindWorkspaceForUser(ctx context.Context, arg FindWorkspaceForUserParams) (FindWorkspaceForUserRow, error)
	FindWorkspaceOperationByIdempotency(ctx context.Context, arg FindWorkspaceOperationByIdempotencyParams) (FindWorkspaceOperationByIdempotencyRow, error)
	GetWorkspaceByID(ctx context.Context, id int64) (GetWorkspaceByIDRow, error)
	GetWorkspaceForUser(ctx context.Context, userID int64) (GetWorkspaceForUserRow, error)
	InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (InsertWorkspaceRow, error)
	InsertWorkspaceOperation(ctx context.Context, arg InsertWorkspaceOperationParams) (InsertWorkspaceOperationRow, error)
	ListApps(ctx context.Context, arg ListAppsParams) ([]ListAppsRow, error)
	ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)
	ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)
	ListWorkspacesForUser(ctx context.Context, arg ListWorkspacesForUserParams) ([]ListWorkspacesForUserRow, error)
	UpdateApp(ctx context.Context, arg UpdateAppParams) (UpdateAppRow, error)
	UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (UpdateEnvironmentRow, error)
	UpdateProject(ctx context.Context, arg UpdateProjectParams) (UpdateProjectRow, error)
	UpdateWorkspaceName(ctx context.Context, arg UpdateWorkspaceNameParams) (UpdateWorkspaceNameRow, error)
	UpsertWorkspace(ctx context.Context, arg UpsertWorkspaceParams) (int64, error)
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) ArchiveApp

func (q *Queries) ArchiveApp(ctx context.Context, arg ArchiveAppParams) (ArchiveAppRow, error)

func (*Queries) ArchiveEnvironment

func (q *Queries) ArchiveEnvironment(ctx context.Context, arg ArchiveEnvironmentParams) (ArchiveEnvironmentRow, error)

func (*Queries) ArchiveProject

func (q *Queries) ArchiveProject(ctx context.Context, arg ArchiveProjectParams) (ArchiveProjectRow, error)

func (*Queries) CreateApp

func (q *Queries) CreateApp(ctx context.Context, arg CreateAppParams) (CreateAppRow, error)

func (*Queries) CreateEnvironment

func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (CreateEnvironmentRow, error)

func (*Queries) CreateProject

func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)

func (*Queries) FindActiveAppForUpdate

func (q *Queries) FindActiveAppForUpdate(ctx context.Context, arg FindActiveAppForUpdateParams) (FindActiveAppForUpdateRow, error)

func (*Queries) FindApp

func (q *Queries) FindApp(ctx context.Context, arg FindAppParams) (FindAppRow, error)

func (*Queries) FindEnvironment

func (q *Queries) FindEnvironment(ctx context.Context, arg FindEnvironmentParams) (FindEnvironmentRow, error)

func (*Queries) FindProject

func (q *Queries) FindProject(ctx context.Context, arg FindProjectParams) (FindProjectRow, error)

func (*Queries) FindWorkspaceForUser

func (q *Queries) FindWorkspaceForUser(ctx context.Context, arg FindWorkspaceForUserParams) (FindWorkspaceForUserRow, error)

func (*Queries) GetWorkspaceByID

func (q *Queries) GetWorkspaceByID(ctx context.Context, id int64) (GetWorkspaceByIDRow, error)

func (*Queries) GetWorkspaceForUser

func (q *Queries) GetWorkspaceForUser(ctx context.Context, userID int64) (GetWorkspaceForUserRow, error)

func (*Queries) InsertWorkspace

func (q *Queries) InsertWorkspace(ctx context.Context, arg InsertWorkspaceParams) (InsertWorkspaceRow, error)

func (*Queries) InsertWorkspaceOperation

func (*Queries) ListApps

func (q *Queries) ListApps(ctx context.Context, arg ListAppsParams) ([]ListAppsRow, error)

func (*Queries) ListEnvironments

func (q *Queries) ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)

func (*Queries) ListProjects

func (q *Queries) ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)

func (*Queries) ListWorkspacesForUser

func (q *Queries) ListWorkspacesForUser(ctx context.Context, arg ListWorkspacesForUserParams) ([]ListWorkspacesForUserRow, error)

func (*Queries) UpdateApp

func (q *Queries) UpdateApp(ctx context.Context, arg UpdateAppParams) (UpdateAppRow, error)

func (*Queries) UpdateEnvironment

func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (UpdateEnvironmentRow, error)

func (*Queries) UpdateProject

func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (UpdateProjectRow, error)

func (*Queries) UpdateWorkspaceName

func (q *Queries) UpdateWorkspaceName(ctx context.Context, arg UpdateWorkspaceNameParams) (UpdateWorkspaceNameRow, error)

func (*Queries) UpsertWorkspace

func (q *Queries) UpsertWorkspace(ctx context.Context, arg UpsertWorkspaceParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RecoveryCode

type RecoveryCode struct {
	ID        int64              `json:"id"`
	UserID    int64              `json:"user_id"`
	CodeHash  []byte             `json:"code_hash"`
	UsedAt    pgtype.Timestamptz `json:"used_at"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type Release

type Release struct {
	ID                 int64              `json:"id"`
	PublicID           string             `json:"public_id"`
	WorkspaceID        int64              `json:"workspace_id"`
	ProjectID          int64              `json:"project_id"`
	AppID              int64              `json:"app_id"`
	BuildID            int64              `json:"build_id"`
	CommitSha          string             `json:"commit_sha"`
	Image              string             `json:"image"`
	Platform           string             `json:"platform"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	AppEnvironmentID   int64              `json:"app_environment_id"`
	AvailabilityStatus string             `json:"availability_status"`
	ExpiredAt          pgtype.Timestamptz `json:"expired_at"`
}

type ReleaseGcCandidate

type ReleaseGcCandidate struct {
	ReleaseID int64              `json:"release_id"`
	Image     string             `json:"image"`
	Status    string             `json:"status"`
	Reason    string             `json:"reason"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}

type Session

type Session struct {
	ID             int64              `json:"id"`
	TokenHash      []byte             `json:"token_hash"`
	UserID         int64              `json:"user_id"`
	CsrfHash       []byte             `json:"csrf_hash"`
	ExpiresAt      pgtype.Timestamptz `json:"expires_at"`
	RevokedAt      pgtype.Timestamptz `json:"revoked_at"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	PublicID       string             `json:"public_id"`
	AuthVersion    int64              `json:"auth_version"`
	AssuranceLevel string             `json:"assurance_level"`
	LastSeenAt     pgtype.Timestamptz `json:"last_seen_at"`
	IdleExpiresAt  pgtype.Timestamptz `json:"idle_expires_at"`
}

type StorageProfile

type StorageProfile struct {
	ID                string             `json:"id"`
	DisplayName       string             `json:"display_name"`
	MinimumSizeGib    int64              `json:"minimum_size_gib"`
	MaximumSizeGib    int64              `json:"maximum_size_gib"`
	TotalCapacityGib  int64              `json:"total_capacity_gib"`
	WorkspaceQuotaGib int64              `json:"workspace_quota_gib"`
	Expandable        bool               `json:"expandable"`
	Snapshots         bool               `json:"snapshots"`
	AutomaticBackup   bool               `json:"automatic_backup"`
	Durability        string             `json:"durability"`
	RuntimeBinding    string             `json:"runtime_binding"`
	Enabled           bool               `json:"enabled"`
	Version           int64              `json:"version"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	UpdatedAt         pgtype.Timestamptz `json:"updated_at"`
}

type TotpCredential

type TotpCredential struct {
	UserID          int64              `json:"user_id"`
	SecretReference string             `json:"secret_reference"`
	SecretVersion   int64              `json:"secret_version"`
	EnabledAt       pgtype.Timestamptz `json:"enabled_at"`
	LastUsedStep    int64              `json:"last_used_step"`
}

type UpdateAppParams

type UpdateAppParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
	Version     int64  `json:"version"`
	Name        string `json:"name"`
	NameKey     string `json:"name_key"`
}

type UpdateAppRow

type UpdateAppRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type UpdateEnvironmentParams

type UpdateEnvironmentParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	PublicID_2  string `json:"public_id_2"`
	Version     int64  `json:"version"`
	Name        string `json:"name"`
	NameKey     string `json:"name_key"`
}

type UpdateEnvironmentRow

type UpdateEnvironmentRow struct {
	ID         int64              `json:"id"`
	PublicID   string             `json:"public_id"`
	ProjectID  int64              `json:"project_id"`
	Name       string             `json:"name"`
	Version    int64              `json:"version"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
	UpdatedAt  pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt pgtype.Timestamptz `json:"archived_at"`
}

type UpdateProjectParams

type UpdateProjectParams struct {
	WorkspaceID int64  `json:"workspace_id"`
	PublicID    string `json:"public_id"`
	Version     int64  `json:"version"`
	Name        string `json:"name"`
	NameKey     string `json:"name_key"`
}

type UpdateProjectRow

type UpdateProjectRow struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type UpdateWorkspaceNameParams

type UpdateWorkspaceNameParams struct {
	ID      int64  `json:"id"`
	Version int64  `json:"version"`
	Name    string `json:"name"`
}

type UpdateWorkspaceNameRow

type UpdateWorkspaceNameRow struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	Version        int64              `json:"version"`
	BootstrapState string             `json:"bootstrap_state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
}

type UpsertWorkspaceParams

type UpsertWorkspaceParams struct {
	PublicID      string `json:"public_id"`
	Name          string `json:"name"`
	NamespaceName string `json:"namespace_name"`
}

type User

type User struct {
	ID          int64              `json:"id"`
	Username    string             `json:"username"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	PublicID    string             `json:"public_id"`
	UsernameKey string             `json:"username_key"`
	DisplayName string             `json:"display_name"`
	Status      string             `json:"status"`
	Version     int64              `json:"version"`
	AuthVersion int64              `json:"auth_version"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
}

type WebauthnCredential

type WebauthnCredential struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	UserID         int64              `json:"user_id"`
	CredentialID   []byte             `json:"credential_id"`
	CredentialJson []byte             `json:"credential_json"`
	Name           string             `json:"name"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	LastUsedAt     pgtype.Timestamptz `json:"last_used_at"`
}

type Workspace

type Workspace struct {
	ID             int64              `json:"id"`
	PublicID       string             `json:"public_id"`
	Name           string             `json:"name"`
	NamespaceName  string             `json:"namespace_name"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	BootstrapState string             `json:"bootstrap_state"`
	UpdatedAt      pgtype.Timestamptz `json:"updated_at"`
	Version        int64              `json:"version"`
}

type WorkspaceGroup

type WorkspaceGroup struct {
	ID          int64              `json:"id"`
	PublicID    string             `json:"public_id"`
	WorkspaceID int64              `json:"workspace_id"`
	Name        string             `json:"name"`
	NameKey     string             `json:"name_key"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
}

type WorkspaceGroupMember

type WorkspaceGroupMember struct {
	WorkspaceID int64              `json:"workspace_id"`
	GroupID     int64              `json:"group_id"`
	UserID      int64              `json:"user_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type WorkspaceMembership

type WorkspaceMembership struct {
	WorkspaceID int64              `json:"workspace_id"`
	UserID      int64              `json:"user_id"`
	Role        string             `json:"role"`
	Status      string             `json:"status"`
	Version     int64              `json:"version"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	UpdatedAt   pgtype.Timestamptz `json:"updated_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL