from django.db import models

# Create your models here.
class Contact(models.Model):
    sno=models.AutoField(primary_key=True)
    name=models.CharField(max_length=100)
    email=models.CharField(max_length=100)
    phone=models.CharField(max_length=14)
    content=models.TextField()
    timeStamp=models.DateTimeField(auto_now=True,blank=True)
    def __str__(self):
        return f'Message from {self.email}'


from django.db import models

# Create your models here.
class Contact(models.Model):
    sno=models.AutoField(primary_key=True)
    name=models.CharField(max_length=100)
    email=models.CharField(max_length=100)
    phone=models.CharField(max_length=14)
    content=models.TextField()
    timeStamp=models.DateTimeField(auto_now=True,blank=True)
    def __str__(self):
        return f'Message from {self.email}'


# Create your models here.