Added paddle

This commit is contained in:
2025-10-20 19:50:39 +02:00
parent 6093b24734
commit b583584a7d
8 changed files with 312 additions and 96 deletions

View File

@@ -200,3 +200,14 @@ class DemoCode(models.Model):
def __str__(self):
return (f"{self.code} - {'Used' if self.used else 'Available'}")
class PaymentRecord(models.Model):
company = models.ForeignKey(Organization, on_delete=models.CASCADE)
amount = models.DecimalField(max_digits=10, decimal_places=2)
currency = models.CharField(max_length=10)
payment_date = models.DateTimeField(auto_now_add=True)
transaction_id = models.CharField(max_length=255, unique=True)
def __str__(self):
return f"{self.company} - {self.amount} {self.currency}"