|
44 | 44 | - Add block reason and notes |
45 | 45 | - View block history |
46 | 46 | - Unblock users manually |
47 | | - |
48 | 47 | - **User Activity Monitoring** |
49 | 48 | - View user activity logs |
50 | 49 | - Track login attempts |
|
60 | 59 | - Review reported posts |
61 | 60 | - Pin/unpin important posts |
62 | 61 | - Lock/unlock discussions |
63 | | - |
64 | 62 | - **Comment Management** |
65 | 63 | - Hide/show comments |
66 | 64 | - Delete inappropriate comments |
|
76 | 74 | - Manage category hierarchy |
77 | 75 | - Set category permissions |
78 | 76 | - Delete/merge categories |
79 | | - |
80 | 77 | - **Category Settings** |
81 | 78 | - Set posting guidelines |
82 | 79 | - Configure auto-moderation |
|
92 | 89 | - Set tag descriptions |
93 | 90 | - Control tag usage |
94 | 91 | - Merge similar tags |
95 | | - |
96 | 92 | - **Tag Settings** |
97 | 93 | - Set tag permissions |
98 | 94 | - Configure tag suggestions |
|
103 | 99 | ### 5. Admin Tools |
104 | 100 |
|
105 | 101 | - **Dashboard** |
| 102 | + |
106 | 103 | - Activity overview |
107 | 104 | - Moderation queue |
108 | 105 | - Recent actions log |
|
119 | 116 | ### 6. Permission Management |
120 | 117 |
|
121 | 118 | - **Role-Based Access** |
| 119 | + |
122 | 120 | - Define admin roles |
123 | 121 | - Set role permissions |
124 | 122 | - Manage role assignments |
|
140 | 138 | ### 7. Reporting System |
141 | 139 |
|
142 | 140 | - **Content Reports** |
| 141 | + |
143 | 142 | - Review reported items |
144 | 143 | - Track report status |
145 | 144 | - Assign to moderators |
146 | 145 | - Set resolution actions |
147 | 146 | - Notify reporters |
148 | 147 |
|
149 | 148 | - **Report Categories** |
150 | | - |
| 149 | + |
151 | 150 | ```typescript |
152 | 151 | enum ReportReason { |
153 | 152 | SPAM |
|
162 | 161 | ### 8. System Configuration |
163 | 162 |
|
164 | 163 | - **Site Settings** |
| 164 | + |
165 | 165 | - General configuration |
166 | 166 | - Feature toggles |
167 | 167 | - Theme management |
|
178 | 178 | ### 9. Analytics & Reporting |
179 | 179 |
|
180 | 180 | - **Usage Statistics** |
| 181 | + |
181 | 182 | - User engagement |
182 | 183 | - Content metrics |
183 | 184 | - Moderation actions |
|
194 | 195 | ### 10. Communication Tools |
195 | 196 |
|
196 | 197 | - **Announcements** |
| 198 | + |
197 | 199 | - Site-wide notices |
198 | 200 | - Category announcements |
199 | 201 | - User notifications |
@@ -371,16 +373,16 @@ erDiagram |
371 | 373 | User ||--o{ Notification : "receives" |
372 | 374 | User ||--o{ Category : "creates" |
373 | 375 | User ||--o{ Tag : "creates" |
374 | | - |
| 376 | +
|
375 | 377 | Post ||--o{ Comment : "has" |
376 | 378 | Post }|--|| Category : "belongs_to" |
377 | 379 | Post ||--o{ PostHistory : "tracks" |
378 | 380 | Post ||--o{ Flag : "receives" |
379 | | - |
| 381 | +
|
380 | 382 | Category ||--o{ Category : "has_children" |
381 | 383 | Tag ||--o{ Tag : "has_children" |
382 | 384 | Comment ||--o{ Comment : "has_replies" |
383 | | - |
| 385 | +
|
384 | 386 | Badge }o--o{ User : "awarded_to" |
385 | 387 | Tag }o--o{ Post : "tagged_with" |
386 | 388 | User }o--o{ User : "follows" |
@@ -498,23 +500,27 @@ CREATE INDEX idx_media_mime ON "Media"(mime); |
498 | 500 | ## Key Features Implementation |
499 | 501 |
|
500 | 502 | 1. **Full-Text Search** |
| 503 | + |
501 | 504 | - Uses PostgreSQL tsvector for efficient search |
502 | 505 | - Indexes on post title and content |
503 | 506 | - Indexes on comment content |
504 | 507 | - Indexes on tag names |
505 | 508 |
|
506 | 509 | 2. **Hierarchical Content** |
| 510 | + |
507 | 511 | - Categories with parent-child relationships |
508 | 512 | - Tags with optional parent-child structure |
509 | 513 | - Comments with nested replies |
510 | 514 |
|
511 | 515 | 3. **Activity Tracking** |
| 516 | + |
512 | 517 | - Post view counts |
513 | 518 | - Last activity timestamps |
514 | 519 | - User engagement metrics |
515 | 520 | - Content popularity tracking |
516 | 521 |
|
517 | 522 | 4. **Moderation System** |
| 523 | + |
518 | 524 | - Flag queue for content moderation |
519 | 525 | - User trust levels |
520 | 526 | - Content status management |
|
0 commit comments