mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
908 B
908 B
Projects
Projects are used to group data entries under a shared “project” (for example, a locality can be linked to one or more projects).
Database model
The main project record is now_proj:
pid(primary key)proj_code(short code)proj_name(display name)proj_statuscontact(links to a person bycom_people.initials)
Relations that are commonly included in detail payloads:
now_proj_people: coordinators / people attached to the project (now_proj_people.initials→com_people.initials)
Localities are linked to projects via now_plr (composite key: lid + pid).
API endpoints
GET /project/all(authenticated): list projects visible to the current userGET /project/:id(admin): project detailsPOST /projects(admin): create a projectPUT /projects/:id(admin): update a projectDELETE /project/:id(admin): delete a project