Bilder & Vorschau / Tabellen für die Satrtseite

This commit is contained in:
Simon Martens
2025-02-11 00:13:42 +01:00
parent deae787e2d
commit 0f87df8e94
13 changed files with 412 additions and 128 deletions

View File

@@ -1,6 +1,9 @@
package dbmodels
import "github.com/pocketbase/pocketbase/core"
import (
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/filesystem"
)
var _ core.RecordProxy = (*Content)(nil)
@@ -150,7 +153,7 @@ func (c *Content) Scans() []string {
return c.GetStringSlice(SCAN_FIELD)
}
func (c *Content) SetScans(scans []string) {
func (c *Content) SetScans(scans []*filesystem.File) {
c.Set(SCAN_FIELD, scans)
}

View File

@@ -411,7 +411,8 @@ var SERIES_RELATIONS = []string{
}
const (
PUBLIC_VIEW_RULE = "@request.auth.id != ''"
PUBLIC_VIEW_RULE = ""
PUBLIC_LIST_RULE = ""
PLACES_TABLE = "places"
AGENTS_TABLE = "agents"