from django.db import models
from authentication.models import User
from social.models import Posts


class Like(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='user_like')
    post = models.ForeignKey(Posts, on_delete=models.CASCADE, related_name='post_like')
    time = models.DateTimeField(auto_now_add=True)

    class Meta:
        unique_together = ('user', 'post')

6bfc01694a345744a0fb217db699ec76a9dd7187
<mask token>

<mask token>


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


    class Meta:
        unique_together = 'user', 'post'

<mask token>


class Like(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE, related_name=
        'user_like')
    post = models.ForeignKey(Posts, on_delete=models.CASCADE, related_name=
        'post_like')
    time = models.DateTimeField(auto_now_add=True)


    class Meta:
        unique_together = 'user', 'post'

from django.db import models
from authentication.models import User
from social.models import Posts


class Like(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE, related_name=
        'user_like')
    post = models.ForeignKey(Posts, on_delete=models.CASCADE, related_name=
        'post_like')
    time = models.DateTimeField(auto_now_add=True)


    class Meta:
        unique_together = 'user', 'post'

from django.db import models
from authentication.models import User
from social.models import Posts


class Like(models.Model):
    user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='user_like')
    post = models.ForeignKey(Posts, on_delete=models.CASCADE, related_name='post_like')
    time = models.DateTimeField(auto_now_add=True)

    class Meta:
        unique_together = ('user', 'post')
