summaryrefslogtreecommitdiffhomepage
path: root/internal/db/models.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-09 13:37:13 -0500
committeradamdottv <[email protected]>2025-05-09 13:37:13 -0500
commitf1007771997bd0401516eda87a7e0ac92f269680 (patch)
treed26198d031516eaebcc885870b470925492d8775 /internal/db/models.go
parentf41b7bbd0a0cc731fd7c471b7ee8b26f14a21755 (diff)
downloadopencode-f1007771997bd0401516eda87a7e0ac92f269680.tar.gz
opencode-f1007771997bd0401516eda87a7e0ac92f269680.zip
wip: logging improvements
Diffstat (limited to 'internal/db/models.go')
-rw-r--r--internal/db/models.go10
1 files changed, 10 insertions, 0 deletions
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"`