Files
vibe-kanban/crates/db/.sqlx/query-fb0d69b33ac38ec0b1c818e60269214cdbeaa25e4f892c45cf0a3c22f0f9341a.json
Gabriel Gordon-Hall d55b7165f2 feat: upload images to tasks (#500)
* upload images to tasks

* dislpay image path as markdown; remove redundant code; add cleanup

* support svg

* remove unused

* copy images into worktree directories

* shared

* address review

* fmt
2025-08-20 11:54:32 +01:00

63 lines
1.7 KiB
JSON

{
"db_name": "SQLite",
"query": "SELECT i.id as \"id!: Uuid\",\n i.file_path as \"file_path!\",\n i.original_name as \"original_name!\",\n i.mime_type,\n i.size_bytes as \"size_bytes!\",\n i.hash as \"hash!\",\n i.created_at as \"created_at!: DateTime<Utc>\",\n i.updated_at as \"updated_at!: DateTime<Utc>\"\n FROM images i\n JOIN task_images ti ON i.id = ti.image_id\n WHERE ti.task_id = $1\n ORDER BY ti.created_at",
"describe": {
"columns": [
{
"name": "id!: Uuid",
"ordinal": 0,
"type_info": "Blob"
},
{
"name": "file_path!",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "original_name!",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "mime_type",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "size_bytes!",
"ordinal": 4,
"type_info": "Integer"
},
{
"name": "hash!",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "created_at!: DateTime<Utc>",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "updated_at!: DateTime<Utc>",
"ordinal": 7,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
true,
false,
false,
true,
true,
false,
false,
false
]
},
"hash": "fb0d69b33ac38ec0b1c818e60269214cdbeaa25e4f892c45cf0a3c22f0f9341a"
}