Skip to content

Commit

Permalink
deployment queries index
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo committed Jul 6, 2023
1 parent a29d48b commit bdfe2fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/registry/internal/storage/models/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ import (
type Deployment struct {
Key string `gorm:"primaryKey"`
ProjectID string // Uniquely identifies a project.
ApiID string `gorm:"index"` // Uniquely identifies an api within a project.
DeploymentID string // Uniquely identifies a deployment within an api.
ApiID string `gorm:"index:latest"` // Uniquely identifies an api within a project.
DeploymentID string `gorm:"index:latest"` // Uniquely identifies a deployment within an api.
RevisionID string // Uniquely identifies a revision of a deployment.
DisplayName string // A human-friendly name.
Description string // A detailed description.
CreateTime time.Time // Creation time.
RevisionCreateTime time.Time // Revision creation time.
RevisionCreateTime time.Time `gorm:"index:latest,sort:desc"` // Revision creation time.
RevisionUpdateTime time.Time // Time of last change.
ApiSpecRevision string // The spec being served by the deployment.
EndpointURI string // The address where the deployment is serving.
Expand Down

0 comments on commit bdfe2fc

Please sign in to comment.