From 1644bd47b9c05d8214c4746a971df26bb741f42e Mon Sep 17 00:00:00 2001 From: i701 Date: Wed, 9 Jul 2025 20:13:30 +0500 Subject: [PATCH] =?UTF-8?q?feat(payment):=20add=20expiry=5Fnotification=5F?= =?UTF-8?q?sent=20field=20to=20track=20notification=20status=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0013_payment_expiry_notification_sent.py | 17 +++++++++++++++++ billing/models.py | 1 + 2 files changed, 18 insertions(+) create mode 100644 billing/migrations/0013_payment_expiry_notification_sent.py diff --git a/billing/migrations/0013_payment_expiry_notification_sent.py b/billing/migrations/0013_payment_expiry_notification_sent.py new file mode 100644 index 0000000..0b5a10d --- /dev/null +++ b/billing/migrations/0013_payment_expiry_notification_sent.py @@ -0,0 +1,17 @@ +# Generated by Django 5.2 on 2025-07-09 14:50 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("billing", "0012_payment_status"), + ] + + operations = [ + migrations.AddField( + model_name="payment", + name="expiry_notification_sent", + field=models.BooleanField(default=False), + ), + ] diff --git a/billing/models.py b/billing/models.py index 8ddddbb..f8b6f8a 100644 --- a/billing/models.py +++ b/billing/models.py @@ -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)