Skip to content

christhoval06/fastapi--lms

Repository files navigation

Loan Management System

A simple graphQL Loan Management System built in python

Collections [WIP]

class Gender(Enum):
    MALE = 0
    FEMALE = 1
  
class Borrowers(Model):
    created_at: datetime.datetime
    name: str
    phone_number: str
    age: int
    address: str
    gender: Gender
class PaymentRange(Enum):
    DAILY = 0
    WEEKLY = 1
    BIWEEKLY = 2
    MONTHLY = 3
    BIMONTHLY = 4
    QUARTERLY = 5
    SEMIANNUALLY = 6
    ANNUALLY = 7

class LoansInformation(Model):
    borrower_id: ObjectId
    loan_date: datetime.datetime
    loan_due: float
    payment_range: PaymentRange 
class LoanOffer(Model):
    loan_name: str
    amount: Decimal
    loan_range: PaymentRange
    interest: float
class Payment(Model):
    information_id: ObjectId
    borrower_id: ObjectId
    amount: Decimal
    interest: Decimal
    total: Decimal
    paymment_date: datetime.datetime
class Report(Model):
    borrower_id: ObjectId
    payment_id: ObjectId
    information_id: ObjectId
    loan_id: ObjectId
    date: datetime.datetime

Services [WIP]

  • Create a borrower
  • Get all borrowers
  • get a borrower information
  • Create a LoansInformation
  • Get all borrowers
  • Get a LoansInformation

Releases

No releases published

Packages

No packages published

Languages