1Panel/backend/app/model/compose_template.go

18 lines
471 B
Go
Raw Normal View History

2022-10-17 09:10:06 +08:00
package model
type ComposeTemplate struct {
BaseModel
Name string `gorm:"type:varchar(64);not null;unique" json:"name"`
From string `gorm:"type:varchar(64);not null" json:"from"`
2022-10-17 16:04:39 +08:00
Description string `gorm:"type:varchar(256)" json:"description"`
Path string `gorm:"type:varchar(64)" json:"path"`
2022-10-17 09:10:06 +08:00
Content string `gorm:"type:longtext" json:"content"`
}
2022-12-06 15:06:42 +08:00
type Compose struct {
BaseModel
Name string `gorm:"type:varchar(256)" json:"name"`
}