Documentation ¶
Index ¶
- Constants
- type AccountDeleteToken
- type BillingBypassOrganization
- type Chat
- type Customer
- type DiggerBatch
- type DiggerJob
- type DiggerJobParentLink
- type DiggerJobSummary
- type DiggerJobToken
- type DiggerLock
- type DiggerRun
- type DiggerRunQueueItem
- type DiggerRunStage
- type EnvVar
- type GithubApp
- type GithubAppInstallation
- type GithubAppInstallationLink
- type InternalBlogAuthorPost
- type InternalBlogAuthorProfile
- type InternalBlogPost
- type InternalBlogPostTag
- type InternalBlogPostTagsRelationship
- type InternalChangelog
- type InternalFeedbackComment
- type InternalFeedbackThread
- type Organization
- type OrganizationCredit
- type OrganizationJoinInvitation
- type OrganizationMember
- type OrganizationsPrivateInfo
- type Price
- type Product
- type Project
- type ProjectComment
- type ProjectTfvar
- type Repo
- type Subscription
- type Team
- type TeamMember
- type UserAPIKey
- type UserM2mApplication
- type UserNotification
- type UserOnboarding
- type UserPrivateInfo
- type UserProfile
- type UserRole
Constants ¶
const TableNameAccountDeleteToken = "account_delete_tokens"
const TableNameBillingBypassOrganization = "billing_bypass_organizations"
const TableNameChat = "chats"
const TableNameCustomer = "customers"
const TableNameDiggerBatch = "digger_batches"
const TableNameDiggerJob = "digger_jobs"
const TableNameDiggerJobParentLink = "digger_job_parent_links"
const TableNameDiggerJobSummary = "digger_job_summaries"
const TableNameDiggerJobToken = "digger_job_tokens"
const TableNameDiggerLock = "digger_locks"
const TableNameDiggerRun = "digger_runs"
const TableNameDiggerRunQueueItem = "digger_run_queue_items"
const TableNameDiggerRunStage = "digger_run_stages"
const TableNameEnvVar = "env_vars"
const TableNameGithubApp = "github_apps"
const TableNameGithubAppInstallation = "github_app_installations"
const TableNameGithubAppInstallationLink = "github_app_installation_links"
const TableNameInternalBlogAuthorPost = "internal_blog_author_posts"
const TableNameInternalBlogAuthorProfile = "internal_blog_author_profiles"
const TableNameInternalBlogPost = "internal_blog_posts"
const TableNameInternalBlogPostTag = "internal_blog_post_tags"
const TableNameInternalBlogPostTagsRelationship = "internal_blog_post_tags_relationship"
const TableNameInternalChangelog = "internal_changelog"
const TableNameInternalFeedbackComment = "internal_feedback_comments"
const TableNameInternalFeedbackThread = "internal_feedback_threads"
const TableNameOrganization = "organizations"
const TableNameOrganizationCredit = "organization_credits"
const TableNameOrganizationJoinInvitation = "organization_join_invitations"
const TableNameOrganizationMember = "organization_members"
const TableNameOrganizationsPrivateInfo = "organizations_private_info"
const TableNamePrice = "prices"
const TableNameProduct = "products"
const TableNameProject = "projects"
const TableNameProjectComment = "project_comments"
const TableNameProjectTfvar = "project_tfvars"
const TableNameRepo = "repos"
const TableNameSubscription = "subscriptions"
const TableNameTeam = "teams"
const TableNameTeamMember = "team_members"
const TableNameUserAPIKey = "user_api_keys"
const TableNameUserM2mApplication = "user_m2m_applications"
const TableNameUserNotification = "user_notifications"
const TableNameUserOnboarding = "user_onboarding"
const TableNameUserPrivateInfo = "user_private_info"
const TableNameUserProfile = "user_profiles"
const TableNameUserRole = "user_roles"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountDeleteToken ¶
type AccountDeleteToken struct { Token string `gorm:"column:token;not null;default:uuid_generate_v4()" json:"token"` UserID string `gorm:"column:user_id;primaryKey" json:"user_id"` }
AccountDeleteToken mapped from table <account_delete_tokens>
func (*AccountDeleteToken) TableName ¶
func (*AccountDeleteToken) TableName() string
TableName AccountDeleteToken's table name
type BillingBypassOrganization ¶
type BillingBypassOrganization struct { ID string `gorm:"column:id;primaryKey" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` }
BillingBypassOrganization mapped from table <billing_bypass_organizations>
func (*BillingBypassOrganization) TableName ¶
func (*BillingBypassOrganization) TableName() string
TableName BillingBypassOrganization's table name
type Chat ¶
type Chat struct { ID string `gorm:"column:id;primaryKey" json:"id"` UserID string `gorm:"column:user_id" json:"user_id"` Payload string `gorm:"column:payload" json:"payload"` CreatedAt time.Time `gorm:"column:created_at;not null;default:timezone('utc" json:"created_at"` ProjectID string `gorm:"column:project_id;not null" json:"project_id"` }
Chat mapped from table <chats>
type Customer ¶
type Customer struct { StripeCustomerID string `gorm:"column:stripe_customer_id;primaryKey" json:"stripe_customer_id"` OrganizationID string `gorm:"column:organization_id;primaryKey" json:"organization_id"` }
Customer mapped from table <customers>
type DiggerBatch ¶
type DiggerBatch struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` PrNumber int64 `gorm:"column:pr_number" json:"pr_number"` Status int16 `gorm:"column:status;not null" json:"status"` BranchName string `gorm:"column:branch_name;not null" json:"branch_name"` DiggerConfig string `gorm:"column:digger_config" json:"digger_config"` GithubInstallationID int64 `gorm:"column:github_installation_id" json:"github_installation_id"` RepoFullName string `gorm:"column:repo_full_name;not null" json:"repo_full_name"` RepoOwner string `gorm:"column:repo_owner;not null" json:"repo_owner"` RepoName string `gorm:"column:repo_name;not null" json:"repo_name"` BatchType string `gorm:"column:batch_type;not null" json:"batch_type"` CommentID int64 `gorm:"column:comment_id" json:"comment_id"` SourceDetails []uint8 `gorm:"column:source_details" json:"source_details"` Vcs string `gorm:"column:vcs" json:"vcs"` GitlabProjectID int64 `gorm:"column:gitlab_project_id" json:"gitlab_project_id"` OrganizationID string `gorm:"column:organization_id" json:"organization_id"` EventType string `gorm:"column:event_type" json:"event_type"` }
DiggerBatch mapped from table <digger_batches>
func (*DiggerBatch) TableName ¶
func (*DiggerBatch) TableName() string
TableName DiggerBatch's table name
type DiggerJob ¶
type DiggerJob struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` DiggerJobID string `gorm:"column:digger_job_id;not null" json:"digger_job_id"` Status int16 `gorm:"column:status;not null" json:"status"` BatchID string `gorm:"column:batch_id;not null" json:"batch_id"` StatusUpdatedAt time.Time `gorm:"column:status_updated_at" json:"status_updated_at"` DiggerJobSummaryID string `gorm:"column:digger_job_summary_id" json:"digger_job_summary_id"` WorkflowFile string `gorm:"column:workflow_file" json:"workflow_file"` WorkflowRunURL string `gorm:"column:workflow_run_url" json:"workflow_run_url"` PlanFootprint []uint8 `gorm:"column:plan_footprint" json:"plan_footprint"` PrCommentURL string `gorm:"column:pr_comment_url" json:"pr_comment_url"` TerraformOutput string `gorm:"column:terraform_output" json:"terraform_output"` JobSpec []uint8 `gorm:"column:job_spec" json:"job_spec"` VariablesSpec []uint8 `gorm:"column:variables_spec" json:"variables_spec"` }
DiggerJob mapped from table <digger_jobs>
type DiggerJobParentLink ¶
type DiggerJobParentLink struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` DiggerJobID string `gorm:"column:digger_job_id" json:"digger_job_id"` ParentDiggerJobID string `gorm:"column:parent_digger_job_id" json:"parent_digger_job_id"` }
DiggerJobParentLink mapped from table <digger_job_parent_links>
func (*DiggerJobParentLink) TableName ¶
func (*DiggerJobParentLink) TableName() string
TableName DiggerJobParentLink's table name
type DiggerJobSummary ¶
type DiggerJobSummary struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` ResourcesCreated int64 `gorm:"column:resources_created;not null" json:"resources_created"` ResourcesDeleted int64 `gorm:"column:resources_deleted;not null" json:"resources_deleted"` ResourcesUpdated int64 `gorm:"column:resources_updated;not null" json:"resources_updated"` }
DiggerJobSummary mapped from table <digger_job_summaries>
func (*DiggerJobSummary) TableName ¶
func (*DiggerJobSummary) TableName() string
TableName DiggerJobSummary's table name
type DiggerJobToken ¶
type DiggerJobToken struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` Value string `gorm:"column:value" json:"value"` Expiry time.Time `gorm:"column:expiry" json:"expiry"` Type string `gorm:"column:type" json:"type"` OrganisationID string `gorm:"column:organisation_id" json:"organisation_id"` }
DiggerJobToken mapped from table <digger_job_tokens>
func (*DiggerJobToken) TableName ¶
func (*DiggerJobToken) TableName() string
TableName DiggerJobToken's table name
type DiggerLock ¶
type DiggerLock struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` Resource string `gorm:"column:resource;not null" json:"resource"` LockID int64 `gorm:"column:lock_id;not null" json:"lock_id"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` }
DiggerLock mapped from table <digger_locks>
func (*DiggerLock) TableName ¶
func (*DiggerLock) TableName() string
TableName DiggerLock's table name
type DiggerRun ¶
type DiggerRun struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` Triggertype string `gorm:"column:triggertype;not null" json:"triggertype"` PrNumber int64 `gorm:"column:pr_number" json:"pr_number"` Status string `gorm:"column:status;not null" json:"status"` CommitID string `gorm:"column:commit_id;not null" json:"commit_id"` DiggerConfig string `gorm:"column:digger_config" json:"digger_config"` GithubInstallationID int64 `gorm:"column:github_installation_id" json:"github_installation_id"` RepoID int64 `gorm:"column:repo_id;not null" json:"repo_id"` RunType string `gorm:"column:run_type;not null" json:"run_type"` PlanStageID string `gorm:"column:plan_stage_id" json:"plan_stage_id"` ApplyStageID string `gorm:"column:apply_stage_id" json:"apply_stage_id"` ProjectName string `gorm:"column:project_name" json:"project_name"` IsApproved bool `gorm:"column:is_approved" json:"is_approved"` ApprovalAuthor string `gorm:"column:approval_author" json:"approval_author"` ApprovalDate time.Time `gorm:"column:approval_date" json:"approval_date"` ProjectID string `gorm:"column:project_id;not null" json:"project_id"` TerraformOutput string `gorm:"column:terraform_output" json:"terraform_output"` ApplyLogs string `gorm:"column:apply_logs" json:"apply_logs"` ApproverUserID *string `gorm:"column:approver_user_id" json:"approver_user_id"` TriggeredByUserID *string `gorm:"column:triggered_by_user_id" json:"triggered_by_user_id"` FailureReason string `gorm:"column:failure_reason" json:"failure_reason"` }
DiggerRun mapped from table <digger_runs>
type DiggerRunQueueItem ¶
type DiggerRunQueueItem struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` DiggerRunID string `gorm:"column:digger_run_id" json:"digger_run_id"` ProjectID string `gorm:"column:project_id" json:"project_id"` }
DiggerRunQueueItem mapped from table <digger_run_queue_items>
func (*DiggerRunQueueItem) TableName ¶
func (*DiggerRunQueueItem) TableName() string
TableName DiggerRunQueueItem's table name
type DiggerRunStage ¶
type DiggerRunStage struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` BatchID string `gorm:"column:batch_id;not null" json:"batch_id"` }
DiggerRunStage mapped from table <digger_run_stages>
func (*DiggerRunStage) TableName ¶
func (*DiggerRunStage) TableName() string
TableName DiggerRunStage's table name
type EnvVar ¶
type EnvVar struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` ProjectID string `gorm:"column:project_id;not null" json:"project_id"` Name string `gorm:"column:name;not null" json:"name"` Value string `gorm:"column:value;not null" json:"value"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:now()" json:"updated_at"` IsSecret bool `gorm:"column:is_secret;not null" json:"is_secret"` }
EnvVar mapped from table <env_vars>
type GithubApp ¶
type GithubApp struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` GithubID int64 `gorm:"column:github_id;not null" json:"github_id"` Name string `gorm:"column:name;not null" json:"name"` GithubAppURL string `gorm:"column:github_app_url;not null" json:"github_app_url"` }
GithubApp mapped from table <github_apps>
type GithubAppInstallation ¶
type GithubAppInstallation struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` GithubInstallationID int64 `gorm:"column:github_installation_id;not null" json:"github_installation_id"` GithubAppID int64 `gorm:"column:github_app_id;not null" json:"github_app_id"` AccountID int64 `gorm:"column:account_id;not null" json:"account_id"` Login string `gorm:"column:login;not null" json:"login"` Repo string `gorm:"column:repo" json:"repo"` Status int64 `gorm:"column:status;not null" json:"status"` }
GithubAppInstallation mapped from table <github_app_installations>
func (*GithubAppInstallation) TableName ¶
func (*GithubAppInstallation) TableName() string
TableName GithubAppInstallation's table name
type GithubAppInstallationLink ¶
type GithubAppInstallationLink struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` GithubInstallationID int64 `gorm:"column:github_installation_id;not null" json:"github_installation_id"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` Status int16 `gorm:"column:status;not null" json:"status"` }
GithubAppInstallationLink mapped from table <github_app_installation_links>
func (*GithubAppInstallationLink) TableName ¶
func (*GithubAppInstallationLink) TableName() string
TableName GithubAppInstallationLink's table name
type InternalBlogAuthorPost ¶
type InternalBlogAuthorPost struct { AuthorID string `gorm:"column:author_id;primaryKey" json:"author_id"` PostID string `gorm:"column:post_id;primaryKey" json:"post_id"` }
InternalBlogAuthorPost mapped from table <internal_blog_author_posts>
func (*InternalBlogAuthorPost) TableName ¶
func (*InternalBlogAuthorPost) TableName() string
TableName InternalBlogAuthorPost's table name
type InternalBlogAuthorProfile ¶
type InternalBlogAuthorProfile struct { UserID string `gorm:"column:user_id;primaryKey" json:"user_id"` DisplayName string `gorm:"column:display_name;not null" json:"display_name"` Bio string `gorm:"column:bio;not null" json:"bio"` AvatarURL string `gorm:"column:avatar_url;not null" json:"avatar_url"` WebsiteURL string `gorm:"column:website_url" json:"website_url"` TwitterHandle string `gorm:"column:twitter_handle" json:"twitter_handle"` FacebookHandle string `gorm:"column:facebook_handle" json:"facebook_handle"` LinkedinHandle string `gorm:"column:linkedin_handle" json:"linkedin_handle"` InstagramHandle string `gorm:"column:instagram_handle" json:"instagram_handle"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` }
InternalBlogAuthorProfile mapped from table <internal_blog_author_profiles>
func (*InternalBlogAuthorProfile) TableName ¶
func (*InternalBlogAuthorProfile) TableName() string
TableName InternalBlogAuthorProfile's table name
type InternalBlogPost ¶
type InternalBlogPost struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` Slug string `gorm:"column:slug;not null" json:"slug"` Title string `gorm:"column:title;not null" json:"title"` Summary string `gorm:"column:summary;not null" json:"summary"` Content string `gorm:"column:content;not null" json:"content"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` IsFeatured bool `gorm:"column:is_featured;not null" json:"is_featured"` Status string `gorm:"column:status;not null;default:draft" json:"status"` CoverImage string `gorm:"column:cover_image" json:"cover_image"` SeoData string `gorm:"column:seo_data" json:"seo_data"` JSONContent string `gorm:"column:json_content;not null;default:{}" json:"json_content"` }
InternalBlogPost mapped from table <internal_blog_posts>
func (*InternalBlogPost) TableName ¶
func (*InternalBlogPost) TableName() string
TableName InternalBlogPost's table name
type InternalBlogPostTag ¶
type InternalBlogPostTag struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` Slug string `gorm:"column:slug;not null" json:"slug"` Name string `gorm:"column:name;not null" json:"name"` Description string `gorm:"column:description" json:"description"` }
InternalBlogPostTag mapped from table <internal_blog_post_tags>
func (*InternalBlogPostTag) TableName ¶
func (*InternalBlogPostTag) TableName() string
TableName InternalBlogPostTag's table name
type InternalBlogPostTagsRelationship ¶
type InternalBlogPostTagsRelationship struct { BlogPostID string `gorm:"column:blog_post_id;primaryKey" json:"blog_post_id"` TagID int32 `gorm:"column:tag_id;primaryKey" json:"tag_id"` }
InternalBlogPostTagsRelationship mapped from table <internal_blog_post_tags_relationship>
func (*InternalBlogPostTagsRelationship) TableName ¶
func (*InternalBlogPostTagsRelationship) TableName() string
TableName InternalBlogPostTagsRelationship's table name
type InternalChangelog ¶
type InternalChangelog struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` Title string `gorm:"column:title;not null" json:"title"` Changes string `gorm:"column:changes;not null" json:"changes"` UserID string `gorm:"column:user_id" json:"user_id"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` CoverImage string `gorm:"column:cover_image" json:"cover_image"` }
InternalChangelog mapped from table <internal_changelog>
func (*InternalChangelog) TableName ¶
func (*InternalChangelog) TableName() string
TableName InternalChangelog's table name
type InternalFeedbackComment ¶
type InternalFeedbackComment struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` UserID string `gorm:"column:user_id;not null" json:"user_id"` ThreadID string `gorm:"column:thread_id;not null" json:"thread_id"` Content string `gorm:"column:content;not null" json:"content"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` }
InternalFeedbackComment mapped from table <internal_feedback_comments>
func (*InternalFeedbackComment) TableName ¶
func (*InternalFeedbackComment) TableName() string
TableName InternalFeedbackComment's table name
type InternalFeedbackThread ¶
type InternalFeedbackThread struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` Title string `gorm:"column:title;not null" json:"title"` Content string `gorm:"column:content;not null" json:"content"` UserID string `gorm:"column:user_id;not null" json:"user_id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` Priority string `gorm:"column:priority;not null;default:low" json:"priority"` Type string `gorm:"column:type;not null;default:general" json:"type"` Status string `gorm:"column:status;not null;default:open" json:"status"` AddedToRoadmap bool `gorm:"column:added_to_roadmap;not null" json:"added_to_roadmap"` OpenForPublicDiscussion bool `gorm:"column:open_for_public_discussion;not null" json:"open_for_public_discussion"` IsPubliclyVisible bool `gorm:"column:is_publicly_visible;not null" json:"is_publicly_visible"` }
InternalFeedbackThread mapped from table <internal_feedback_threads>
func (*InternalFeedbackThread) TableName ¶
func (*InternalFeedbackThread) TableName() string
TableName InternalFeedbackThread's table name
type Organization ¶
type Organization struct { CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` ID string `gorm:"column:id;primaryKey;default:uuid_generate_v4()" json:"id"` Title string `gorm:"column:title;not null;default:Test Organization" json:"title"` Slug string `gorm:"column:slug;not null;default:(gen_random_uuid())" json:"slug"` PublicKey string `gorm:"column:public_key" json:"public_key"` }
Organization mapped from table <organizations>
func (*Organization) TableName ¶
func (*Organization) TableName() string
TableName Organization's table name
type OrganizationCredit ¶
type OrganizationCredit struct { OrganizationID string `gorm:"column:organization_id;primaryKey" json:"organization_id"` Credits int64 `gorm:"column:credits;not null;default:12" json:"credits"` }
OrganizationCredit mapped from table <organization_credits>
func (*OrganizationCredit) TableName ¶
func (*OrganizationCredit) TableName() string
TableName OrganizationCredit's table name
type OrganizationJoinInvitation ¶
type OrganizationJoinInvitation struct { CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` InviterUserID string `gorm:"column:inviter_user_id;not null" json:"inviter_user_id"` Status string `gorm:"column:status;not null;default:active" json:"status"` ID string `gorm:"column:id;primaryKey;default:uuid_generate_v4()" json:"id"` InviteeUserEmail string `gorm:"column:invitee_user_email;not null" json:"invitee_user_email"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` InviteeOrganizationRole string `gorm:"column:invitee_organization_role;not null;default:member" json:"invitee_organization_role"` InviteeUserID string `gorm:"column:invitee_user_id" json:"invitee_user_id"` }
OrganizationJoinInvitation mapped from table <organization_join_invitations>
func (*OrganizationJoinInvitation) TableName ¶
func (*OrganizationJoinInvitation) TableName() string
TableName OrganizationJoinInvitation's table name
type OrganizationMember ¶
type OrganizationMember struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` MemberID string `gorm:"column:member_id;not null" json:"member_id"` MemberRole string `gorm:"column:member_role;not null" json:"member_role"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` }
OrganizationMember mapped from table <organization_members>
func (*OrganizationMember) TableName ¶
func (*OrganizationMember) TableName() string
TableName OrganizationMember's table name
type OrganizationsPrivateInfo ¶
type OrganizationsPrivateInfo struct { ID string `gorm:"column:id;primaryKey" json:"id"` BillingAddress string `gorm:"column:billing_address" json:"billing_address"` PaymentMethod string `gorm:"column:payment_method" json:"payment_method"` }
OrganizationsPrivateInfo mapped from table <organizations_private_info>
func (*OrganizationsPrivateInfo) TableName ¶
func (*OrganizationsPrivateInfo) TableName() string
TableName OrganizationsPrivateInfo's table name
type Price ¶
type Price struct { ID string `gorm:"column:id;primaryKey" json:"id"` ProductID string `gorm:"column:product_id" json:"product_id"` Active bool `gorm:"column:active" json:"active"` Description string `gorm:"column:description" json:"description"` UnitAmount int64 `gorm:"column:unit_amount" json:"unit_amount"` Currency string `gorm:"column:currency" json:"currency"` Type string `gorm:"column:type" json:"type"` Interval string `gorm:"column:interval" json:"interval"` IntervalCount int64 `gorm:"column:interval_count" json:"interval_count"` TrialPeriodDays int64 `gorm:"column:trial_period_days" json:"trial_period_days"` Metadata string `gorm:"column:metadata" json:"metadata"` }
Price mapped from table <prices>
type Product ¶
type Product struct { ID string `gorm:"column:id;primaryKey" json:"id"` Active bool `gorm:"column:active" json:"active"` Name string `gorm:"column:name" json:"name"` Description string `gorm:"column:description" json:"description"` Image string `gorm:"column:image" json:"image"` Metadata string `gorm:"column:metadata" json:"metadata"` IsVisibleInUI bool `gorm:"column:is_visible_in_ui;not null" json:"is_visible_in_ui"` }
Product mapped from table <products>
type Project ¶
type Project struct { ID string `gorm:"column:id;primaryKey;default:uuid_generate_v4()" json:"id"` Name string `gorm:"column:name;not null" json:"name"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` TeamID *int64 `gorm:"column:team_id" json:"team_id"` ProjectStatus string `gorm:"column:project_status;not null;default:draft" json:"project_status"` Slug string `gorm:"column:slug;not null;default:(gen_random_uuid())" json:"slug"` LatestActionOn string `gorm:"column:latest_action_on" json:"latest_action_on"` RepoID int64 `gorm:"column:repo_id;not null" json:"repo_id"` ConfigurationYaml string `gorm:"column:configuration_yaml" json:"configuration_yaml"` Status string `gorm:"column:status" json:"status"` IsGenerated bool `gorm:"column:is_generated" json:"is_generated"` IsInMainBranch bool `gorm:"column:is_in_main_branch" json:"is_in_main_branch"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` TerraformWorkingDir string `gorm:"column:terraform_working_dir" json:"terraform_working_dir"` IsManagingState bool `gorm:"column:is_managing_state" json:"is_managing_state"` Labels string `gorm:"column:labels" json:"labels"` IsDriftDetectionEnabled bool `gorm:"column:is_drift_detection_enabled" json:"is_drift_detection_enabled"` DriftCrontab string `gorm:"column:drift_crontab" json:"drift_crontab"` Branch string `gorm:"column:branch" json:"branch"` LatestDriftOutput string `gorm:"column:latest_drift_output" json:"latest_drift_output"` IacType string `gorm:"column:iac_type;default:terraform" json:"iac_type"` Workspace string `gorm:"column:workspace" json:"workspace"` WorkflowFile string `gorm:"column:workflow_file" json:"workflow_file"` IncludePatterns string `gorm:"column:include_patterns" json:"include_patterns"` AutoApprove bool `gorm:"column:auto_approve;not null" json:"auto_approve"` ExcludePatterns string `gorm:"column:exclude_patterns" json:"exclude_patterns"` Workflow string `gorm:"column:workflow;default:default" json:"workflow"` }
Project mapped from table <projects>
type ProjectComment ¶
type ProjectComment struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;default:now()" json:"created_at"` Text string `gorm:"column:text;not null" json:"text"` UserID string `gorm:"column:user_id;not null" json:"user_id"` InReplyTo int64 `gorm:"column:in_reply_to" json:"in_reply_to"` ProjectID string `gorm:"column:project_id;not null" json:"project_id"` }
ProjectComment mapped from table <project_comments>
func (*ProjectComment) TableName ¶
func (*ProjectComment) TableName() string
TableName ProjectComment's table name
type ProjectTfvar ¶
type ProjectTfvar struct { ID string `gorm:"column:id;primaryKey;default:gen_random_uuid()" json:"id"` ProjectID string `gorm:"column:project_id;not null" json:"project_id"` Tfvars string `gorm:"column:tfvars;not null" json:"tfvars"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:now()" json:"updated_at"` }
ProjectTfvar mapped from table <project_tfvars>
func (*ProjectTfvar) TableName ¶
func (*ProjectTfvar) TableName() string
TableName ProjectTfvar's table name
type Repo ¶
type Repo struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;default:now()" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"` Name string `gorm:"column:name;not null" json:"name"` OrganizationID string `gorm:"column:organization_id" json:"organization_id"` DiggerConfig string `gorm:"column:digger_config" json:"digger_config"` RepoName string `gorm:"column:repo_name" json:"repo_name"` RepoFullName string `gorm:"column:repo_full_name" json:"repo_full_name"` RepoOrganisation string `gorm:"column:repo_organisation" json:"repo_organisation"` RepoURL string `gorm:"column:repo_url" json:"repo_url"` }
Repo mapped from table <repos>
type Subscription ¶
type Subscription struct { ID string `gorm:"column:id;primaryKey" json:"id"` Status string `gorm:"column:status" json:"status"` Metadata string `gorm:"column:metadata" json:"metadata"` PriceID string `gorm:"column:price_id" json:"price_id"` Quantity int64 `gorm:"column:quantity" json:"quantity"` CancelAtPeriodEnd bool `gorm:"column:cancel_at_period_end" json:"cancel_at_period_end"` Created time.Time `gorm:"column:created;not null" json:"created"` CurrentPeriodStart time.Time `gorm:"column:current_period_start;not null" json:"current_period_start"` CurrentPeriodEnd time.Time `gorm:"column:current_period_end;not null" json:"current_period_end"` EndedAt time.Time `gorm:"column:ended_at" json:"ended_at"` CancelAt time.Time `gorm:"column:cancel_at" json:"cancel_at"` CanceledAt time.Time `gorm:"column:canceled_at" json:"canceled_at"` TrialStart time.Time `gorm:"column:trial_start" json:"trial_start"` TrialEnd time.Time `gorm:"column:trial_end" json:"trial_end"` OrganizationID string `gorm:"column:organization_id" json:"organization_id"` }
Subscription mapped from table <subscriptions>
func (*Subscription) TableName ¶
func (*Subscription) TableName() string
TableName Subscription's table name
type Team ¶
type Team struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;default:now()" json:"created_at"` OrganizationID string `gorm:"column:organization_id;not null" json:"organization_id"` Name string `gorm:"column:name;not null" json:"name"` }
Team mapped from table <teams>
type TeamMember ¶
type TeamMember struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` CreatedAt time.Time `gorm:"column:created_at;default:now()" json:"created_at"` UserID string `gorm:"column:user_id;not null" json:"user_id"` Role string `gorm:"column:role;not null;default:member" json:"role"` TeamID int64 `gorm:"column:team_id;not null" json:"team_id"` }
TeamMember mapped from table <team_members>
func (*TeamMember) TableName ¶
func (*TeamMember) TableName() string
TableName TeamMember's table name
type UserAPIKey ¶
type UserAPIKey struct { KeyID string `gorm:"column:key_id;primaryKey" json:"key_id"` MaskedKey string `gorm:"column:masked_key;not null" json:"masked_key"` CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` UserID string `gorm:"column:user_id;not null" json:"user_id"` ExpiresAt time.Time `gorm:"column:expires_at" json:"expires_at"` IsRevoked bool `gorm:"column:is_revoked;not null" json:"is_revoked"` }
UserAPIKey mapped from table <user_api_keys>
func (*UserAPIKey) TableName ¶
func (*UserAPIKey) TableName() string
TableName UserAPIKey's table name
type UserM2mApplication ¶
type UserM2mApplication struct { ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` ClientID string `gorm:"column:clientId;not null" json:"clientId"` Name string `gorm:"column:name" json:"name"` Description string `gorm:"column:description" json:"description"` CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"` Email string `gorm:"column:email;not null" json:"email"` Audience string `gorm:"column:audience;not null" json:"audience"` Issuer string `gorm:"column:issuer;not null" json:"issuer"` }
UserM2mApplication mapped from table <user_m2m_applications>
func (*UserM2mApplication) TableName ¶
func (*UserM2mApplication) TableName() string
TableName UserM2mApplication's table name
type UserNotification ¶
type UserNotification struct { ID string `gorm:"column:id;primaryKey;default:uuid_generate_v4()" json:"id"` UserID string `gorm:"column:user_id" json:"user_id"` IsRead bool `gorm:"column:is_read;not null" json:"is_read"` IsSeen bool `gorm:"column:is_seen;not null" json:"is_seen"` Payload string `gorm:"column:payload;not null;default:{}" json:"payload"` CreatedAt time.Time `gorm:"column:created_at;not null;default:CURRENT_TIMESTAMP" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at;not null;default:CURRENT_TIMESTAMP" json:"updated_at"` }
UserNotification mapped from table <user_notifications>
func (*UserNotification) TableName ¶
func (*UserNotification) TableName() string
TableName UserNotification's table name
type UserOnboarding ¶
type UserOnboarding struct { UserID string `gorm:"column:user_id;primaryKey" json:"user_id"` CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` AcceptedTerms bool `gorm:"column:accepted_terms;not null" json:"accepted_terms"` }
UserOnboarding mapped from table <user_onboarding>
func (*UserOnboarding) TableName ¶
func (*UserOnboarding) TableName() string
TableName UserOnboarding's table name
type UserPrivateInfo ¶
type UserPrivateInfo struct { ID string `gorm:"column:id;primaryKey" json:"id"` CreatedAt time.Time `gorm:"column:created_at;default:now()" json:"created_at"` DefaultOrganization string `gorm:"column:default_organization" json:"default_organization"` }
UserPrivateInfo mapped from table <user_private_info>
func (*UserPrivateInfo) TableName ¶
func (*UserPrivateInfo) TableName() string
TableName UserPrivateInfo's table name
type UserProfile ¶
type UserProfile struct { ID string `gorm:"column:id;primaryKey" json:"id"` FullName string `gorm:"column:full_name" json:"full_name"` AvatarURL string `gorm:"column:avatar_url" json:"avatar_url"` CreatedAt time.Time `gorm:"column:created_at;not null;default:now()" json:"created_at"` UserName string `gorm:"column:user_name" json:"user_name"` Email string `gorm:"column:email" json:"email"` HasAcceptedTerms bool `gorm:"column:has_accepted_terms;default:true" json:"has_accepted_terms"` HasCompletedProfile bool `gorm:"column:has_completed_profile" json:"has_completed_profile"` HasCreatedOrganization bool `gorm:"column:has_created_organization" json:"has_created_organization"` IsCreatedThroughOrgInvitation bool `gorm:"column:is_created_through_org_invitation" json:"is_created_through_org_invitation"` DefaultOrganization string `gorm:"column:default_organization" json:"default_organization"` }
UserProfile mapped from table <user_profiles>
func (*UserProfile) TableName ¶
func (*UserProfile) TableName() string
TableName UserProfile's table name
Source Files ¶
- account_delete_tokens.gen.go
- billing_bypass_organizations.gen.go
- chats.gen.go
- customers.gen.go
- digger_batches.gen.go
- digger_job_parent_links.gen.go
- digger_job_summaries.gen.go
- digger_job_tokens.gen.go
- digger_jobs.gen.go
- digger_locks.gen.go
- digger_run_queue_items.gen.go
- digger_run_stages.gen.go
- digger_runs.gen.go
- env_vars.gen.go
- github_app_installation_links.gen.go
- github_app_installations.gen.go
- github_apps.gen.go
- internal_blog_author_posts.gen.go
- internal_blog_author_profiles.gen.go
- internal_blog_post_tags.gen.go
- internal_blog_post_tags_relationship.gen.go
- internal_blog_posts.gen.go
- internal_changelog.gen.go
- internal_feedback_comments.gen.go
- internal_feedback_threads.gen.go
- organization_credits.gen.go
- organization_join_invitations.gen.go
- organization_members.gen.go
- organizations.gen.go
- organizations_private_info.gen.go
- prices.gen.go
- products.gen.go
- project_comments.gen.go
- project_tfvars.gen.go
- projects.gen.go
- repos.gen.go
- subscriptions.gen.go
- team_members.gen.go
- teams.gen.go
- user_api_keys.gen.go
- user_m2m_applications.gen.go
- user_notifications.gen.go
- user_onboarding.gen.go
- user_private_info.gen.go
- user_profiles.gen.go
- user_roles.gen.go