php - How to setup relationships in contact Database -
i embarking on new venture learn php , mysql. have done simple databases in past using access, 1 web-centric database tracking myriad of data including contacts , project information. need link various tables in various relationships, , not sure best way that. since starting out php/mysql researching online sources learning as possible. if has recommendations on books or websites, appreciate it.
in setting tables, 1 major area concerned contacts. have variety of contacts include: employees, clients, vendors, subcontractors, etc.. , single contact can multiple types , each type have various additional fields pertain them. thought have 1 contacts table links other tables various contact types. i'm not sure field type or setup of table options best... thoughts?
this scenario play out in other areas of database projects , products.
any pointers/direction appreciated.
wes
are familiar object oriented design.
in rdbms, such mysql, design database follows:
- contacts (first name, last names, etc)
- employees
- vendors
- clients
- etc
your tables extend contacts hold specific data contact_id column, creates relationship.
as aside, nosql solutions solve problem natively don't have rigid schema. meaning save various data each record.
Comments
Post a Comment