I am developing a travel management application. The design in question is something like following :
Each person in a tour is designated as a Traveler. Each Traveler ha
I would only have two tables in the database.
Traveller and Password
Traveller will have a Parent_Id field which will link back to the Traveller table and will store who the Main/Head traveller is. Also store fields common to either Main/Sub member in this table like contact number
Then using inheritance and ORM create two different classes in your actual application. MainMember and SubMember MainMember would be all rows in Traveller where Parent_Id is null SubMember would be all rows in Traveller where Parent_Id is not null