Hi,
this is not about business model data but technical thing - how to solve this.
But maybe i am not understanding a purpose to use junction table here.
I can have multiple pairs: Customers, Machines and Tasks.
In different combinations.
My model is in attachment.
For each customer-machine-task we can have certain documents.
I create Form to input data with comboboxes.
When i want to skip one of nullable FK - there is an error like in attachment.
What are yours ways to solve the problem?
Assume that for every Customer and his Task - we can have also machine to help doing the job (like computer, or laptop - whatever). But sometimes Customer will do his task without access to Machine - so this field should be empty (maybe employer will buy him machine later, or he will not get any machine at all).
Please help Guys,
Best,
Jacek
this is not about business model data but technical thing - how to solve this.
But maybe i am not understanding a purpose to use junction table here.
I can have multiple pairs: Customers, Machines and Tasks.
In different combinations.
My model is in attachment.
For each customer-machine-task we can have certain documents.
I create Form to input data with comboboxes.
When i want to skip one of nullable FK - there is an error like in attachment.
What are yours ways to solve the problem?
Assume that for every Customer and his Task - we can have also machine to help doing the job (like computer, or laptop - whatever). But sometimes Customer will do his task without access to Machine - so this field should be empty (maybe employer will buy him machine later, or he will not get any machine at all).
Please help Guys,
Best,
Jacek