feat(payment): add expiry_notification_sent field to track notification status

This commit is contained in:
2025-07-09 20:13:30 +05:00
parent ff897ee2ab
commit 1644bd47b9
2 changed files with 18 additions and 0 deletions

View File

@ -23,6 +23,7 @@ class Payment(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="payments")
paid_at = models.DateTimeField(null=True, blank=True)
method = models.CharField(max_length=255, choices=PAYMENT_TYPES, default="TRANSFER")
expiry_notification_sent = models.BooleanField(default=False)
expires_at = models.DateTimeField(null=True, blank=True)
created_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(auto_now=True)