just wanting to ask for advice on the best table layout where customers & suppliers could be both a company or an individual person, with some of the individuals working for a company who is also a customer/supplier?
my thought was to have
table - individual
columns - bog standard details (name, address, etc)
table - company
columns - bog standard details (name, address, etc)
table - individual_company_link
columns - individual_id, company_id
table - product sale
columns - product_id, type, buyer_id
type would be C or I - company or individual
buyer_id - either a reference to the company id or individual id
would anyone recommend a different setup?
my thought was to have
table - individual
columns - bog standard details (name, address, etc)
table - company
columns - bog standard details (name, address, etc)
table - individual_company_link
columns - individual_id, company_id
table - product sale
columns - product_id, type, buyer_id
type would be C or I - company or individual
buyer_id - either a reference to the company id or individual id
would anyone recommend a different setup?