Closed MarkyAaronYoung closed 4 years ago
So can each event have > 1 of the child entities? If so I think you'll have to do a join table 🤔
also not sure what this finances table does for you here if each event only has one of each thing. couldn't you just get the one of each thing and add together the price
? I think what you might want is something like
column | type |
---|---|
eventId | string |
thingId | string |
thingType | string |
where thingId
is the foodId and thingType
is foods
(so you could use that to fetch ${baseUrl}\${thingType}\${thingId}.json
or somesuch. That's just me noodling though...you'll need to think through that and figure out if it's gonna work for your requirements or not
also: thingId
and thingType
are terrible names. Please, for the love of everything, come up with better ones if you need to go that direction
do y'all have an updated ERD with join tables?
so are you going to have > 1 souvenir, food, show, and staff for each event?