SuperCoder/internal/db/models.go

35 lines
1.1 KiB
Go
Raw Normal View History

2025-03-23 19:19:08 +01:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.27.0
package db
2025-03-27 22:35:48 +01:00
import (
"database/sql"
)
2025-03-23 22:25:31 +01:00
type Message struct {
2025-03-27 22:35:48 +01:00
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"`
2025-03-23 22:25:31 +01:00
}
2025-03-23 19:19:08 +01:00
type Session struct {
2025-03-27 22:35:48 +01:00
ID string `json:"id"`
ParentSessionID sql.NullString `json:"parent_session_id"`
Title string `json:"title"`
MessageCount int64 `json:"message_count"`
PromptTokens int64 `json:"prompt_tokens"`
CompletionTokens int64 `json:"completion_tokens"`
Cost float64 `json:"cost"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt int64 `json:"created_at"`
2025-03-23 19:19:08 +01:00
}