I have users table where role is a field in it which can be student, patent, teacher and admin.
I have to insert data in student form in one page, it can be done with users whose role is set to student. Now in another page there is a form for filling out additional data such as father and mother details.
I used two objects so that I can store this father and mother information.
Now when I click on next button these id's (student_id, father_id, mother_id) should be stored in student_parents table whose fields are student_id, parent_id, relation.
In nutshell there is a student form when I fill this and click on next button I have to enter parent form after filling this form both father_id, mother_id, student_id which comes from Users should be stored in student_patents table.I am new to this.By the way I am using Graphql and Vue.js.