mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
670 B
670 B
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_countryrows (composite key:reg_coord_id+country)now_reg_coord_peoplerows (composite key:reg_coord_id+initials)
API endpoints
All region endpoints are admin-only:
GET /region/allGET /region/:idPUT /region(create/update; returns{ reg_coord_id })DELETE /region/:id