1// Code generated by sqlc. DO NOT EDIT.
2// versions:
3// sqlc v1.27.0
4
5package db
6
7import (
8 "database/sql"
9)
10
11type Message struct {
12 ID string `json:"id"`
13 SessionID string `json:"session_id"`
14 Role string `json:"role"`
15 Content string `json:"content"`
16 Thinking string `json:"thinking"`
17 Finished bool `json:"finished"`
18 ToolCalls sql.NullString `json:"tool_calls"`
19 ToolResults sql.NullString `json:"tool_results"`
20 CreatedAt int64 `json:"created_at"`
21 UpdatedAt int64 `json:"updated_at"`
22}
23
24type Session struct {
25 ID string `json:"id"`
26 ParentSessionID sql.NullString `json:"parent_session_id"`
27 Title string `json:"title"`
28 MessageCount int64 `json:"message_count"`
29 PromptTokens int64 `json:"prompt_tokens"`
30 CompletionTokens int64 `json:"completion_tokens"`
31 Cost float64 `json:"cost"`
32 UpdatedAt int64 `json:"updated_at"`
33 CreatedAt int64 `json:"created_at"`
34}