From f1007771997bd0401516eda87a7e0ac92f269680 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Fri, 9 May 2025 13:37:13 -0500 Subject: wip: logging improvements --- internal/db/models.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/db/models.go') diff --git a/internal/db/models.go b/internal/db/models.go index 47028c19a..473e18db6 100644 --- a/internal/db/models.go +++ b/internal/db/models.go @@ -18,6 +18,16 @@ type File struct { UpdatedAt int64 `json:"updated_at"` } +type Log struct { + ID string `json:"id"` + SessionID sql.NullString `json:"session_id"` + Timestamp int64 `json:"timestamp"` + Level string `json:"level"` + Message string `json:"message"` + Attributes sql.NullString `json:"attributes"` + CreatedAt int64 `json:"created_at"` +} + type Message struct { ID string `json:"id"` SessionID string `json:"session_id"` -- cgit v1.2.3