Assignment 1 - Data Modeling
• Create an app in Salesforce simulating the functionalities of a Bank (App Label: “Bank”). • It
should have the following tables to store data Bank, Branch, Account, Loan, Loan Detail and
Transaction.
• A bank can have many branches and any branch cannot exist without a bank.
• A branch has many accounts and an account cannot exist without a branch.
• An account can be shifted to any other Branch.
• Every account has transactions greater than or equal to 0. Transaction cannot exist without an
account.
• There are predefined loans for banks. Each account can have more than one loan. And each loan can be
taken by more than one account.
• Every object should have appropriate fields according to them.
• A Savings Account can only be created if the starting balance is greater than equals to 10000
(minimum balance).
• A Current Account can only be created if the starting balance is greater than equals to 25000
(minimum balance).
• Savings Minor Account can only be created if the starting balance is greater than equals to 2500
(minimum balance).
• The daily limit of an account depends on the account type. Both of them have pre-defined values.
• The branch should display the number of accounts it holds as the Total Number of Accounts.
• The bank should display the total number of branches it has.
• Transaction should be of two types withdraw or deposit.
• Account should display the average transaction the particular account has, both in withdrawing and
depositing separately.
• The loan table should include the details necessary for the loan like tenure, rate of interest, number of
installments etc.
• Loan Detail should store the data for a particular loan on an account.
• And also validate all the fields required in every object.
• Display the remaining amount, and the remaining number of installments in the loan detail record using
related loan records.
• The balance field on the account must be calculated using the related transaction records.
• The balance in the account should not be less than the minimum balance as described above.
Maximum Marks: 100
Note: Create fields whichever is required on any object. And also apply validations wherever required.
Salesforce By: Shrey Sharma Plot no.8, Pratap Nagar Scheme 3, Near Glass Factory, Tonk Road, Jaipur, Rajasthan
302015 Phone: +917568697474 Website: shreysharma.com