from django.db import models
from users.models import UserAccount
from tweets.models import Tweet

# Create your models here.


class Favourite(models.Model):
    user_Id = models.ForeignKey(UserAccount, on_delete=models.CASCADE)
    tweet_Id = models.ForeignKey(Tweet, on_delete=models.CASCADE)

    def __str__(self):
        return self.user_Id.name
