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.5 KiB
JSON
219 lines
5.5 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT id AS \"id!\",\n kind AS \"kind!: ChatAttachmentKind\",\n room_id AS \"room_id!: RoomId\",\n message_id AS \"message_id!\",\n message_created_at AS \"message_created_at!\",\n filename,\n storage_backend AS \"storage_backend!\",\n object_key AS \"object_key!\",\n url,\n mime_type,\n size_bytes,\n width,\n height,\n metadata AS \"metadata!: crate::models::FileMetadata\",\n created_at AS \"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\n WHERE message_id = $1 AND message_created_at = $2\n ORDER BY created_at ASC, id ASC\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id!",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "chat_message_attachments",
|
|
"name": "id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "kind!: ChatAttachmentKind",
|
|
"type_info": "Int2",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "chat_message_attachments",
|
|
"name": "kind"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "room_id!: 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": [
|
|
"Int8",
|
|
"Timestamptz"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
null,
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "98f7b96d0958c91cc2ba82f481fcbf0e58ce362ce0f5f8ad7a6ac9aa20ce56db"
|
|
}
|