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