mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-03 18:22:57 +00:00
35 lines
1.2 KiB
Go
35 lines
1.2 KiB
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/datatypes"
|
|
)
|
|
|
|
type ErrorEvent struct {
|
|
ID uint `gorm:"primarykey" json:"id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
Origin string `json:"origin"`
|
|
Language string `json:"language"`
|
|
Severity string `json:"severity"`
|
|
Message string `json:"message"`
|
|
Stack string `json:"stack"`
|
|
Component string `json:"component"`
|
|
File string `json:"file"`
|
|
Line int `json:"line"`
|
|
Column int `json:"column"`
|
|
URL string `json:"url"`
|
|
Method string `json:"method"`
|
|
Status int `json:"status"`
|
|
RequestID string `json:"request_id"`
|
|
UserID *uint `json:"user_id"`
|
|
SessionToken string `json:"session_token"`
|
|
Tags datatypes.JSON `json:"tags" gorm:"type:jsonb"`
|
|
Context datatypes.JSON `json:"context" gorm:"type:jsonb"`
|
|
Env string `json:"env"`
|
|
Version string `json:"version"`
|
|
Hostname string `json:"hostname"`
|
|
OccurredAt time.Time `json:"occurred_at"`
|
|
}
|