diff options
author | luxagraf <sng@luxagraf.net> | 2023-06-29 12:40:43 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-06-29 12:40:43 -0500 |
commit | 8fe8e1c333b721c61f1723e114bc46f2698fd6c1 (patch) | |
tree | 5bb9ced6665d23840cea5a63bffbf89e6a659b78 /app/deals/migrations |
initital commit of pd tool
Diffstat (limited to 'app/deals/migrations')
6 files changed, 114 insertions, 0 deletions
diff --git a/app/deals/migrations/0001_initial.py b/app/deals/migrations/0001_initial.py new file mode 100644 index 0000000..af6edd7 --- /dev/null +++ b/app/deals/migrations/0001_initial.py @@ -0,0 +1,32 @@ +# Generated by Django 4.2.2 on 2023-06-29 15:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Deal', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('asin', models.CharField(max_length=200)), + ('category', models.CharField(max_length=200)), + ('brand', models.CharField(max_length=200)), + ('title', models.CharField(blank=True, max_length=200, null=True)), + ('prime_only', models.BooleanField(default=True)), + ('promo_type', models.CharField(blank=True, max_length=200)), + ('deal_price', models.DecimalField(decimal_places=2, max_digits=6)), + ('discount_percent', models.DecimalField(decimal_places=2, max_digits=6)), + ('url', models.CharField(max_length=200)), + ], + options={ + 'ordering': ('title',), + }, + ), + ] diff --git a/app/deals/migrations/0002_deal_original_price_alter_deal_deal_price.py b/app/deals/migrations/0002_deal_original_price_alter_deal_deal_price.py new file mode 100644 index 0000000..ef7f544 --- /dev/null +++ b/app/deals/migrations/0002_deal_original_price_alter_deal_deal_price.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.2 on 2023-06-29 16:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('deals', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='deal', + name='original_price', + field=models.CharField(max_length=6, null=True), + ), + migrations.AlterField( + model_name='deal', + name='deal_price', + field=models.CharField(max_length=6, null=True), + ), + ] diff --git a/app/deals/migrations/0003_alter_deal_deal_price_alter_deal_original_price.py b/app/deals/migrations/0003_alter_deal_deal_price_alter_deal_original_price.py new file mode 100644 index 0000000..76a2112 --- /dev/null +++ b/app/deals/migrations/0003_alter_deal_deal_price_alter_deal_original_price.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.2 on 2023-06-29 16:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('deals', '0002_deal_original_price_alter_deal_deal_price'), + ] + + operations = [ + migrations.AlterField( + model_name='deal', + name='deal_price', + field=models.CharField(max_length=12, null=True), + ), + migrations.AlterField( + model_name='deal', + name='original_price', + field=models.CharField(max_length=12, null=True), + ), + ] diff --git a/app/deals/migrations/0004_alter_deal_discount_percent.py b/app/deals/migrations/0004_alter_deal_discount_percent.py new file mode 100644 index 0000000..d296217 --- /dev/null +++ b/app/deals/migrations/0004_alter_deal_discount_percent.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.2 on 2023-06-29 16:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('deals', '0003_alter_deal_deal_price_alter_deal_original_price'), + ] + + operations = [ + migrations.AlterField( + model_name='deal', + name='discount_percent', + field=models.CharField(max_length=12, null=True), + ), + ] diff --git a/app/deals/migrations/0005_deal_discount_percent_num.py b/app/deals/migrations/0005_deal_discount_percent_num.py new file mode 100644 index 0000000..1405d84 --- /dev/null +++ b/app/deals/migrations/0005_deal_discount_percent_num.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.2 on 2023-06-29 17:07 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('deals', '0004_alter_deal_discount_percent'), + ] + + operations = [ + migrations.AddField( + model_name='deal', + name='discount_percent_num', + field=models.FloatField(null=True), + ), + ] diff --git a/app/deals/migrations/__init__.py b/app/deals/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/deals/migrations/__init__.py |