When I query the MySql data base I can see the record added in the customer_details table.
1. save employee details and persist data in contact_details table
2. search by phone_number and list the details(either customer or employee) of the related phone number
3. search by employee_id or customer_id and get customer/employee + contact details back
How could i map my model to start with?
Could anyone help me with the queries, please?