<reponame>estudeplus/perfil
from django.db import models

class Student(models.Model):
    name = models.CharField(max_length=100)
    student_id = models.CharField(max_length=10)
    email = models.EmailField(max_length=254)
    password = models.CharField(max_length=15)

    def __str__(self):
        return self.name

class InstitutionalEmail(models.Model):
    address_email = models.CharField(max_length=50)
    title_email = models.CharField(max_length=20, default='Assunto do email', editable=False)
    body_email = models.TextField()

from django.db import models

class Student(models.Model):
    name = models.CharField(max_length=100)
    student_id = models.CharField(max_length=10)
    email = models.EmailField(max_length=254)
    password = models.CharField(max_length=15)

    def __str__(self):
        return self.name

class InstitutionalEmail(models.Model):
    address_email = models.CharField(max_length=50)
    title_email = models.CharField(max_length=20, default='Assunto do email', editable=False)
    body_email = models.TextField()