To set up a lease, I have two tables.
The first one is the contract, it has some relationship fields like id_locador
, id_locatario
, id_fiador1
, id_fiador2
, among others. These fields are related to a people table: id
, nome
, endereco
, etc.
So all the people involved in the contract come from the same "people" table.
How to make this relationship?