mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
219 lines
5.6 KiB
JSON
219 lines
5.6 KiB
JSON
|
2 months ago
|
{
|
||
|
|
"db_name": "PostgreSQL",
|
||
|
|
"query": "\n SELECT i.id,\n i.kind AS \"kind!: crate::models::ChatAttachmentKind\",\n i.room_id AS \"room_id!: crate::models::RoomId\",\n i.message_id,\n i.message_created_at,\n i.filename,\n i.storage_backend,\n i.object_key,\n i.url,\n i.mime_type,\n i.size_bytes,\n i.width,\n i.height,\n i.metadata AS \"metadata!: crate::models::FileMetadata\",\n i.created_at,\n NULL::JSONB AS \"object_access?: crate::models::FileObjectAccess\",\n\n NULL::TEXT AS \"reuse_token?\",\n NULL::TIMESTAMPTZ AS \"reuse_expires_at?\"\n FROM chat_message_attachments i\n JOIN UNNEST($1::BIGINT[], $2::TIMESTAMPTZ[]) AS c(id, created_at)\n ON c.id = i.message_id\n AND c.created_at = i.message_created_at\n ORDER BY i.message_created_at, i.message_id, i.created_at\n ",
|
||
|
|
"describe": {
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"ordinal": 0,
|
||
|
|
"name": "id",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 1,
|
||
|
|
"name": "kind!: crate::models::ChatAttachmentKind",
|
||
|
|
"type_info": "Int2",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "kind"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 2,
|
||
|
|
"name": "room_id!: crate::models::RoomId",
|
||
|
|
"type_info": "Int8",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "room_id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 3,
|
||
|
|
"name": "message_id",
|
||
|
|
"type_info": "Int8",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "message_id"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 4,
|
||
|
|
"name": "message_created_at",
|
||
|
|
"type_info": "Timestamptz",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "message_created_at"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 5,
|
||
|
|
"name": "filename",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "filename"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 6,
|
||
|
|
"name": "storage_backend",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "storage_backend"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 7,
|
||
|
|
"name": "object_key",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "object_key"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 8,
|
||
|
|
"name": "url",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "url"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 9,
|
||
|
|
"name": "mime_type",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "mime_type"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 10,
|
||
|
|
"name": "size_bytes",
|
||
|
|
"type_info": "Int8",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "size_bytes"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 11,
|
||
|
|
"name": "width",
|
||
|
|
"type_info": "Int4",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "width"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 12,
|
||
|
|
"name": "height",
|
||
|
|
"type_info": "Int4",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "height"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 13,
|
||
|
|
"name": "metadata!: crate::models::FileMetadata",
|
||
|
|
"type_info": "Jsonb",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "metadata"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 14,
|
||
|
|
"name": "created_at",
|
||
|
|
"type_info": "Timestamptz",
|
||
|
|
"origin": {
|
||
|
|
"Table": {
|
||
|
|
"table": "chat_message_attachments",
|
||
|
|
"name": "created_at"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 15,
|
||
|
|
"name": "object_access?: crate::models::FileObjectAccess",
|
||
|
|
"type_info": "Jsonb",
|
||
|
|
"origin": "Expression"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 16,
|
||
|
|
"name": "reuse_token?",
|
||
|
|
"type_info": "Text",
|
||
|
|
"origin": "Expression"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 17,
|
||
|
|
"name": "reuse_expires_at?",
|
||
|
|
"type_info": "Timestamptz",
|
||
|
|
"origin": "Expression"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": {
|
||
|
|
"Left": [
|
||
|
|
"Int8Array",
|
||
|
|
"TimestamptzArray"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"nullable": [
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
true,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
null,
|
||
|
|
null,
|
||
|
|
null
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"hash": "cd5d0cfffa4fe7f5260096223ec96b5f0fa106106af18764be8fb5cd151f4076"
|
||
|
|
}
|