Skip to content
Snippets Groups Projects
Commit 3f11e1e3 authored by Kangmin Lee's avatar Kangmin Lee
Browse files

신고기능구현

parent 445eeccb
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ class Feed(models.Model): ...@@ -10,6 +10,7 @@ class Feed(models.Model):
user_id = models.CharField(max_length=30, blank=True, null=True) user_id = models.CharField(max_length=30, blank=True, null=True)
like_count = models.IntegerField(default=0) like_count = models.IntegerField(default=0)
view_count = models.IntegerField(default=0) #조회수 view_count = models.IntegerField(default=0) #조회수
report_count = models.IntegerField(default=0) #신고횟수
type = models.BooleanField(default=False) #전경 포토존 type = models.BooleanField(default=False) #전경 포토존
univ = models.CharField(max_length=15) univ = models.CharField(max_length=15)
...@@ -48,6 +49,17 @@ class FeedView(models.Model): ...@@ -48,6 +49,17 @@ class FeedView(models.Model):
models.Index(fields=['email']), models.Index(fields=['email']),
] ]
class FeedReport(models.Model):
feed_id = models.IntegerField()
email = models.CharField(max_length=30, blank=True, null=True)
is_report = models.BooleanField(default=False)
class Meta:
indexes = [
models.Index(fields=['feed_id']),
models.Index(fields=['email']),
]
class Bookmark(models.Model): class Bookmark(models.Model):
email = models.EmailField(verbose_name='email', max_length=100) email = models.EmailField(verbose_name='email', max_length=100)
feed_id = models.IntegerField() feed_id = models.IntegerField()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment