W
wschlichtman
I am attempting to develop a database that tracks real estate contract
processes. This db also tracks clients and properties. I'm having a bit of a
brain cramp trying to get my thoughts wrapped around relationships.
I have identified the objects I believe I need to make a functional
application but am having trouble linking them properly.
I have the following tables (this is not a complete list, but only the ones
that are pertintent to my question)
tblContract
ContractID --> PK
Associated BuyerID -->FK
Associated SellerID -->FK
Associated BuyerAgentID -->FK
Associated SellerAgentID -->FK
PropertyID -->FK
ServiceAgentID -->FK
tblBuyers
BuyerID -->PK
Contact info -->fields
tblSellers
SellerID -->PK
Contact info
tblBuyerAgents
BuyerAgentID -->PK
Contact info
tblSellersAgents
SellerAgentID -->PK
Contact info
tblProperties
PropertyID -->PK
Property description
tblServiceAgents (there are actually many of these, depending on the service)
ServiceAgentID -->PK
Contact info
In a real estate deal, the client info is created and tracked until a
contract is negotiated. At that point, I want to create a contract linking
all associated parties and properties, as listed above. The contract is
monitored and updated thoroughout its life until closing. At that point, the
contract is marked complete and can no longer be updated.
Note that there can be more than one buyer and/or seller associated with a
contract so I believe my solution needs an additional table to create a
party. Is this correct?
In any case, am I on the right track here?
processes. This db also tracks clients and properties. I'm having a bit of a
brain cramp trying to get my thoughts wrapped around relationships.
I have identified the objects I believe I need to make a functional
application but am having trouble linking them properly.
I have the following tables (this is not a complete list, but only the ones
that are pertintent to my question)
tblContract
ContractID --> PK
Associated BuyerID -->FK
Associated SellerID -->FK
Associated BuyerAgentID -->FK
Associated SellerAgentID -->FK
PropertyID -->FK
ServiceAgentID -->FK
tblBuyers
BuyerID -->PK
Contact info -->fields
tblSellers
SellerID -->PK
Contact info
tblBuyerAgents
BuyerAgentID -->PK
Contact info
tblSellersAgents
SellerAgentID -->PK
Contact info
tblProperties
PropertyID -->PK
Property description
tblServiceAgents (there are actually many of these, depending on the service)
ServiceAgentID -->PK
Contact info
In a real estate deal, the client info is created and tracked until a
contract is negotiated. At that point, I want to create a contract linking
all associated parties and properties, as listed above. The contract is
monitored and updated thoroughout its life until closing. At that point, the
contract is marked complete and can no longer be updated.
Note that there can be more than one buyer and/or seller associated with a
contract so I believe my solution needs an additional table to create a
party. Is this correct?
In any case, am I on the right track here?