You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
441 B
15 lines
441 B
from django.db import models
|
|
|
|
|
|
class Purchase(models.Model):
|
|
COMPLETE = 'COMPLETE'
|
|
CHARGEBACK = 'CHARGEBACK'
|
|
REFUNDED = 'REFUNDED'
|
|
ERROR = 'ERROR'
|
|
PENDING = 'PENDING'
|
|
|
|
transaction_id = models.PositiveIntegerField()
|
|
status = models.CharField(max_length=50)
|
|
product_id = models.PositiveIntegerField()
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
updated_at = models.DateTimeField(auto_now=True)
|
|
|