Adding upstream version 0.28.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
88f1d47ab6
commit
e28c88ef14
933 changed files with 194711 additions and 0 deletions
22
core/log_model.go
Normal file
22
core/log_model.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package core
|
||||
|
||||
import "github.com/pocketbase/pocketbase/tools/types"
|
||||
|
||||
var (
|
||||
_ Model = (*Log)(nil)
|
||||
)
|
||||
|
||||
const LogsTableName = "_logs"
|
||||
|
||||
type Log struct {
|
||||
BaseModel
|
||||
|
||||
Created types.DateTime `db:"created" json:"created"`
|
||||
Data types.JSONMap[any] `db:"data" json:"data"`
|
||||
Message string `db:"message" json:"message"`
|
||||
Level int `db:"level" json:"level"`
|
||||
}
|
||||
|
||||
func (m *Log) TableName() string {
|
||||
return LogsTableName
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue