# Generated by Django 2.2.6 on 2019-10-28 17:21

import bitfield.models
import django.utils.timezone
from django.db import migrations, models

import isc_common.fields.code_field
import isc_common.fields.description_field
import isc_common.fields.name_field
import isc_common.fields.related


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0095_auto_20191025_1311'),
    ]

    operations = [
        migrations.AddField(
            model_name='dogovors',
            name='props',
            field=bitfield.models.BitField((('real', 'Реальный документ'),), db_index=True, default=1),
        ),
        migrations.CreateModel(
            name='Precent_types',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False, verbose_name='Идентификатор')),
                ('deleted_at', models.DateTimeField(blank=True, db_index=True, null=True, verbose_name='Дата мягкого удаления')),
                ('editing', models.BooleanField(default=True, verbose_name='Возможность редактирования')),
                ('deliting', models.BooleanField(default=True, verbose_name='Возможность удаления')),
                ('lastmodified', models.DateTimeField(db_index=True, default=django.utils.timezone.now, editable=False, verbose_name='Последнее обновление')),
                ('code', isc_common.fields.code_field.CodeField(blank=True, null=True)),
                ('name', isc_common.fields.name_field.NameField(blank=True, null=True)),
                ('description', isc_common.fields.description_field.DescriptionField()),
                ('props', bitfield.models.BitField((('enableDogovor', 'Наличие договора'),), db_index=True, default=1)),
                ('precent_type', isc_common.fields.related.ForeignKeyProtect(on_delete=django.db.models.deletion.PROTECT, to='sales.Precent_item_types')),
            ],
            options={
                'verbose_name': 'Типы распоряжений',
            },
        ),
        migrations.AddField(
            model_name='precent',
            name='type',
            field=isc_common.fields.related.ForeignKeyProtect(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='sales.Precent_types'),
        ),
    ]
