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

17 lines
398 B
Go
Raw Normal View History

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