I store into the DB payments received through PayPal. Every payment is either manual or automatic (automatic payments are done for the user by PayPal automatically, based on user's permission to pay in the future). I wish to distinguish manual and automatic payments in the DB. But in the following code both regular payments and automatic payments share the same table, so that they cannot be distinguished. I ask for an advice how to make them distinct in the DB. The best thing I invented insofar is to add `dummy = models.SmallIntegerField()` to AutomaticPayment class, to allocate a new table for it. Are there better ways?
class Payment(models.Model):
transaction = models.OneToOneField('BaseTransaction')
email = models.EmailField(null=True)
class AutomaticPayment(Payment):
pass
By the way, it is an open source project, so you will benefit from my work.