mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-15 09:18:59 +08:00
24 lines
1.4 KiB
Go
24 lines
1.4 KiB
Go
package model
|
|
|
|
type App struct {
|
|
BaseModel
|
|
Name string `json:"name" gorm:"type:varchar(64);not null"`
|
|
Key string `json:"key" gorm:"type:varchar(64);not null;uniqueIndex"`
|
|
ShortDescZh string `json:"shortDescZh" gorm:"type:longtext;"`
|
|
ShortDescEn string `json:"shortDescEn" gorm:"type:longtext;"`
|
|
Icon string `json:"icon" gorm:"type:longtext;"`
|
|
Type string `json:"type" gorm:"type:varchar(64);not null"`
|
|
Status string `json:"status" gorm:"type:varchar(64);not null"`
|
|
Required string `json:"required" gorm:"type:varchar(64);not null"`
|
|
CrossVersionUpdate bool `json:"crossVersionUpdate"`
|
|
Limit int `json:"limit" gorm:"type:Integer;not null"`
|
|
Website string `json:"website" gorm:"type:varchar(64);not null"`
|
|
Github string `json:"github" gorm:"type:varchar(64);not null"`
|
|
Document string `json:"document" gorm:"type:varchar(64);not null"`
|
|
Recommend int `json:"recommend" gorm:"type:Integer;not null"`
|
|
Resource string `json:"resource" gorm:"type:varchar;not null;default:remote"`
|
|
Details []AppDetail `json:"-" gorm:"-:migration"`
|
|
TagsKey []string `json:"-" gorm:"-"`
|
|
AppTags []AppTag `json:"-" gorm:"-:migration"`
|
|
}
|