diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-03 15:20:15 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-03 17:23:41 +0200 |
| commit | cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0 (patch) | |
| tree | a822bfde1463a7080c0ea06dd17796d7a1617d3d /internal/db/models.go | |
| parent | afd9ad0560d76c2a6d161dad52553b10ff428905 (diff) | |
| download | opencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.tar.gz opencode-cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0.zip | |
add initial lsp support
Diffstat (limited to 'internal/db/models.go')
| -rw-r--r-- | internal/db/models.go | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/internal/db/models.go b/internal/db/models.go index fc3140a13..1ad8607a9 100644 --- a/internal/db/models.go +++ b/internal/db/models.go @@ -9,16 +9,12 @@ import ( ) type Message struct { - ID string `json:"id"` - SessionID string `json:"session_id"` - Role string `json:"role"` - Content string `json:"content"` - Thinking string `json:"thinking"` - Finished bool `json:"finished"` - ToolCalls sql.NullString `json:"tool_calls"` - ToolResults sql.NullString `json:"tool_results"` - CreatedAt int64 `json:"created_at"` - UpdatedAt int64 `json:"updated_at"` + ID string `json:"id"` + SessionID string `json:"session_id"` + Role string `json:"role"` + Parts string `json:"parts"` + CreatedAt int64 `json:"created_at"` + UpdatedAt int64 `json:"updated_at"` } type Session struct { |
