mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 18:52:56 +00:00
dev day #89
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user