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"`

	Preview string `json:"preview"`
	Author   string `json:"author"`
}
