I wonder if it's YAGNI as well :
To sum up the finance table I have categorized and divided the form, which students fill up, to end up with a structure as thus:
FinanceEntity
-------------
- financeEntityID (PK)
- financeEntityName
StudentFinance
---------------
- financeID (PK)
- financeEntityID (FK)
- studentID (FK)
- entityID (FK)
e.g of FinanceEntity table:
HTML Code:
<body>
<table>
<tr><td>financeEntityID</td><td>financeEntity</td></tr>
<tr><td>1</td><td>Payment Plan</td></tr>
<tr><td>2</td><td>Payment Method</td></tr>
<tr><td>3</td><td>Credit Card Account</td></tr>
<tr><td>4</td><td>Debit Order Account</td></tr>
<tr><td>5</td><td>Deposit</td></tr>
</table>
</body>
Basically this is the 5 sections that I divided the form into and each section relates to a table. Hence:
- Payment Plan ----> PaymentPlan table
- Paymeny Method ----> PaymentMethod table
- etc
Then the student's details are summed up in the StudentFinance table. What are your thoughts and opinions?