浏览代码

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"`