From f120bcf77579b06aae6d56eb09eec61bf10bbf0b Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Fri, 19 Jan 2024 17:13:05 -0500 Subject: [PATCH] add status column to db (#4171) --- internal/models/datastore.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/models/datastore.go b/internal/models/datastore.go index 2ee482ce57..e80c0273d6 100644 --- a/internal/models/datastore.go +++ b/internal/models/datastore.go @@ -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"` @@ -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"` }