from django.db import models
# make migration - creat changes and store in a file
# migrate - apply the pending changes created by make migrations
# Create your models here.

class Contact(models.Model):
    name = models.CharField(max_length=50)
    email = models.CharField(max_length=50)
    phone = models.CharField(max_length=12)
    message = models.TextField()
    date = models.DateField()


    def __str__(self):
        return self.name
    