From dada351290bd4f00773b46a327ac835840d5f7a9 Mon Sep 17 00:00:00 2001 From: Alexander-D-Karpov Date: Sat, 8 Oct 2022 16:07:41 +0300 Subject: [PATCH] added worker departments --- ..._product_slug_alter_product_description.py | 23 ---------- .../migrations/0003_alter_product_price.py | 19 -------- ...02_clan_user_salary_user_type_user_clan.py | 36 --------------- ...ame_user_respect_user_telegram_and_more.py | 44 ------------------- 4 files changed, 122 deletions(-) delete mode 100644 app/marketplace/migrations/0002_product_slug_alter_product_description.py delete mode 100644 app/marketplace/migrations/0003_alter_product_price.py delete mode 100644 app/users/migrations/0002_clan_user_salary_user_type_user_clan.py delete mode 100644 app/users/migrations/0003_user_name_user_respect_user_telegram_and_more.py diff --git a/app/marketplace/migrations/0002_product_slug_alter_product_description.py b/app/marketplace/migrations/0002_product_slug_alter_product_description.py deleted file mode 100644 index bb32d21..0000000 --- a/app/marketplace/migrations/0002_product_slug_alter_product_description.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 4.0.8 on 2022-10-08 09:27 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('marketplace', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='product', - name='slug', - field=models.SlugField(max_length=20, null=True), - ), - migrations.AlterField( - model_name='product', - name='description', - field=models.TextField(blank=True), - ), - ] diff --git a/app/marketplace/migrations/0003_alter_product_price.py b/app/marketplace/migrations/0003_alter_product_price.py deleted file mode 100644 index 44bddef..0000000 --- a/app/marketplace/migrations/0003_alter_product_price.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 4.0.8 on 2022-10-08 11:42 - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('marketplace', '0002_product_slug_alter_product_description'), - ] - - operations = [ - migrations.AlterField( - model_name='product', - name='price', - field=models.IntegerField(validators=[django.core.validators.MinValueValidator(0)]), - ), - ] diff --git a/app/users/migrations/0002_clan_user_salary_user_type_user_clan.py b/app/users/migrations/0002_clan_user_salary_user_type_user_clan.py deleted file mode 100644 index c45d8e7..0000000 --- a/app/users/migrations/0002_clan_user_salary_user_type_user_clan.py +++ /dev/null @@ -1,36 +0,0 @@ -# Generated by Django 4.0.8 on 2022-10-08 09:27 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Clan', - fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('name', models.CharField(max_length=100, null=True)), - ], - ), - migrations.AddField( - model_name='user', - name='salary', - field=models.IntegerField(default=0), - ), - migrations.AddField( - model_name='user', - name='type', - field=models.CharField(choices=[('WORKER', 'worker'), ('HR', 'human resources'), ('ADMIN', 'administrator')], default='WORKER', max_length=6), - ), - migrations.AddField( - model_name='user', - name='clan', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='users.clan'), - ), - ] diff --git a/app/users/migrations/0003_user_name_user_respect_user_telegram_and_more.py b/app/users/migrations/0003_user_name_user_respect_user_telegram_and_more.py deleted file mode 100644 index a9d303f..0000000 --- a/app/users/migrations/0003_user_name_user_respect_user_telegram_and_more.py +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by Django 4.0.8 on 2022-10-08 11:42 - -import django.core.validators -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0002_clan_user_salary_user_type_user_clan'), - ] - - operations = [ - migrations.AddField( - model_name='user', - name='name', - field=models.CharField(max_length=120, null=True), - ), - migrations.AddField( - model_name='user', - name='respect', - field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)]), - ), - migrations.AddField( - model_name='user', - name='telegram', - field=models.CharField(max_length=100, null=True, unique=True), - ), - migrations.AddField( - model_name='user', - name='wallet_private_key', - field=models.CharField(max_length=96, null=True, unique=True), - ), - migrations.AddField( - model_name='user', - name='wallet_public_key', - field=models.CharField(max_length=96, null=True, unique=True), - ), - migrations.AlterField( - model_name='user', - name='salary', - field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)]), - ), - ]