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

16 lines
346 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"`
2022-10-17 16:04:39 +08:00
Description string `gorm:"type:varchar(256)" json:"description"`
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"`
}