I'm creating a database for a 'bank' and was just unsure as to whether my method of attaching accounts to customers was the most efficient. Here are a few of the enterprise rules:
-there are 2 types of account (current and savings)
-each account has a field for: balance, date of last access
-current accounts have overdraft
-savings accounts have interest_rate
-a customer can have as many accounts as they want
-an account can be 'subscribed' to unlimited people
I'm just not sure if the best method is just to have interest rate and overdraft in the account table to be set to null if it is the wrong account type.
Sorry if this question isn't put very well (I'm breaking my stackoverflow virginity here). Also, here is a link to the ER diagram have created so far: https://drive.google.com/file/d/0BwKmjTsIbwP0SE9Xbk1ycnkyV0E/edit?usp=sharing
Sorry that I couldn't post the image directly on here, it's just because I've got no rep...
Thanks in advance!