Add products model in transfer
This commit is contained in:
parent
b5d1715063
commit
b74b87d78d
0
apps/product/management/__init__.py
Normal file
0
apps/product/management/__init__.py
Normal file
0
apps/product/management/commands/__init__.py
Normal file
0
apps/product/management/commands/__init__.py
Normal file
0
apps/product/management/commands/add_product.py
Normal file
0
apps/product/management/commands/add_product.py
Normal file
0
apps/product/old_models.py
Normal file
0
apps/product/old_models.py
Normal file
|
|
@ -841,3 +841,45 @@ class Ads(MigrateMixin):
|
||||||
class Meta:
|
class Meta:
|
||||||
managed = False
|
managed = False
|
||||||
db_table = 'ads'
|
db_table = 'ads'
|
||||||
|
|
||||||
|
class Products(models.Model):
|
||||||
|
establishment = models.ForeignKey('Establishments', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
brand = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
name = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
vintage = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
type = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
unique_key = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
price = models.FloatField(blank=True, null=True)
|
||||||
|
average_price_in_shops = models.FloatField(blank=True, null=True)
|
||||||
|
fra_encima_id = models.IntegerField(blank=True, null=True)
|
||||||
|
wine_sub_region_id = models.IntegerField(blank=True, null=True)
|
||||||
|
classification = models.ForeignKey('WineClassifications', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
wine_region = models.ForeignKey('WineLocations', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
wine_type = models.ForeignKey('WineTypes', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
wine_color = models.ForeignKey('WineColors', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
appellation = models.ForeignKey('WineClassifications', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
created_at = models.DateTimeField()
|
||||||
|
updated_at = models.DateTimeField()
|
||||||
|
state = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
wine_style = models.ForeignKey('WineStyles', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
village = models.ForeignKey('WineLocations', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
vineyard = models.ForeignKey('WineLocations', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
yard_classification = models.ForeignKey('WineClassifications', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
wine_quality = models.ForeignKey('WineClassifications', models.DO_NOTHING, blank=True, null=True)
|
||||||
|
bottles_produced = models.CharField(max_length=3000, blank=True, null=True)
|
||||||
|
deu_import_id = models.IntegerField(blank=True, null=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
managed = False
|
||||||
|
db_table = 'products'
|
||||||
|
|
||||||
|
|
||||||
|
class WineTypes(models.Model):
|
||||||
|
name = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
fra_encima_id = models.IntegerField(blank=True, null=True)
|
||||||
|
created_at = models.DateTimeField()
|
||||||
|
updated_at = models.DateTimeField()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
managed = False
|
||||||
|
db_table = 'wine_types'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user