Rename peoples to people
Rename people/peoples to person/people
hi @SachaProbo, could you provide more details on what exactly needs to be renamed and in which parts of the project?
Hello,
In the code (and in the PG database), we currently use people as the singular and peoples as the plural. However, people is already plural (while peoples has a different meaning).
We should switch to using person as the singular and people as the plural.
We’ll need to update the following:
- Rename the table (peoples) via a migration
- Use the new table name in PG query
- Update the coredata/probo/types packages in Go
- Adjust the GraphQL queries and mutations (breaking API changes are acceptable for now)
- Update the front end (the correct names are already displayed to users)
Search the entire codebase for the term “peoples”. Replace it with “people” or “person” depending on context: Use “person” for singular entities (e.g., person_id, Person struct). Use “people” for plural collections (e.g., people_list, /api/people). Update: API routes and request/response fields Database table or column names Backend structs, variables, and functions Frontend components and labels Run tests and migrations if database schema changes. This ensures consistent and grammatically correct naming across all layers of the project.