from django.db import models
from django.db.models.fields import EmailField
from django.db.models.manager import ManagerDescriptor

# Create your models here.

class Persona(models.Model): 
    nombre = models.TextField(max_length=30)
    apellido = models.TextField(max_length=30)
    email = models.TextField(max_length=15)
    celular = models.TextField(max_length=50)
    usuario = models.TextField(max_length=300)
    region = models.TextField(max_length=50)
    contraseña = models.TextField(max_length=30)
    contraseñaconfirmar = models.TextField(max_length=30)
    
    def __str__(self):
        return self.nombre + " " + self.email 

class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12) # es un identificador
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + " " + self.numeroTarjeta 


    

affb17acb7b255c507944609338e40cc2afd7f94
<mask token>


class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12)
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + ' ' + self.numeroTarjeta

<mask token>


class Persona(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12)
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + ' ' + self.numeroTarjeta

<mask token>


class Persona(models.Model):
    nombre = models.TextField(max_length=30)
    apellido = models.TextField(max_length=30)
    email = models.TextField(max_length=15)
    celular = models.TextField(max_length=50)
    usuario = models.TextField(max_length=300)
    region = models.TextField(max_length=50)
    contraseña = models.TextField(max_length=30)
    contraseñaconfirmar = models.TextField(max_length=30)

    def __str__(self):
        return self.nombre + ' ' + self.email


class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12)
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + ' ' + self.numeroTarjeta

from django.db import models
from django.db.models.fields import EmailField
from django.db.models.manager import ManagerDescriptor


class Persona(models.Model):
    nombre = models.TextField(max_length=30)
    apellido = models.TextField(max_length=30)
    email = models.TextField(max_length=15)
    celular = models.TextField(max_length=50)
    usuario = models.TextField(max_length=300)
    region = models.TextField(max_length=50)
    contraseña = models.TextField(max_length=30)
    contraseñaconfirmar = models.TextField(max_length=30)

    def __str__(self):
        return self.nombre + ' ' + self.email


class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12)
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + ' ' + self.numeroTarjeta

from django.db import models
from django.db.models.fields import EmailField
from django.db.models.manager import ManagerDescriptor

# Create your models here.

class Persona(models.Model): 
    nombre = models.TextField(max_length=30)
    apellido = models.TextField(max_length=30)
    email = models.TextField(max_length=15)
    celular = models.TextField(max_length=50)
    usuario = models.TextField(max_length=300)
    region = models.TextField(max_length=50)
    contraseña = models.TextField(max_length=30)
    contraseñaconfirmar = models.TextField(max_length=30)
    
    def __str__(self):
        return self.nombre + " " + self.email 

class TarjetaJunaeb(models.Model):
    numeroTarjeta = models.TextField(max_length=12) # es un identificador
    montoDisponible = models.IntegerField()
    rut = models.TextField(max_length=9)
    clave = models.TextField(max_length=8)

    def __str__(self):
        return self.rut + " " + self.numeroTarjeta 


    
