Skip to content

Commit

Permalink
Create loan_processing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 21, 2024
1 parent dcea11c commit c0cd9b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sidra_chain_integration/flask_app/models/loan_processing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

class LoanApplication(db.Model):
id = db.Column(db.Integer, primary_key=True)
credit_score = db.Column(db.Integer)
income = db.Column(db.Integer)
employment_history = db.Column(db.Integer)
loan_amount = db.Column(db.Integer)

def __init__(self, credit_score, income, employment_history, loan_amount):
self.credit_score = credit_score
self.income = income
self.employment_history = employment_history
self.loan_amount = loan_amount

0 comments on commit c0cd9b5

Please sign in to comment.