Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to update Prisma model #11

Open
yourvivian opened this issue Apr 12, 2024 · 0 comments
Open

Need to update Prisma model #11

yourvivian opened this issue Apr 12, 2024 · 0 comments

Comments

@yourvivian
Copy link
Collaborator

Potentially updating schema.prisma

  • A trip has many activities, so we should reflect that relationship here. You may find this helpful
  • When we delete a trip or modify it, we need to ensure that all the relationships are properly updated.
  • For a 1-to-many relationship, deleting a trip means that all associated activities should be deleted. The native way to do it using Prisma is with referential action
  • This means that if you allow PUT /trips/:id to modify activities and participants, you should check whether the relationship is consistent after the API call.

Originally posted by @nickbar01234 in #7 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant