potluck | Citrusbyte vagrant/server provisioning | Infrastructure Automation library
kandi X-RAY | potluck Summary
kandi X-RAY | potluck Summary
Citrusbyte server provisioning + deployment repository. Potluck is a collection of Chef cookbooks & Capistrano recipes we use at Citrusbyte primarily for provisioning and managing development environments within virtual machines managed w/ Vagrant.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of potluck
potluck Key Features
potluck Examples and Code Snippets
Community Discussions
Trending Discussions on potluck
QUESTION
Let's say I am building a potluck organizing app. I have a join table tracking Participants and Events (MTM), I also have a Dishes table with dishes that are unique and associated to each Participant (OTM). Participants will sign up to events and agree to bring one or more of their Dishes.
The ParticipantEvents join table will track the RSVP but what is the best way to track which dishes the Participant is contributing to that Event?
Should I create a join table between the Dishes and the Events? Should I create a join table between the ParticipantEvents join table and the Dishes table (ParticipantEventsDishes)? Is there a better way?
...ANSWER
Answered 2018-Apr-19 at 10:15The case looks like a three way (ternary) relationship to me. So I would create a three way join table, with three foreign keys.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install potluck
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page