from django.db import models

class Member(models.Model):
    name = models.CharField(max_length = 100)
    surname = models.CharField(max_length = 100)
    phone = models.CharField(max_length = 100)
    email = models.EmailField()
    adress = models.CharField(max_length = 200)
    photo = models.ImageField(upload_to = 'members_profile', blank= True, null = True)

    def __str__(self):
        #Muda o nome que aparece no BD
        return self.name + "  " + self.surname
    