mirror of
https://github.com/pocketbase/pocketbase.git
synced 2024-12-04 19:45:30 +02:00
23 lines
329 B
Go
23 lines
329 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"github.com/pocketbase/pocketbase/tools/types"
|
||
|
)
|
||
|
|
||
|
var _ Model = (*Param)(nil)
|
||
|
|
||
|
const (
|
||
|
ParamAppSettings = "settings"
|
||
|
)
|
||
|
|
||
|
type Param struct {
|
||
|
BaseModel
|
||
|
|
||
|
Key string `db:"key" json:"key"`
|
||
|
Value types.JsonRaw `db:"value" json:"value"`
|
||
|
}
|
||
|
|
||
|
func (m *Param) TableName() string {
|
||
|
return "_params"
|
||
|
}
|