From bc7b4fb6fdd31486b177ef4ae40242defe4a0d27 Mon Sep 17 00:00:00 2001 From: ry1015 Date: Sat, 25 Oct 2014 19:06:37 -0700 Subject: [PATCH] Added Schema --- proj.txt | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/proj.txt b/proj.txt index d38be2b..45b9979 100644 --- a/proj.txt +++ b/proj.txt @@ -4,13 +4,38 @@ Project Title: Database Title: Database Schema -1. Users {id, username, password} - id: autogenerated id number. - username: Customer's account username. - password: Custerm's account password. - -2. +1. Users {id, username, password, checkingAmount, savingsAmount} + int id: autogenerated id number. + String username: Customer's account username. + String password: Customer's account password. + boolean checkingAmount: yes if customer has a checking account. + 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 1. Customer can register to create an account. 2. Customer can close their account.