2022-09-22 16:16:04 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type App struct {
|
|
|
|
BaseModel
|
2022-09-30 17:56:06 +08:00
|
|
|
Name string `json:"name" gorm:"type:varchar(64);not null"`
|
|
|
|
Key string `json:"key" gorm:"type:varchar(64);not null;uniqueIndex"`
|
2023-02-17 16:21:13 +08:00
|
|
|
ShortDescZh string `json:"shortDescZh" gorm:"type:longtext;"`
|
|
|
|
ShortDescEn string `json:"shortDescEn" gorm:"type:longtext;"`
|
2022-09-30 17:56:06 +08:00
|
|
|
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"`
|
2022-10-03 17:35:39 +08:00
|
|
|
CrossVersionUpdate bool `json:"crossVersionUpdate"`
|
2022-10-07 15:49:39 +08:00
|
|
|
Limit int `json:"limit" gorm:"type:Integer;not null"`
|
2023-01-30 17:24:46 +08:00
|
|
|
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"`
|
2023-02-08 16:21:17 +08:00
|
|
|
Recommend int `json:"recommend" gorm:"type:Integer;not null"`
|
2023-04-08 14:02:14 +08:00
|
|
|
Resource string `json:"resource" gorm:"type:varchar;not null;default:remote"`
|
2023-02-27 17:22:14 +08:00
|
|
|
Details []AppDetail `json:"-" gorm:"-:migration"`
|
2022-09-30 17:56:06 +08:00
|
|
|
TagsKey []string `json:"-" gorm:"-"`
|
2023-02-27 17:22:14 +08:00
|
|
|
AppTags []AppTag `json:"-" gorm:"-:migration"`
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|