19 lines
668 B
Python
19 lines
668 B
Python
from django.db import models
|
|
|
|
class ScamReport(models.Model):
|
|
description = models.TextField(help_text="Describe the suspicious activity.")
|
|
source = models.CharField(max_length=255, blank=True, null=True, help_text="The source (e.g., URL, email address).")
|
|
reported_at = models.DateTimeField(auto_now_add=True)
|
|
|
|
STATUS_CHOICES = [
|
|
('PENDING', 'Pending'),
|
|
('VERIFIED', 'Verified'),
|
|
('DISMISSED', 'Dismissed'),
|
|
]
|
|
status = models.CharField(max_length=10, choices=STATUS_CHOICES, default='PENDING')
|
|
|
|
class Meta:
|
|
ordering = ['-reported_at']
|
|
|
|
def __str__(self):
|
|
return f"{self.description[:50]}..." |