🚚 Expose the models to public
This commit is contained in:
24
pkg/filekit/models/boost.go
Normal file
24
pkg/filekit/models/boost.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
import "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
|
||||
|
||||
const (
|
||||
BoostStatusPending = iota
|
||||
BoostStatusActive
|
||||
BoostStatusSuspended
|
||||
BoostStatusError
|
||||
)
|
||||
|
||||
// AttachmentBoost is made for speed up attachment loading by copy the original attachments
|
||||
// to others faster CDN or storage destinations.
|
||||
type AttachmentBoost struct {
|
||||
cruda.BaseModel
|
||||
|
||||
Status int `json:"status"`
|
||||
Destination int `json:"destination"`
|
||||
|
||||
AttachmentID uint `json:"attachment_id"`
|
||||
Attachment Attachment `json:"attachment"`
|
||||
|
||||
AccountID uint `json:"account"`
|
||||
}
|
Reference in New Issue
Block a user