We need to create the PermissionAssignments table so that we can create, read, and update assigning particular people to a permission type/role in shared data store across hackforla.org, vrms, civictechjobs, and tables (onboarding) project.
Description
PermissionAssignments is a table with only foreign keys to User, PermissionType, Project, and Practice Area.
Reason for change
When it was just called Permissions it was hard to remember its name - permissions is ambiguous. Django also has a table called Permissions.
Action Items
[ ] identify if table has a description (see spreadsheet under Resources)
[ ] if not, reach out to PD leads
[ ] identify and document (below) what other tables are associated (see ERD under Resources)
[ ] create a single model in Django (defining schema)
[ ] Write a test for the relationships this model will have with other models (e.g., creating a user and assigning them a set of permissions on a project).
[ ] Write an API end point
[ ] write API unit tests
[ ] Document the endpoint in Swagger
Note: there is a separate issue to update documentation.
Overview
We need to create the PermissionAssignments table so that we can create, read, and update assigning particular people to a permission type/role in shared data store across hackforla.org, vrms, civictechjobs, and tables (onboarding) project.
Description
PermissionAssignments is a table with only foreign keys to User, PermissionType, Project, and Practice Area.
Reason for change
When it was just called Permissions it was hard to remember its name - permissions is ambiguous. Django also has a table called Permissions.
Action Items
Note: there is a separate issue to update documentation.
Resources/Instructions
Items to document (referenced above)
Description
Table to assign specific permission types to a user and optionally associate with project and practice area.
Associated Tables
Swagger Endpoint Link
-