from django.db import models

# Create your models here.

class Contact(models.Model):
    serial_number = models.AutoField(primary_key = True)
    name = models.CharField(max_length=50)
    phone = models.CharField(max_length=15)
    content = models.TextField()
    email = models.CharField(max_length=70)
    timeStamp = models.DateTimeField(auto_now_add=True, blank=True)
    
    def __str__(self):
        return 'Message from ' + self.name + ' - ' + self.email
    
aa93261a9d67fd204fb56593e869369158312045
<mask token>


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

<mask token>


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

    def __str__(self):
        return 'Message from ' + self.name + ' - ' + self.email

<mask token>


class Contact(models.Model):
    serial_number = models.AutoField(primary_key=True)
    name = models.CharField(max_length=50)
    phone = models.CharField(max_length=15)
    content = models.TextField()
    email = models.CharField(max_length=70)
    timeStamp = models.DateTimeField(auto_now_add=True, blank=True)

    def __str__(self):
        return 'Message from ' + self.name + ' - ' + self.email

from django.db import models


class Contact(models.Model):
    serial_number = models.AutoField(primary_key=True)
    name = models.CharField(max_length=50)
    phone = models.CharField(max_length=15)
    content = models.TextField()
    email = models.CharField(max_length=70)
    timeStamp = models.DateTimeField(auto_now_add=True, blank=True)

    def __str__(self):
        return 'Message from ' + self.name + ' - ' + self.email

from django.db import models

# Create your models here.

class Contact(models.Model):
    serial_number = models.AutoField(primary_key = True)
    name = models.CharField(max_length=50)
    phone = models.CharField(max_length=15)
    content = models.TextField()
    email = models.CharField(max_length=70)
    timeStamp = models.DateTimeField(auto_now_add=True, blank=True)
    
    def __str__(self):
        return 'Message from ' + self.name + ' - ' + self.email
    