1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-24 17:07:00 +02:00
pocketbase/models/log.go

20 lines
338 B
Go
Raw Normal View History

2023-11-26 13:33:17 +02:00
package models
import (
"github.com/pocketbase/pocketbase/tools/types"
)
var _ Model = (*Log)(nil)
type Log struct {
BaseModel
Data types.JsonMap `db:"data" json:"data"`
Message string `db:"message" json:"message"`
Level int `db:"level" json:"level"`
}
func (m *Log) TableName() string {
return "_logs"
}