From 808d6fb273d7448da40525e6f9e77f6251d7b225 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 9 Mar 2026 19:30:35 +0000 Subject: [PATCH] Add missing generated SQL file --- ...creport_image_with_json_by_water_id.bob.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 db/sql/publicreport_image_with_json_by_water_id.bob.sql diff --git a/db/sql/publicreport_image_with_json_by_water_id.bob.sql b/db/sql/publicreport_image_with_json_by_water_id.bob.sql new file mode 100644 index 00000000..5b3be486 --- /dev/null +++ b/db/sql/publicreport_image_with_json_by_water_id.bob.sql @@ -0,0 +1,18 @@ +-- Code generated by BobGen psql v0.42.5. DO NOT EDIT. +-- This file is meant to be re-generated in place and/or deleted at any time. + +-- PublicreportImageWithJSONByWaterID +SELECT + "publicreport.image"."id" AS "id", + "publicreport.image"."content_type" AS "content_type", + "publicreport.image"."created" AS "created", + "publicreport.image"."location" AS "location", + COALESCE(ST_AsGeoJSON("publicreport.image"."location"), '{}') AS "location_json", + "publicreport.image"."resolution_x" AS "resolution_x", + "publicreport.image"."resolution_y" AS "resolution_y", + "publicreport.image"."storage_uuid" AS "storage_uuid", + "publicreport.image"."storage_size" AS "storage_size", + "publicreport.image"."uploaded_filename" AS "uploaded_filename" +FROM "publicreport"."image" AS "publicreport.image" +INNER JOIN "publicreport"."water_image" AS "publicreport.water_image" ON ("publicreport.image"."id" = "publicreport.water_image"."image_id") +WHERE ("publicreport.water_image"."water_id" = $1);