Amenity Groups
Groups that categorise property amenities (e.g. Kitchen, Bathroom). Backed by the amenity_groups table. Groups own many property_amenities rows and are soft-deleted (the active flag is flipped rather than the row removed).
📄️ List all active amenity groups
Returns every group with `active = true`, ordered by name. Soft-deleted groups are excluded. There is no pagination — cardinality is small (dozens, not thousands).
📄️ Create an amenity group
Inserts a new group. `active` defaults to `true` on the server side. `name` is expected to be unique within active groups (enforced at the DB level).
📄️ Get an amenity group by id
Returns a single amenity group. Also returns 404 for soft-deleted rows.
📄️ Update an amenity group
Updates `name` and `description` on an existing group. Does not touch the `active` flag (use DELETE to soft-delete).
📄️ Soft-delete an amenity group
Flips `active` to `false`. The row is preserved so historical `property_amenities` still resolve their group. Amenities inside the group are NOT cascaded — soft-delete them explicitly via /property-amenities/{id} if required.