Docs: add Project/Region/Occurrence entity docs

This commit is contained in:
karilint
2026-04-21 11:38:54 +03:00
parent 63db7c0aa8
commit 75104f0976
4 changed files with 91 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# Regions
Regions represent a named geographic region that can be associated with:
- one or more countries (`now_reg_coord_country`)
- one or more coordinators / people (`now_reg_coord_people` → `com_people`)
## Database model
The main region record is `now_reg_coord`:
- `reg_coord_id` (primary key)
- `region` (name)
Relations:
- `now_reg_coord_country` rows (composite key: `reg_coord_id` + `country`)
- `now_reg_coord_people` rows (composite key: `reg_coord_id` + `initials`)
## API endpoints
All region endpoints are admin-only:
- `GET /region/all`
- `GET /region/:id`
- `PUT /region` (create/update; returns `{ reg_coord_id }`)
- `DELETE /region/:id`