model

package
v0.0.0-...-1e88db8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameAccountDeleteToken = "account_delete_tokens"
View Source
const TableNameBillingBypassOrganization = "billing_bypass_organizations"
View Source
const TableNameChat = "chats"
View Source
const TableNameCustomer = "customers"
View Source
const TableNameDiggerBatch = "digger_batches"
View Source
const TableNameDiggerJob = "digger_jobs"
View Source
const TableNameDiggerJobParentLink = "digger_job_parent_links"
View Source
const TableNameDiggerJobSummary = "digger_job_summaries"
View Source
const TableNameDiggerJobToken = "digger_job_tokens"
View Source
const TableNameDiggerLock = "digger_locks"
View Source
const TableNameDiggerRun = "digger_runs"
View Source
const TableNameDiggerRunQueueItem = "digger_run_queue_items"
View Source
const TableNameDiggerRunStage = "digger_run_stages"
View Source
const TableNameEnvVar = "env_vars"
View Source
const TableNameGithubApp = "github_apps"
View Source
const TableNameGithubAppInstallation = "github_app_installations"
View Source
const TableNameGithubAppInstallationLink = "github_app_installation_links"
View Source
const TableNameInternalBlogAuthorPost = "internal_blog_author_posts"
View Source
const TableNameInternalBlogAuthorProfile = "internal_blog_author_profiles"
View Source
const TableNameInternalBlogPost = "internal_blog_posts"
View Source
const TableNameInternalBlogPostTag = "internal_blog_post_tags"
View Source
const TableNameInternalBlogPostTagsRelationship = "internal_blog_post_tags_relationship"
View Source
const TableNameInternalChangelog = "internal_changelog"
View Source
const TableNameInternalFeedbackComment = "internal_feedback_comments"
View Source
const TableNameInternalFeedbackThread = "internal_feedback_threads"
View Source
const TableNameOrganization = "organizations"
View Source
const TableNameOrganizationCredit = "organization_credits"
View Source
const TableNameOrganizationJoinInvitation = "organization_join_invitations"
View Source
const TableNameOrganizationMember = "organization_members"
View Source
const TableNameOrganizationsPrivateInfo = "organizations_private_info"
View Source
const TableNamePrice = "prices"
View Source
const TableNameProduct = "products"
View Source
const TableNameProject = "projects"
View Source
const TableNameProjectComment = "project_comments"
View Source
const TableNameProjectTfvar = "project_tfvars"
View Source
const TableNameRepo = "repos"
View Source
const TableNameSubscription = "subscriptions"
View Source
const TableNameTeam = "teams"
View Source
const TableNameTeamMember = "team_members"
View Source
const TableNameUserAPIKey = "user_api_keys"
View Source
const TableNameUserM2mApplication = "user_m2m_applications"
View Source
const TableNameUserNotification = "user_notifications"
View Source
const TableNameUserOnboarding = "user_onboarding"
View Source
const TableNameUserPrivateInfo = "user_private_info"
View Source
const TableNameUserProfile = "user_profiles"
View Source
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>

func (*Chat) TableName

func (*Chat) TableName() string

TableName Chat's table name

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>

func (*Customer) TableName

func (*Customer) TableName() string

TableName Customer's table name

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>

func (*DiggerJob) TableName

func (*DiggerJob) TableName() string

TableName DiggerJob's table name

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>

func (*DiggerRun) TableName

func (*DiggerRun) TableName() string

TableName DiggerRun's table name

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>

func (*EnvVar) TableName

func (*EnvVar) TableName() string

TableName EnvVar's table name

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>

func (*GithubApp) TableName

func (*GithubApp) TableName() string

TableName GithubApp's table name

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 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

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>

func (*Price) TableName

func (*Price) TableName() string

TableName Price's table name

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>

func (*Product) TableName

func (*Product) TableName() string

TableName Product's table name

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>

func (*Project) TableName

func (*Project) TableName() string

TableName Project's table name

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>

func (*Repo) TableName

func (*Repo) TableName() string

TableName Repo's table name

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>

func (*Team) TableName

func (*Team) TableName() string

TableName Team's table name

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

type UserRole

type UserRole struct {
	ID     int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	UserID string `gorm:"column:user_id;not null" json:"user_id"`
	Role   string `gorm:"column:role;not null" json:"role"`
}

UserRole mapped from table <user_roles>

func (*UserRole) TableName

func (*UserRole) TableName() string

TableName UserRole's table name

Jump to

Keyboard shortcuts

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