From 3f11e1e36852efbd451cc020ffdedb2459a6c9c1 Mon Sep 17 00:00:00 2001 From: Kangmin Lee <dlrkdals421@ajou.ac.kr> Date: Tue, 7 Jun 2022 19:13:46 +0000 Subject: [PATCH] =?UTF-8?q?=EC=8B=A0=EA=B3=A0=EA=B8=B0=EB=8A=A5=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- campics_/content/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/campics_/content/models.py b/campics_/content/models.py index fad0192..6f5c8f7 100644 --- a/campics_/content/models.py +++ b/campics_/content/models.py @@ -10,6 +10,7 @@ class Feed(models.Model): user_id = models.CharField(max_length=30, blank=True, null=True) like_count = models.IntegerField(default=0) view_count = models.IntegerField(default=0) #조회수 + report_count = models.IntegerField(default=0) #신고횟수 type = models.BooleanField(default=False) #전경 포토존 univ = models.CharField(max_length=15) @@ -47,6 +48,17 @@ class FeedView(models.Model): models.Index(fields=['feed_id']), 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): email = models.EmailField(verbose_name='email', max_length=100) -- GitLab