Where is the DB relationship between definitions/websched and appointmenttype?
-
- Posts: 110
- Joined: Wed Apr 06, 2022 12:04 pm
Where is the DB relationship between definitions/websched and appointmenttype?
A FK relationship doesn't seem to exist on either the definition or appointmenttype table.
Re: Where is the DB relationship between definitions/websched and appointmenttype?
We use the deflink table to link objects to definitions. https://www.opendental.com/OpenDentalDo ... in#deflink
- jordansparks
- Site Admin
- Posts: 5758
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Where is the DB relationship between definitions/websched and appointmenttype?
I just added this to our schema under definition.DefCat enum:
Each appointment can be assigned one appointment.AppointmentTypeNum. Multiple AppointmentTypes are linked to this definition through the DefLink table, where deflink.DefNum=definition.DefNum, deflink.LinkType=2, and deflink.FKey=appointmenttype.AppointmentTypeNum.
Each appointment can be assigned one appointment.AppointmentTypeNum. Multiple AppointmentTypes are linked to this definition through the DefLink table, where deflink.DefNum=definition.DefNum, deflink.LinkType=2, and deflink.FKey=appointmenttype.AppointmentTypeNum.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
-
- Posts: 110
- Joined: Wed Apr 06, 2022 12:04 pm