Files
packager/rust/sqlx-data.json

821 lines
26 KiB
JSON
Raw Normal View History

2023-08-29 21:33:59 +02:00
{
"db": "SQLite",
"0d341935886c28710302aec9d5d085b535ad54949b87793e98cbf3bd5d828a41": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
}
],
"nullable": [
true
],
"parameters": {
"Right": 3
}
},
"query": "UPDATE inventory_items AS item\n SET\n name = ?,\n weight = ?\n WHERE item.id = ?\n RETURNING inventory_items.category_id AS id\n "
},
2023-08-29 21:34:00 +02:00
"0e8a12e168d8ff41005b2b5a1356ef5dc39339291572005e2a9278fb28113a2b": {
2023-08-29 21:33:59 +02:00
"describe": {
2023-08-29 21:33:59 +02:00
"columns": [],
"nullable": [],
2023-08-29 21:33:59 +02:00
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 2
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "INSERT INTO trips_to_trips_types\n (trip_id, trip_type_id)\n VALUES\n (?, ?)\n "
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"16c1a8c70c0778528502dcf1067f5b23d8fc8aaa6d61385b79bac4224a78d703": {
2023-08-29 21:33:59 +02:00
"describe": {
2023-08-29 21:34:00 +02:00
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "picked",
"ordinal": 1,
"type_info": "Bool"
},
{
"name": "packed",
"ordinal": 2,
"type_info": "Bool"
},
{
"name": "ready",
"ordinal": 3,
"type_info": "Bool"
},
{
"name": "new",
"ordinal": 4,
"type_info": "Bool"
},
{
"name": "name",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "description",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "weight",
"ordinal": 7,
"type_info": "Int64"
},
{
"name": "category_id",
"ordinal": 8,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false,
false,
true,
false,
false
],
2023-08-29 21:33:59 +02:00
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 2
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "\n SELECT\n t_item.item_id AS id,\n t_item.pick AS picked,\n t_item.pack AS packed,\n t_item.ready AS ready,\n t_item.new AS new,\n i_item.name AS name,\n i_item.description AS description,\n i_item.weight AS weight,\n i_item.category_id AS category_id\n FROM trips_items AS t_item\n INNER JOIN inventory_items AS i_item\n ON i_item.id = t_item.item_id\n WHERE t_item.item_id = ?\n AND t_item.trip_id = ?\n "
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:33:59 +02:00
"1994305e1521fe1f5f927ad28e21c9cab8a25598b19e1c9038dae9092fe18f1f": {
"describe": {
"columns": [
{
"name": "item_id",
"ordinal": 0,
"type_info": "Text"
}
],
"nullable": [
false
],
"parameters": {
"Right": 1
}
},
"query": "\n SELECT\n i_item.id AS item_id\n FROM inventory_items AS i_item\n LEFT JOIN (\n SELECT t_item.item_id as item_id\n FROM trips_items AS t_item\n WHERE t_item.trip_id = ?\n ) AS t_item\n ON t_item.item_id = i_item.id\n WHERE t_item.item_id IS NULL\n "
},
2023-08-29 21:34:00 +02:00
"1eb9a8fdb9412753592f48a9267c97042aeaf6691546efae894e5d34ee92f34b": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
}
],
"nullable": [
false,
false
],
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 0
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT\n id,\n name\n FROM trips_types"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"1f08e9bebf51aab9cabff2a5c79211233a686e9ef9f96ea5c036fbba8f6b06d5": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
2023-08-29 21:34:00 +02:00
},
{
"name": "active",
"ordinal": 2,
"type_info": "Int"
2023-08-29 21:33:59 +02:00
}
],
"nullable": [
2023-08-29 21:34:00 +02:00
false,
2023-08-29 21:33:59 +02:00
false,
false
],
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 1
}
},
"query": "\n SELECT\n type.id as id,\n type.name as name,\n inner.id IS NOT NULL AS active\n FROM trips_types AS type\n LEFT JOIN (\n SELECT type.id as id, type.name as name\n FROM trips as trip\n INNER JOIN trips_to_trips_types as ttt\n ON ttt.trip_id = trip.id\n INNER JOIN trips_types AS type\n ON type.id == ttt.trip_type_id\n WHERE trip.id = ?\n ) AS inner\n ON inner.id = type.id\n "
},
"259757f1bb08f0c366371202c75b8555b878290b8a5a68564ec3e8b3d8e7ed01": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 5
}
},
"query": "INSERT INTO trips\n (id, name, date_start, date_end, state)\n VALUES\n (?, ?, ?, ?, ?)"
},
"3356a9ab2f217e3daf101644667c9d84f1547e0c72ab779e2f3aebb628a78034": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "UPDATE trips\n SET state = ?\n WHERE id = ?"
},
2023-08-29 21:34:00 +02:00
"343addb4024192688590b6b1228b9fdc554e2bbcc7e7300d8ca04cc4f23087d0": {
"describe": {
"columns": [
{
"name": "category_id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "category_name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "category_description",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "trip_id",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "item_id",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "item_name",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "item_description",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "item_weight",
"ordinal": 7,
"type_info": "Int64"
},
{
"name": "item_is_picked",
"ordinal": 8,
"type_info": "Bool"
},
{
"name": "item_is_packed",
"ordinal": 9,
"type_info": "Bool"
},
{
"name": "item_is_ready",
"ordinal": 10,
"type_info": "Bool"
},
{
"name": "item_is_new",
"ordinal": 11,
"type_info": "Bool"
}
],
"nullable": [
false,
false,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true
],
"parameters": {
"Right": 2
}
},
"query": "\n SELECT\n category.id as category_id,\n category.name as category_name,\n category.description AS category_description,\n inner.trip_id AS trip_id,\n inner.item_id AS item_id,\n inner.item_name AS item_name,\n inner.item_description AS item_description,\n inner.item_weight AS item_weight,\n inner.item_is_picked AS item_is_picked,\n inner.item_is_packed AS item_is_packed,\n inner.item_is_ready AS item_is_ready,\n inner.item_is_new AS item_is_new\n FROM inventory_items_categories AS category\n LEFT JOIN (\n SELECT\n trip.trip_id AS trip_id,\n category.id as category_id,\n category.name as category_name,\n category.description as category_description,\n item.id as item_id,\n item.name as item_name,\n item.description as item_description,\n item.weight as item_weight,\n trip.pick as item_is_picked,\n trip.pack as item_is_packed,\n trip.ready as item_is_ready,\n trip.new as item_is_new\n FROM trips_items as trip\n INNER JOIN inventory_items as item\n ON item.id = trip.item_id\n INNER JOIN inventory_items_categories as category\n ON category.id = item.category_id\n WHERE trip.trip_id = ?\n ) AS inner\n ON inner.category_id = category.id\n WHERE category.id = ?\n "
},
2023-08-29 21:34:00 +02:00
"452cb08b3b46bda9cb62d390d9f518d97626270a26465e55793b0a4b05432e50": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 1
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "DELETE FROM inventory_items\n WHERE id = ?"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"5fd2b986fcaafe93e816f9ed665b6319d120a3987dc5adca1e3c8634203f7533": {
"describe": {
"columns": [
{
"name": "weight",
"ordinal": 0,
"type_info": "Int"
}
],
"nullable": [
true
],
"parameters": {
"Right": 1
}
},
"query": "\n SELECT COALESCE(MAX(i_item.weight), 0) as weight\n FROM inventory_items_categories as category\n INNER JOIN inventory_items as i_item\n ON i_item.category_id = category.id\n WHERE category_id = ?\n "
},
2023-08-29 21:34:00 +02:00
"629f34ef9bd0afa39123758cc182468edb7475f6c08cb4b5febb3ce931f2b547": {
2023-08-29 21:33:59 +02:00
"describe": {
2023-08-29 21:34:00 +02:00
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "description",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "weight",
"ordinal": 3,
"type_info": "Int64"
},
{
"name": "category_id",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "category_name",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "category_description",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "product_id",
"ordinal": 7,
"type_info": "Text"
},
{
"name": "product_name",
"ordinal": 8,
"type_info": "Text"
},
{
"name": "product_description",
"ordinal": 9,
"type_info": "Text"
},
{
"name": "product_comment",
"ordinal": 10,
"type_info": "Text"
}
],
"nullable": [
false,
false,
true,
false,
false,
false,
true,
true,
true,
true,
true
],
2023-08-29 21:33:59 +02:00
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 1
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT\n item.id AS id,\n item.name AS name,\n item.description AS description,\n weight,\n category.id AS category_id,\n category.name AS category_name,\n category.description AS category_description,\n product.id AS product_id,\n product.name AS product_name,\n product.description AS product_description,\n product.comment AS product_comment\n FROM inventory_items AS item\n INNER JOIN inventory_items_categories as category\n ON item.category_id = category.id\n LEFT JOIN inventory_products AS product\n ON item.product_id = product.id\n WHERE item.id = ?"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"68f936e138283635c5e7bde3313f036aae4167143200ea20fb89e1e99ada9ad1": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
"query": "INSERT INTO inventory_items_categories\n (id, name)\n VALUES\n (?, ?)"
},
2023-08-29 21:33:59 +02:00
"6973cceeb5499216475136b320b25e1355974e1213829d931abdd6b7a1448a87": {
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "weight",
"ordinal": 2,
"type_info": "Int64"
},
{
"name": "description",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "category_id",
"ordinal": 4,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
true,
false
],
"parameters": {
"Right": 1
}
},
"query": "SELECT\n id,\n name,\n weight,\n description,\n category_id\n FROM inventory_items\n WHERE category_id = ?"
},
2023-08-29 21:34:00 +02:00
"6df16058d577c24a2aaaae71b2c3fd94ddf24e1ced343f3ea20872f0692a9ada": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "date_start",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "date_end",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "state",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "location",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "temp_min",
"ordinal": 6,
"type_info": "Int64"
},
{
"name": "temp_max",
"ordinal": 7,
"type_info": "Int64"
},
{
"name": "comment",
"ordinal": 8,
"type_info": "Text"
}
],
"nullable": [
false,
false,
false,
false,
false,
true,
true,
true,
true
],
"parameters": {
"Right": 0
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT\n id,\n name,\n CAST (date_start AS TEXT) date_start,\n CAST (date_end AS TEXT) date_end,\n state,\n location,\n temp_min,\n temp_max,\n comment\n FROM trips"
},
2023-08-29 21:34:00 +02:00
"82395724cd85d8b57ce50a64f49386435fbebc83f18db53ab8650b29414e40fb": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
2023-08-29 21:34:00 +02:00
"query": "DELETE FROM trips_to_trips_types AS ttt\n WHERE ttt.trip_id = ?\n AND ttt.trip_type_id = ?\n "
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"86eb9fd598fbbb50b32ea7eae3151bfd8a83639c8b70301f5d5aeef19ae9462c": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 6
}
},
"query": "\n INSERT INTO trips_items\n (\n item_id,\n trip_id,\n pick,\n pack,\n ready,\n new\n )\n VALUES (?, ?, ?, ?, ?, ?)\n "
},
2023-08-29 21:34:00 +02:00
"918fc9cf50097d4210b212255ef49335ebedbe81002ce9a418b4dab4fbb29aa3": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
}
],
"nullable": [
2023-08-29 21:34:00 +02:00
false
2023-08-29 21:33:59 +02:00
],
"parameters": {
"Right": 1
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT id\n FROM inventory_items\n WHERE name = ?"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"92ca05be21a4c05bf26f8a1655bbb8d9f1ece322abff5395ecacde3f6e28fdf7": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [],
"nullable": [],
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 2
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "UPDATE trips_types\n SET name = ?\n WHERE id = ?"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"999fe09a6a095ac0ee7b3e3c38a6f2008641e03f9344f31bf9f8eb16a47403da": {
2023-08-29 21:34:00 +02:00
"describe": {
"columns": [
{
2023-08-29 21:34:00 +02:00
"name": "id",
2023-08-29 21:34:00 +02:00
"ordinal": 0,
2023-08-29 21:34:00 +02:00
"type_info": "Text"
},
{
"name": "name",
"ordinal": 1,
"type_info": "Text"
},
{
2023-08-29 21:34:00 +02:00
"name": "date_start",
2023-08-29 21:34:00 +02:00
"ordinal": 2,
"type_info": "Text"
2023-08-29 21:34:00 +02:00
},
{
"name": "date_end",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "state",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "location",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "temp_min",
"ordinal": 6,
"type_info": "Int64"
},
{
"name": "temp_max",
"ordinal": 7,
"type_info": "Int64"
},
{
"name": "comment",
"ordinal": 8,
"type_info": "Text"
2023-08-29 21:34:00 +02:00
}
],
"nullable": [
2023-08-29 21:34:00 +02:00
false,
false,
2023-08-29 21:34:00 +02:00
false,
false,
false,
true,
true,
true,
2023-08-29 21:34:00 +02:00
true
],
"parameters": {
"Right": 1
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT\n id,\n name,\n CAST (date_start AS TEXT) date_start,\n CAST (date_end AS TEXT) date_end,\n state,\n location,\n temp_min,\n temp_max,\n comment\n FROM trips\n WHERE id = ?"
2023-08-29 21:34:00 +02:00
},
2023-08-29 21:34:00 +02:00
"a417bf136b8f79339a21fda10518c781d0d2bfc8c3fc99353d1956dfad9f5ac8": {
2023-08-29 21:33:59 +02:00
"describe": {
2023-08-29 21:34:00 +02:00
"columns": [
{
"name": "category_id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "category_name",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "category_description",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "trip_id",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "item_id",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "item_name",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "item_description",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "item_weight",
"ordinal": 7,
"type_info": "Int64"
},
{
"name": "item_is_picked",
"ordinal": 8,
"type_info": "Bool"
},
{
"name": "item_is_packed",
"ordinal": 9,
"type_info": "Bool"
},
{
2023-08-29 21:34:00 +02:00
"name": "item_is_ready",
2023-08-29 21:34:00 +02:00
"ordinal": 10,
"type_info": "Bool"
2023-08-29 21:34:00 +02:00
},
{
"name": "item_is_new",
"ordinal": 11,
"type_info": "Bool"
2023-08-29 21:34:00 +02:00
}
],
"nullable": [
false,
false,
true,
true,
true,
true,
true,
true,
true,
true,
2023-08-29 21:34:00 +02:00
true,
2023-08-29 21:34:00 +02:00
true
],
2023-08-29 21:33:59 +02:00
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 1
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "\n SELECT\n category.id as category_id,\n category.name as category_name,\n category.description AS category_description,\n inner.trip_id AS trip_id,\n inner.item_id AS item_id,\n inner.item_name AS item_name,\n inner.item_description AS item_description,\n inner.item_weight AS item_weight,\n inner.item_is_picked AS item_is_picked,\n inner.item_is_packed AS item_is_packed,\n inner.item_is_ready AS item_is_ready,\n inner.item_is_new AS item_is_new\n FROM inventory_items_categories AS category\n LEFT JOIN (\n SELECT\n trip.trip_id AS trip_id,\n category.id as category_id,\n category.name as category_name,\n category.description as category_description,\n item.id as item_id,\n item.name as item_name,\n item.description as item_description,\n item.weight as item_weight,\n trip.pick as item_is_picked,\n trip.pack as item_is_packed,\n trip.ready as item_is_ready,\n trip.new as item_is_new\n FROM trips_items as trip\n INNER JOIN inventory_items as item\n ON item.id = trip.item_id\n INNER JOIN inventory_items_categories as category\n ON category.id = item.category_id\n WHERE trip.trip_id = ?\n ) AS inner\n ON inner.category_id = category.id\n "
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"a5cdb8a6d5850326815efd460c0b42dda02a4ea32713ec89beceb38cd24321d5": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 2
}
},
2023-08-29 21:34:00 +02:00
"query": "UPDATE trips\n SET comment = ?\n WHERE id = ?"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"a81bcbeb11260e3b4363e19c26b71b489e326b08bfacb6e11b4c4fc068dc7806": {
2023-08-29 21:33:59 +02:00
"describe": {
"columns": [
{
2023-08-29 21:34:00 +02:00
"name": "id",
2023-08-29 21:33:59 +02:00
"ordinal": 0,
"type_info": "Text"
},
{
2023-08-29 21:34:00 +02:00
"name": "name",
2023-08-29 21:33:59 +02:00
"ordinal": 1,
"type_info": "Text"
},
{
2023-08-29 21:34:00 +02:00
"name": "description",
2023-08-29 21:33:59 +02:00
"ordinal": 2,
"type_info": "Text"
}
],
"nullable": [
false,
false,
true
],
"parameters": {
2023-08-29 21:34:00 +02:00
"Right": 0
2023-08-29 21:33:59 +02:00
}
},
2023-08-29 21:34:00 +02:00
"query": "SELECT id,name,description FROM inventory_items_categories"
2023-08-29 21:33:59 +02:00
},
2023-08-29 21:34:00 +02:00
"cc1ad49669cff7f89975abfab3d0a8caef2e3978c826e1877db91c05a7f9d00d": {
2023-08-29 21:34:00 +02:00
"describe": {
"columns": [
{
"name": "id",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "name",
2023-08-29 21:34:00 +02:00
"ordinal": 1,
2023-08-29 21:34:00 +02:00
"type_info": "Text"
},
{
"name": "description",
2023-08-29 21:34:00 +02:00
"ordinal": 2,
2023-08-29 21:34:00 +02:00
"type_info": "Text"
}
],
"nullable": [
false,
false,
2023-08-29 21:34:00 +02:00
true
2023-08-29 21:34:00 +02:00
],
2023-08-29 21:34:00 +02:00
"parameters": {
"Right": 1
}
},
"query": "SELECT\n id,\n name,\n description\n FROM inventory_items_categories AS category\n WHERE category.id = ?"
},
"cc70d7a392a0283fec1896acba805f5c2a527537b8faa22d1c69306017b9c465": {
"describe": {
"columns": [
{
"name": "total_weight",
"ordinal": 0,
"type_info": "Int"
}
],
"nullable": [
true
],
"parameters": {
"Right": 1
}
},
"query": "\n SELECT\n CAST(IFNULL(SUM(i_item.weight), 0) AS INTEGER) AS total_weight\n FROM trips AS trip\n INNER JOIN trips_items AS t_item\n ON t_item.trip_id = trip.id\n INNER JOIN inventory_items AS i_item\n ON t_item.item_id = i_item.id\n WHERE\n trip.id = ?\n AND t_item.pick = true\n "
},
"d7c6ae3c6e00c6c99b0bedee87ff237b01007e7001584c82ae896b91833b807b": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Right": 5
}
},
"query": "INSERT INTO inventory_items\n (id, name, description, weight, category_id)\n VALUES\n (?, ?, ?, ?, ?)"
},
"ded3be1c8894a64e3b5f749461db7261d9224abb8a54da980db8262733d08205": {
"describe": {
"columns": [],
"nullable": [],
2023-08-29 21:34:00 +02:00
"parameters": {
"Right": 2
}
},
2023-08-29 21:34:00 +02:00
"query": "INSERT INTO trips_types\n (id, name)\n VALUES\n (?, ?)"
2023-08-29 21:34:00 +02:00
},
"f9d080a5b8710c7d6a497bb1f5cf4839ad1589fd7d6a06d3faf1163d6981d8a0": {
"describe": {
"columns": [
{
"name": "weight",
"ordinal": 0,
"type_info": "Int"
}
],
"nullable": [
true
],
"parameters": {
"Right": 1
}
},
"query": "\n SELECT COALESCE(SUM(i_item.weight), 0) as weight\n FROM inventory_items_categories as category\n INNER JOIN inventory_items as i_item\n ON i_item.category_id = category.id\n INNER JOIN trips_items as t_item\n ON i_item.id = t_item.item_id\n WHERE category_id = ?\n AND t_item.pick = 1\n "
2023-08-29 21:33:59 +02:00
}
}