Skip to content

Commit

Permalink
add status column to db (#4171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Jan 19, 2024
1 parent 1b897d3 commit f120bcf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/models/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ type Datastore struct {
ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`

// ProjectID is the ID of the project that the datastore belongs to
ProjectID uint
ProjectID uint `json:"project_id"`

// Name is the name of the datastore
Name string
Name string `json:"name"`

// CloudProvider is the cloud provider that hosts the Kubernetes Cluster. Accepted values: [AWS, GCP, AZURE]
CloudProvider string `json:"cloud_provider"`
Expand All @@ -31,4 +31,7 @@ type Datastore struct {

// Engine is the engine of the datastore. Accepted values: [POSTGRES, AURORA-POSTGRES, REDIS]
Engine string `json:"engine"`

// Status describes the status of a datastore
Status string `json:"status"`
}

0 comments on commit f120bcf

Please sign in to comment.