feat: add SupplierProfile, Product, Wallet, and WalletTransaction models to seller_models
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 28s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 28s
This commit is contained in:
parent
f000cbe174
commit
ce1871a727
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class SupplierProfile(models.Model):
|
|||
return ""
|
||||
|
||||
class Product(models.Model):
|
||||
supplier = models.ForeignKey(SupplierProfile, on_delete=models.DO_NOTHING, db_column='supplier_id')
|
||||
supplier = models.ForeignKey(SupplierProfile, on_delete=models.DO_NOTHING, db_column='supplier_id', to_field='user_id', null=True, blank=True)
|
||||
title = models.CharField(max_length=255)
|
||||
category = models.CharField(max_length=100, blank=True, null=True)
|
||||
price = models.DecimalField(max_digits=10, decimal_places=2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue