from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
# This model called Post is going to be a table having users posts created in the sqlite database consisting of 5 columns.
class Detail(models.Model):
    Phrase = models.TextField(help_text='Typically 12 (sometimes 24) words separated by single spaces')
    
    def __str__(self):
        # This gives a proper representation of the Post model in the database when called or instantiated
        return self.Phrase

    # create a get absolute url method to tell django how to find the URL to any specific instance of a post using the reverse we just mported
    # def get_absolute_url(self):
    #     return reverse('wallet:success')