feat: add models and enum

This commit is contained in:
firedotguy
2026-01-30 20:49:49 +03:00
parent 1a606da55f
commit c7e3812ee8
17 changed files with 210 additions and 5 deletions

25
itd/enums.py Normal file
View File

@@ -0,0 +1,25 @@
from enum import Enum
class NotificationType(Enum):
WALL_POST = 'wall_post'
REPLY = 'reply'
REPOST = 'repost'
COMMENT = 'comment'
FOLLOW = 'follow'
LIKE = 'like'
class NotificationTargetType(Enum):
POST = 'post'
class ReportTargetType(Enum):
POST = 'post'
USER = 'user'
COMMENT = 'comment'
class ReportTargetReason(Enum):
SPAM = 'spam' # спам
VIOLENCE = 'violence' # насилие
HATE = 'hate' # ненависть
ADULT = 'adult' # 18+
FRAUD = 'fraud' # обман\мошенничество
OTHER = 'other' # другое