app_revision.go 769 B

12345678910111213141516171819202122232425262728
  1. package models
  2. import (
  3. "github.com/google/uuid"
  4. "gorm.io/gorm"
  5. )
  6. type AppRevision struct {
  7. gorm.Model
  8. // ID is a UUID for the AppRevision
  9. ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
  10. // Base64App is the PorterApp as json encoded in base64
  11. Base64App string `json:"base64_app"`
  12. // Status is the status of the apply that happened for this revision.
  13. Status string `json:"status"`
  14. // DeploymentTargetID is the ID of the deployment target that the revision applies to.
  15. DeploymentTargetID uuid.UUID `json:"deployment_target_id"`
  16. // ProjectID is the ID of the project that the revision belongs to.
  17. ProjectID int `json:"project_id"`
  18. // PorterAppID is the ID of the PorterApp that the revision belongs to.
  19. PorterAppID int `json:"porter_app_id"`
  20. }