Add methods to Transaction model to return whether it is a credit or debit, and its credit or debit amount.