Преглед изворни кода

add name field to template (#4618)

ianedwards пре 2 година
родитељ
комит
1f79481a48
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      internal/models/app_template.go

+ 3 - 0
internal/models/app_template.go

@@ -12,6 +12,9 @@ type AppTemplate struct {
 	// ID is a UUID for the AppRevision
 	ID uuid.UUID `gorm:"type:uuid;primaryKey" json:"id"`
 
+	// Name is the name of the template, most commonly matches the app name and is unique within the project
+	Name string `json:"name" gorm:"default:''"`
+
 	// Base64App is the PorterApp as json encoded in base64
 	Base64App string `json:"base64_app"`