feat: implement geometry CRUD operations and entity association management in SQLC and service layer
All checks were successful
Build and Release / release (push) Successful in 1m32s

This commit is contained in:
2026-05-24 18:08:25 +07:00
parent 3cdecdccec
commit ff56ba3d32
3 changed files with 80 additions and 41 deletions

View File

@@ -20,7 +20,11 @@ UPDATE geometries
SET
geo_type = COALESCE(sqlc.narg('geo_type'), geo_type),
draw_geometry = COALESCE(sqlc.narg('draw_geometry'), draw_geometry),
bound_with = COALESCE(sqlc.narg('bound_with'), bound_with),
bound_with = CASE
WHEN sqlc.narg('update_bound_with')::boolean = true THEN
sqlc.narg('bound_with')
ELSE bound_with
END,
time_start = COALESCE(sqlc.narg('time_start'), time_start),
time_end = COALESCE(sqlc.narg('time_end'), time_end),
project_id = COALESCE(sqlc.narg('project_id'), project_id),