first try
This commit is contained in:
29
models/addon.go
Normal file
29
models/addon.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Addon struct {
|
||||
ID string `gorm:"primaryKey" json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Summary string `json:"summary"`
|
||||
Unlisted bool `json:"unlisted"`
|
||||
Private bool `json:"private"`
|
||||
Blocked bool `json:"blocked"`
|
||||
SubscriberCount int `json:"subscriberCount"`
|
||||
CurrentVersionNumber string `json:"currentVersionNumber"`
|
||||
CurrentVersionSize int `json:"currentVersionSize"`
|
||||
CurrentVersionID int `json:"currentVersionId"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
ToBeIndexed bool `json:"toBeIndexed" gorm:"default:true"`
|
||||
IsBeingIndexed bool `json:"isBeingIndexed" gorm:"default:false"`
|
||||
IndexStartTime time.Time `json:"indexStartTime"`
|
||||
PriorityIndexing bool `json:"priorityIndexing" gorm:"default:false"`
|
||||
AddonFiles []AddonFile `json:"addonFiles"`
|
||||
|
||||
Previews string `json:"preview"`
|
||||
Author string `json:"author"`
|
||||
}
|
||||
Reference in New Issue
Block a user