feat(billing): WIP Add Topup model, filters, serializers, and views for topup management

This commit is contained in:
2025-07-03 17:13:25 +05:00
parent bae0882879
commit c07d3c93d2
7 changed files with 172 additions and 7 deletions

View File

@ -51,6 +51,8 @@ class Topup(models.Model):
amount = models.FloatField()
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="topups")
paid = models.BooleanField(default=False)
paid_at = models.DateTimeField(null=True, blank=True)
mib_reference = models.CharField(default="", null=True, blank=True)
created_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(auto_now=True)