diff options
| author | adamdottv <[email protected]> | 2025-05-09 13:37:13 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-09 13:37:13 -0500 |
| commit | f1007771997bd0401516eda87a7e0ac92f269680 (patch) | |
| tree | d26198d031516eaebcc885870b470925492d8775 /internal/db/models.go | |
| parent | f41b7bbd0a0cc731fd7c471b7ee8b26f14a21755 (diff) | |
| download | opencode-f1007771997bd0401516eda87a7e0ac92f269680.tar.gz opencode-f1007771997bd0401516eda87a7e0ac92f269680.zip | |
wip: logging improvements
Diffstat (limited to 'internal/db/models.go')
| -rw-r--r-- | internal/db/models.go | 10 |
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"` |
