from django.db import models

# Create your models here.

class Post(models.Model):
    title = models.CharField(max_length=255)
    body =models.TextField()
    category= models.CharField(max_length=255, default="Info")
    date = models.DateTimeField(auto_now_add= True)

    def __str__(self):
        return "{}. {} | {}".format(self.id,self.title,self.category)
