from django.db import models
from django.utils import timezone
from twitteruser.models import TwitterUser

# Create your models here.
class Tweets(models.Model):
    text = models.CharField(max_length=140)
    time = models.DateTimeField(default=timezone.now)
    likes = models.IntegerField(default=0)
    retweets = models.IntegerField(default=0)
    author = models.ForeignKey(TwitterUser, default=None, on_delete=models.CASCADE)

    def __str__(self):
        return self.text

4bdad67d5bb6ff88880149e2f94bf6479bbe6873
<mask token>


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

<mask token>


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

    def __str__(self):
        return self.text

<mask token>


class Tweets(models.Model):
    text = models.CharField(max_length=140)
    time = models.DateTimeField(default=timezone.now)
    likes = models.IntegerField(default=0)
    retweets = models.IntegerField(default=0)
    author = models.ForeignKey(TwitterUser, default=None, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.text

from django.db import models
from django.utils import timezone
from twitteruser.models import TwitterUser


class Tweets(models.Model):
    text = models.CharField(max_length=140)
    time = models.DateTimeField(default=timezone.now)
    likes = models.IntegerField(default=0)
    retweets = models.IntegerField(default=0)
    author = models.ForeignKey(TwitterUser, default=None, on_delete=models.
        CASCADE)

    def __str__(self):
        return self.text

from django.db import models
from django.utils import timezone
from twitteruser.models import TwitterUser

# Create your models here.
class Tweets(models.Model):
    text = models.CharField(max_length=140)
    time = models.DateTimeField(default=timezone.now)
    likes = models.IntegerField(default=0)
    retweets = models.IntegerField(default=0)
    author = models.ForeignKey(TwitterUser, default=None, on_delete=models.CASCADE)

    def __str__(self):
        return self.text
