Added Schema

This commit is contained in:
ry1015
2014-10-25 19:06:37 -07:00
parent 7caa035687
commit bc7b4fb6fd

View File

@@ -4,13 +4,38 @@ Project Title:
Database Title: Database Title:
Database Schema Database Schema
1. Users {id, username, password} 1. Users {id, username, password, checkingAmount, savingsAmount}
id: autogenerated id number. int id: autogenerated id number.
username: Customer's account username. String username: Customer's account username.
password: Custerm's account password. String password: Customer's account password.
boolean checkingAmount: yes if customer has a checking account.
2. boolean savingsAmount: yes if customer has a savings account.
2. Transfer {id1, id2, amount, checking, savings}
int id1: sender.
int id2: recipient.
double amount: amount to transfer.
boolean checking: true if amount is coming from checking account.
boolean savings: true if amount is coming from savings account.
3. Loan {id, date, overdue, amount, balance}
int id: sender.
Date date: date of payment.
boolean overdue: true if payment is late.
double amount: amount to pay.
double balance: remaining balance.
4. Checking {id, balance, amount}
int id: customer id.
double balance: checking balance.
double amount: amount to withdraw or deposit.
5. Savings {id, balance, interestRate, amount}
int id: customer id.
double balance: savings balance.
double interestRage: interest rate to add to balance.
double amount: amount to withdraw or deposit.
Functional Requirements Functional Requirements
1. Customer can register to create an account. 1. Customer can register to create an account.
2. Customer can close their account. 2. Customer can close their account.