Conversation
Conversations Table
Column
Type
Description
SELECT
_id AS conversation_id,
user_id,
service_id,
created_at,
is_finished
FROM conversations
WHERE is_finished = false
AND created_at >= CURRENT_DATE - INTERVAL '7 days'
ORDER BY created_at DESC;Messages Table
Column
Type
Description
SELECT
conversation_id,
sender,
message_type,
content,
created_at
FROM messages
WHERE conversation_id = 'conv-123'
ORDER BY created_at ASC;Memories Table
Column
Type
Description
Last updated
Was this helpful?

