1Panel/backend/app/model/compose_template.go
John Bro 535d4bbe1b
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m28s
Build / SonarCloud (push) Failing after -8m53s
sync2gitee / repo-sync (push) Failing after -8m58s
fix: 删除容器后 compose 记录保存以便后续处理 (#6447)
Refs https://github.com/1Panel-dev/1Panel/issues/5099
2024-09-12 10:06:22 +00:00

16 lines
398 B
Go

package model
type ComposeTemplate struct {
BaseModel
Name string `gorm:"type:varchar(64);not null;unique" json:"name"`
Description string `gorm:"type:varchar(256)" json:"description"`
Content string `gorm:"type:longtext" json:"content"`
}
type Compose struct {
BaseModel
Name string `gorm:"type:varchar(256)" json:"name"`
Path string `gorm:"type:varchar(256)" json:"path"`
}