| 298 | } |
| 299 | |
| 300 | type Enterprise struct { |
| 301 | Base |
| 302 | |
| 303 | CredentialsID *uint `gorm:"index"` |
| 304 | Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"` |
| 305 | |
| 306 | PoolManagerRunning bool |
| 307 | PoolManagerFailureReason string |
| 308 | |
| 309 | Name string `gorm:"index:idx_ent_name_nocase,collate:nocase"` |
| 310 | WebhookSecret []byte |
| 311 | Pools []Pool `gorm:"foreignKey:EnterpriseID"` |
| 312 | ScaleSet []ScaleSet `gorm:"foreignKey:EnterpriseID"` |
| 313 | Jobs []WorkflowJob `gorm:"foreignKey:EnterpriseID;constraint:OnDelete:SET NULL"` |
| 314 | PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"` |
| 315 | AgentMode bool `gorm:"index:enterprise_agent_idx"` |
| 316 | |
| 317 | EndpointName *string `gorm:"index:idx_ent_name_nocase,collate:nocase"` |
| 318 | Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"` |
| 319 | |
| 320 | Events []EnterpriseEvent `gorm:"foreignKey:EnterpriseID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"` |
| 321 | } |
| 322 | |
| 323 | type Address struct { |
| 324 | Base |
nothing calls this directly
no outgoing calls
no test coverage detected