| 261 | Org Organization `gorm:"foreignKey:OrgID"` |
| 262 | } |
| 263 | type Organization struct { |
| 264 | Base |
| 265 | |
| 266 | CredentialsID *uint `gorm:"index"` |
| 267 | Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"` |
| 268 | |
| 269 | GiteaCredentialsID *uint `gorm:"index"` |
| 270 | GiteaCredentials GiteaCredentials `gorm:"foreignKey:GiteaCredentialsID;constraint:OnDelete:SET NULL"` |
| 271 | |
| 272 | PoolManagerRunning bool |
| 273 | PoolManagerFailureReason string |
| 274 | |
| 275 | Name string `gorm:"index:idx_org_name_nocase,collate:nocase"` |
| 276 | WebhookSecret []byte |
| 277 | Pools []Pool `gorm:"foreignKey:OrgID"` |
| 278 | ScaleSet []ScaleSet `gorm:"foreignKey:OrgID"` |
| 279 | Jobs []WorkflowJob `gorm:"foreignKey:OrgID;constraint:OnDelete:SET NULL"` |
| 280 | PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"` |
| 281 | AgentMode bool `gorm:"index:org_agent_idx"` |
| 282 | |
| 283 | EndpointName *string `gorm:"index:idx_org_name_nocase,collate:nocase"` |
| 284 | Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"` |
| 285 | |
| 286 | Events []OrganizationEvent `gorm:"foreignKey:OrgID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"` |
| 287 | } |
| 288 | |
| 289 | type EnterpriseEvent struct { |
| 290 | gorm.Model |
nothing calls this directly
no outgoing calls
no test coverage detected