Something went wrong. Try again.
the coolest token pot ever
Something went wrong. Try again.
123456789101112131415161718192021222324-- name: CreateConversation :oneINSERT INTO conversations (id, user_id, title, created_at, updated_at)VALUES (?, ?, ?, ?, ?)RETURNING *;
-- name: GetConversation :oneSELECT * FROM conversations WHERE id = ? AND user_id = ?;
-- name: ListConversationsForUser :manySELECT * FROM conversationsWHERE user_id = ? AND archived_at IS NULLORDER BY updated_at DESCLIMIT ?;
-- name: UpdateConversationTitle :execUPDATE conversations SET title = ?, updated_at = ?WHERE id = ? AND user_id = ?;
-- name: ArchiveConversation :execUPDATE conversations SET archived_at = ? WHERE id = ? AND user_id = ?;
-- name: TouchConversation :execUPDATE conversations SET updated_at = ? WHERE id = ?;