Overview
Implement Create, Read, Update, and Delete (CRUD) functionality for Members using the Prisma models defined in prisma/schema/auth.prisma. This should address all fields and relationships, including links to User entities.
Relevant Prisma Models
- members: Contains fields such as
id, name, role, year, and a relation to multiple User records.
- User: Contains a
memberId field relating to the members table, and each User can be associated with a member.
Tasks
Acceptance Criteria
- All CRUD endpoints for Members function as intended
- Members are stored and queried using the Prisma models
- Related users can be assigned and updated for members
- Tests cover all CRUD scenarios
- Documentation is up-to-date and accurate
Reference
See the members and User models in prisma/schema/auth.prisma.
Overview
Implement Create, Read, Update, and Delete (CRUD) functionality for Members using the Prisma models defined in
prisma/schema/auth.prisma. This should address all fields and relationships, including links to User entities.Relevant Prisma Models
id,name,role,year, and a relation to multipleUserrecords.memberIdfield relating to the members table, and each User can be associated with a member.Tasks
Acceptance Criteria
Reference
See the
membersandUsermodels inprisma/schema/auth.prisma.