added worker departments

This commit is contained in:
Alexander Karpov 2022-10-08 16:07:41 +03:00
parent a70763d6bc
commit dada351290
4 changed files with 0 additions and 122 deletions

View File

@ -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),
),
]

View File

@ -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)]),
),
]

View File

@ -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'),
),
]

View File

@ -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)]),
),
]