summaryrefslogtreecommitdiff
path: root/app/products/migrations
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-11-05 11:15:30 -0500
committerluxagraf <sng@luxagraf.net>2019-11-05 11:15:30 -0500
commitb1057c9dc9ff6b6e1786d31e3401ad9571eb7f1d (patch)
treec3247bc40c63bf5df1c6fecee75a81b7c2ebafde /app/products/migrations
parent725e3d2f798d228a386466823490b6f25647a4db (diff)
added products
Diffstat (limited to 'app/products/migrations')
-rw-r--r--app/products/migrations/0001_initial.py36
-rw-r--r--app/products/migrations/0002_auto_20191008_0841.py29
-rw-r--r--app/products/migrations/0003_auto_20191008_0941.py30
-rw-r--r--app/products/migrations/__init__.py0
4 files changed, 95 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',),
+ },
+ ),
+ ]
diff --git a/app/products/migrations/0002_auto_20191008_0841.py b/app/products/migrations/0002_auto_20191008_0841.py
new file mode 100644
index 0000000..11b2d59
--- /dev/null
+++ b/app/products/migrations/0002_auto_20191008_0841.py
@@ -0,0 +1,29 @@
+# Generated by Django 2.2.6 on 2019-10-08 08:41
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('products', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Brand',
+ 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(auto_now_add=True)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='product',
+ name='brand',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='products.Brand'),
+ preserve_default=False,
+ ),
+ ]
diff --git a/app/products/migrations/0003_auto_20191008_0941.py b/app/products/migrations/0003_auto_20191008_0941.py
new file mode 100644
index 0000000..085fd32
--- /dev/null
+++ b/app/products/migrations/0003_auto_20191008_0941.py
@@ -0,0 +1,30 @@
+# Generated by Django 2.2.6 on 2019-10-08 09:41
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('products', '0002_auto_20191008_0841'),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name='product',
+ old_name='secondar_offer_price',
+ new_name='secondary_offer_price',
+ ),
+ migrations.AddField(
+ model_name='product',
+ name='primary_offer_retailer',
+ field=models.CharField(default='Amazon', max_length=400),
+ preserve_default=False,
+ ),
+ migrations.AddField(
+ model_name='product',
+ name='secondary_offer_retailer',
+ field=models.CharField(default='Amazon', max_length=400),
+ preserve_default=False,
+ ),
+ ]
diff --git a/app/products/migrations/__init__.py b/app/products/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/products/migrations/__init__.py