from django.contrib.auth.models import User
from django.db import models


from django.utils import timezone

# Create your models here.
class BlogPost(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    message = models.CharField(max_length=250)
    created_at = models.DateTimeField(default= timezone.now)
