How to refine seed data using `with` clause in drizzle seed
I have a table called
Here's what I have:
And here's what I want (but don't see that I can actually accomplish):
As you can see, I want to have a pre-defined set of exercises that are randomly chosen from and tied to each workout. So, what's the solution to making this happen?
workout that has a one-to-many relationship to another table called exercise (i.e one workout has many exercises associated with it). Now, when I try to seed some workouts, I want to be able to seed each workout with multiple exercises. I want to be able to refine what parameters are allowed for the nested exercises, but I see no way to do that.Here's what I have:
And here's what I want (but don't see that I can actually accomplish):
As you can see, I want to have a pre-defined set of exercises that are randomly chosen from and tied to each workout. So, what's the solution to making this happen?