opencode/internal/db/models.go

31 lines
848 B
Go
Raw Normal View History

2025-03-24 02:19:08 +08:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.27.0
package db
2025-03-28 05:35:48 +08:00
import (
"database/sql"
)
2025-03-24 05:25:31 +08:00
type Message struct {
2025-04-03 21:20:15 +08:00
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"`
2025-03-24 05:25:31 +08:00
}
2025-03-24 02:19:08 +08:00
type Session struct {
2025-03-28 05:35:48 +08: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-24 02:19:08 +08:00
}