github_webhook.go 573 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/google/uuid"
  4. "gorm.io/gorm"
  5. )
  6. type GithhubWebhook struct {
  7. gorm.Model
  8. // ID is a UUID for the Revision
  9. ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
  10. // ClusterID is the ID of the cluster that the webhook is associated with.
  11. ClusterID int
  12. // ProjectID is the ID of the project that the webhook is associated with.
  13. ProjectID int
  14. // PorterAppID is the ID of the PorterApp that the webhook is associated with.
  15. PorterAppID int
  16. // GithubWebhookID is the ID of the webhook provided by Github.
  17. GithubWebhookID int64
  18. }