This is extremely useful for testing. In order to do this I needed to actually deploy the migration to a bob fork so I could start to add support for behaviors I really want. Specifically the ability to search for ids in a slice.
18 lines
284 B
SQL
18 lines
284 B
SQL
-- TextsBySenders
|
|
SELECT
|
|
id,
|
|
content,
|
|
created,
|
|
source,
|
|
destination,
|
|
is_visible_to_llm,
|
|
is_welcome,
|
|
origin
|
|
FROM
|
|
comms.text_log
|
|
WHERE
|
|
(source = $1 AND destination = $2)
|
|
OR
|
|
(source = $2 AND destination = $1)
|
|
ORDER BY
|
|
created ASC;
|