Description

The Account Schema is the logical relationship between tables in a Control database that deal with Customers and Contacts.

linked on Account.ID = AccountContact.AccountID

backlink on Account.PrimaryContactID = AccountContact.ID

backlink on Account.BillingContactID = AccountContact.ID

linked on AccountContact.ID = AccountContactUserField.ID

linked on AccountContact.BillingAddressID = Address.ID

linked on AccountContact.ShippingAddressID = Address.ID

linked on AccountContact.ID = AddressLink.ParentID and AccountContact.ClassTypeID = AddressLink.ParentClassTypeID

linked on AddressLink.AddressID = Address.ID

linked on AccountContact.MainPhoneNumberID = PhoneNumber.ID

linked on AccountContact.MainFaxNumberID = PhoneNumber.ID

linked on Account.SalespersonID1 = Employee.ID

linked on Account.SalespersonID2 = Employee.ID

linked on Account.SalespersonID3 = Employee.ID

linked on Account.ID = AccountUserField.ID

linked on AccountContact.BillingAddressID = Address.ID

linked on AccountContact.ShippingAddressID = Address.ID

linked on Account.ID = AddressLink.ParentID and Account.ClassTypeID = AddressLink.ParentClassTypeID

linked on AddressLink.AddressID = Address.ID

linked on Account.MainPhoneNumberID = PhoneNumber.ID

linked on Account.MainFaxNumberID = PhoneNumber.ID

linked on Account.PricingLevelID = PricingLevel.ID

linked on Account.PromotionID = Promotion.ID

linked on Account.PaymentTermsID = PaymentTerm.ID

linked on Account.ClassTypeID = ClassType.ID

linked on Account.SalespersonID1 = Employee.ID

linked on Account.SalespersonID2 = Employee.ID

linked on Account.SalespersonID3 = Employee.ID

linked on Account.ParentID = Account.ID

Source

Contributor: Cyrious

Date: 6/2016

Version: Control 5/7