🚚 Expose the models to public

This commit is contained in:
2025-03-29 22:17:22 +08:00
parent 8f91649d25
commit 820d7a9f42
33 changed files with 28 additions and 28 deletions

View File

@@ -0,0 +1,27 @@
package models
import (
"git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
"gorm.io/datatypes"
)
type AttachmentPool struct {
cruda.BaseModel
Alias string `json:"alias"`
Name string `json:"name"`
Description string `json:"description"`
Config datatypes.JSONType[AttachmentPoolConfig] `json:"config"`
Attachments []Attachment `json:"attachments" gorm:"foreignKey:PoolID"`
AccountID *uint `json:"account_id"`
}
type AttachmentPoolConfig struct {
MaxFileSize *int64 `json:"max_file_size"`
ExistLifecycle *int64 `json:"exist_lifecycle"`
AllowCrossPoolIngress bool `json:"allow_cross_pool_ingress"`
AllowCrossPoolEgress bool `json:"allow_cross_pool_egress"`
PublicIndexable bool `json:"public_indexable"`
}