Files
musenalm/dbmodels/settings.go
Simon Martens 82c3c9c1e3 +FTS5 Rebuild
2026-01-30 16:22:19 +01:00

24 lines
379 B
Go

package dbmodels
import "github.com/pocketbase/pocketbase/core"
type Setting struct {
core.BaseRecordProxy
}
func (s *Setting) Key() string {
return s.GetString(KEY_FIELD)
}
func (s *Setting) SetKey(key string) {
s.Set(KEY_FIELD, key)
}
func (s *Setting) Value() any {
return s.GetRaw(VALUE_FIELD)
}
func (s *Setting) SetValue(value any) {
s.Set(VALUE_FIELD, value)
}