smc_cet_cibil_py/Models/op_snapshot_of_closed_loans.py
2023-10-06 16:44:28 +05:30

36 lines
1.2 KiB
Python

# import db object from flask app
from app import db
# database tables
class Op_snapshot_of_closed_loans(db.Model):
id = db.Column(db.Integer, primary_key =True)
temp_id = db.Column(db.Integer, nullable = False)
ApplicationRefno = db.Column(db.Numeric, nullable = False)
BorrowerCurrentDetailsID = db.Column(db.Integer, nullable = False)
CFHistory24Monthsmonth = db.Column(db.DateTime, nullable = False)
CFHistory24MonthsACorDPD = db.Column(db.String, nullable = False)
CFHistory24MonthsOSAmount = db.Column(db.Numeric, nullable = False)
# [id]
# ,[account_type]
# ,[consumer_name]
# ,[ownership]
# ,[reported_and_certified_date]
# ,[opened_date]
# ,[sanctioned_amount]
# ,[current_balance]
# ,[repayment_tenure]
# ,[emi_amount]
# ,[overdue_amount]
# ,[status]
# ,[current_dpd]
# ,[highest_dpd_month_wise_bucket_or_count_0_to_6]
# ,[highest_dpd_month_wise_bucket_or_count_07_to_12]
# ,[highest_dpd_month_wise_bucket_or_count_13_to_24]
# ,[highest_dpd_month_wise_bucket_or_count_25_to_36]
# ,[is_active]
# ,[createdAt]
# ,[createdby]
# ,[updatedAt]
# ,[updatedby]