# Generated by Django 2.2.24 on 2021-12-07 17:54

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import intranet.femida.src.core.models
import model_utils.fields


class Migration(migrations.Migration):

    dependencies = [
        ('public_professions', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='PublicProfessionalSphere',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                ('slug', models.CharField(max_length=255, null=True, unique=True)),
                ('name_ru', models.CharField(max_length=255)),
                ('name_en', models.CharField(max_length=255)),
                ('description_ru', models.TextField(blank=True)),
                ('description_en', models.TextField(blank=True)),
                ('position', models.IntegerField(default=0)),
            ],
            options={
                'db_table': 'jobs_publicprofessionalsphere',
            },
            bases=(intranet.femida.src.core.models.I18NNameModelMixin, models.Model),
        ),
        migrations.AddField(
            model_name='publicprofession',
            name='public_professional_sphere',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='public_professions', to='public_professions.PublicProfessionalSphere'),
        ),
    ]
