Explorar o código

add name field to template (#4618)

ianedwards %!s(int64=2) %!d(string=hai) anos
pai
achega
1f79481a48
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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"`