Added paddle
This commit is contained in:
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user