feat: add SupplierProfile, Product, Wallet, and WalletTransaction models to seller_models
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 28s

This commit is contained in:
vickytechkey 2026-10-04 16:37:01 +05:30
parent f000cbe174
commit ce1871a727

View file

@ -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)