# Generated by Django 3.0.8 on 2020-08-01 04:44

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('planing', '0217_auto_20200801_0441'),
    ]

    operations = [
        migrations.AddConstraint(
            model_name='operation_resources',
            constraint=models.UniqueConstraint(condition=models.Q(('location_fin', None), ('resource_fin', None)), fields=('operation', 'resource'), name='Operation_resources_unique_constraint_planing_0'),
        ),
        migrations.AddConstraint(
            model_name='operation_resources',
            constraint=models.UniqueConstraint(condition=models.Q(location_fin=None), fields=('operation', 'resource', 'resource_fin'), name='Operation_resources_unique_constraint_planing_1'),
        ),
        migrations.AddConstraint(
            model_name='operation_resources',
            constraint=models.UniqueConstraint(condition=models.Q(resource_fin=None), fields=('location_fin', 'operation', 'resource'), name='Operation_resources_unique_constraint_planing_2'),
        ),
        migrations.AddConstraint(
            model_name='operation_resources',
            constraint=models.UniqueConstraint(fields=('location_fin', 'operation', 'resource', 'resource_fin'), name='Operation_resources_unique_constraint_planing_3'),
        ),
    ]
