diff --git a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0001_initial.py b/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0001_initial.py deleted file mode 100644 index 7a889a5..0000000 --- a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0001_initial.py +++ /dev/null @@ -1,34 +0,0 @@ -# Generated by Django 4.0.2 on 2024-03-25 23:39 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ] - - operations = [ - migrations.CreateModel( - name='MainCategory', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=50)), - ('description', models.TextField(blank=True, null=True)), - ('image', models.ImageField(upload_to='images/categories_images/')), - ], - ), - migrations.CreateModel( - name='SubCategory', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=50)), - ('description', models.TextField(blank=True, null=True)), - ('image', models.ImageField(upload_to='images/subcategories_images/')), - ('MainCategory', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='category_module.maincategory')), - ], - ), - ] diff --git a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0002_alter_maincategory_image_alter_subcategory_image.py b/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0002_alter_maincategory_image_alter_subcategory_image.py deleted file mode 100644 index 9f29921..0000000 --- a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0002_alter_maincategory_image_alter_subcategory_image.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.0.2 on 2024-03-25 23:50 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('category_module', '0001_initial'), - ] - - operations = [ - migrations.AlterField( - model_name='maincategory', - name='image', - field=models.ImageField(upload_to='images/categories_images'), - ), - migrations.AlterField( - model_name='subcategory', - name='image', - field=models.ImageField(upload_to='images/subcategories_images'), - ), - ] diff --git a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0003_alter_maincategory_title_alter_subcategory_title.py b/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0003_alter_maincategory_title_alter_subcategory_title.py deleted file mode 100644 index 108b995..0000000 --- a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/0003_alter_maincategory_title_alter_subcategory_title.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-01 11:09 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('category_module', '0002_alter_maincategory_image_alter_subcategory_image'), - ] - - operations = [ - migrations.AlterField( - model_name='maincategory', - name='title', - field=models.CharField(max_length=50, unique=True), - ), - migrations.AlterField( - model_name='subcategory', - name='title', - field=models.CharField(max_length=50, unique=True), - ), - ] diff --git a/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/__init__.py b/Karoo_BackEnd/Karoo_BackEnd/category_module/migrations/__init__.py deleted file mode 100644 index e69de29..0000000