I have the following tables (Primary key in bold. Foreign key in Italic)
Customer table
- ID---Name---Balance---Account_Name---Account_Type
Account Category table
- Account_Type----Balance
Customer Detail table
- Account_Name---First_Name----Last_Name---Address
Can I have two foreign keys in the Customer table and how can I implement this in MySQL?
Updated
I am developing a web based accounting system for a final project.
Account Category
Account Type--------------Balance
Assets
Liabilities
Equity
Expenses
Income
Asset
- Asset_ID-----Asset Name----Balance----Account Type
Receivable
- Receivable_ID-----Receivable Name-------Address--------Tel-----Asset_ID----Account Type
Receivable Account
- Transaction_ID----Description----Amount--- Balance----Receivable_ID----Asset_ID---Account Type
I drew the ER(Entity relationship) diagram using a software and when I specify the relationship it automatically added the multiple foreign keys as shown above. Is the design not sound enough?