diff options
Diffstat (limited to 'app/products/migrations/0001_initial.py')
-rw-r--r-- | app/products/migrations/0001_initial.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/products/migrations/0001_initial.py b/app/products/migrations/0001_initial.py new file mode 100644 index 0000000..eb2a822 --- /dev/null +++ b/app/products/migrations/0001_initial.py @@ -0,0 +1,36 @@ +# Generated by Django 2.2.6 on 2019-10-08 07:46 + +from django.db import migrations, models +import products.models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Product', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=200)), + ('slug', models.CharField(max_length=50)), + ('pub_date', models.DateTimeField()), + ('body_markdown', models.TextField(blank=True)), + ('body_html', models.TextField(blank=True, null=True)), + ('primary_offer_url', models.CharField(max_length=400)), + ('primary_offer_price', models.IntegerField()), + ('secondary_offer_url', models.CharField(blank=True, max_length=400, null=True)), + ('secondar_offer_price', models.IntegerField(blank=True, null=True)), + ('rating', models.IntegerField()), + ('is_public', models.BooleanField(default=True)), + ('image', models.FileField(blank=True, null=True, upload_to=products.models.get_upload_path)), + ], + options={ + 'ordering': ('-pub_date',), + }, + ), + ] |