| 224 | } |
| 225 | |
| 226 | type Repository struct { |
| 227 | Base |
| 228 | |
| 229 | CredentialsID *uint `gorm:"index"` |
| 230 | Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"` |
| 231 | |
| 232 | GiteaCredentialsID *uint `gorm:"index"` |
| 233 | GiteaCredentials GiteaCredentials `gorm:"foreignKey:GiteaCredentialsID;constraint:OnDelete:SET NULL"` |
| 234 | |
| 235 | PoolManagerRunning bool |
| 236 | PoolManagerFailureReason string |
| 237 | |
| 238 | Owner string `gorm:"index:idx_owner_nocase,unique,collate:nocase"` |
| 239 | Name string `gorm:"index:idx_owner_nocase,unique,collate:nocase"` |
| 240 | WebhookSecret []byte |
| 241 | Pools []Pool `gorm:"foreignKey:RepoID"` |
| 242 | ScaleSets []ScaleSet `gorm:"foreignKey:RepoID"` |
| 243 | Jobs []WorkflowJob `gorm:"foreignKey:RepoID;constraint:OnDelete:SET NULL"` |
| 244 | PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"` |
| 245 | AgentMode bool `gorm:"index:repo_agent_idx"` |
| 246 | |
| 247 | EndpointName *string `gorm:"index:idx_owner_nocase,unique,collate:nocase"` |
| 248 | Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"` |
| 249 | |
| 250 | Events []RepositoryEvent `gorm:"foreignKey:RepoID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"` |
| 251 | } |
| 252 | |
| 253 | type OrganizationEvent struct { |
| 254 | gorm.Model |
nothing calls this directly
no outgoing calls
no test coverage detected