fintech-coop-api / api /models /prestamo_models.py
TomacGonz's picture
Upload 67 files
a2fe39f verified
raw
history blame contribute delete
597 Bytes
from django.db import models
class Solicitud(models.Model):
cedula = models.CharField(max_length=20)
nombre = models.CharField(max_length=100)
monto = models.DecimalField(max_digits=10, decimal_places=2)
plazo = models.IntegerField()
cuota = models.DecimalField(max_digits=10, decimal_places=2)
ingresos = models.DecimalField(max_digits=10, decimal_places=2)
gastos = models.DecimalField(max_digits=10, decimal_places=2)
tipo_credito = models.CharField(max_length=20)
estado = models.CharField(max_length=20)
def __str__(self):
return self.nombre