1
good morning!
I have the following problem in user, form and group relationships. In the way that the relationship (CONTEM) was modeled, it will become a table where it will have the user keys, form and group.BUT IF I DO NOT HAVE THE FORM REGISTERED IN THE SYSTEM (HAVING THE USER AND GROUP KEYS), REGARDING FK WHAT WOULD COME OF FORM? BECAUSE THE FORM KEY GOES AS A FOREIGN KEY TO THE TABLE (CONTAINS) BECAUSE THE RELATIONSHIP IS N N.
is pq this relation contains will turn a table and the form key cannot be null in this table !! Error! because besides FK it is primary
– thiago
Got it. In case you are setting a requirement. In this case you will need to create the form. By modeling you will need to create the form before filling the "CONTEM". If in your application the form is created at a different time from other entities, I suggest you reformulate your model. The model, as beautiful as it is, needs to meet the business and not the business to meet the data model.
– anderson macedo