Spaces:
Running
on
Zero
Running
on
Zero
File size: 752 Bytes
a61be63 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
from django.db import models
class Diamond(models.Model):
carat = models.DecimalField(max_digits=5, decimal_places=2)
cut = models.CharField(max_length=50)
color = models.CharField(max_length=50)
clarity = models.CharField(max_length=50)
depth = models.DecimalField(max_digits=5, decimal_places=2)
class BrandProduct(models.Model):
brand_name = models.CharField(max_length=50)
model_name = models.CharField(max_length=50)
type_number = models.CharField(max_length=50)
purchase_store = models.CharField(max_length=50)
purchase_date = models.DateField()
purchase_price = models.DecimalField(max_digits=10, decimal_places=2)
accessories = models.TextField()
condition = models.CharField(max_length=50) |