feat: alteração no db

This commit is contained in:
2024-12-20 09:40:33 -03:00
parent a91fe5abf6
commit dfb7418e7a
224 changed files with 35465 additions and 3 deletions

View File

@@ -7,7 +7,9 @@ class Product(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=100)
description = models.TextField(null=True, blank=True)
image = models.ImageField(null=True, blank=True)
price = models.DecimalField(max_digits=10, decimal_places=2)
quantity = models.IntegerField(null=False, default=0)
category = models.ForeignKey(Categories, on_delete=models.CASCADE)
active = models.BooleanField(default=True)