new places

This commit is contained in:
Simon Martens
2026-01-09 14:45:11 +01:00
parent 8903da2350
commit 80c28eca4e
15 changed files with 1028 additions and 137 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/types"
)
var _ core.RecordProxy = (*Place)(nil)
@@ -89,3 +92,7 @@ func (p *Place) Editor() string {
func (p *Place) SetEditor(editor string) {
p.Set(EDITOR_FIELD, editor)
}
func (p *Place) Updated() types.DateTime {
return p.GetDateTime(UPDATED_FIELD)
}