# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2020-01-03 17:29
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import mysite.admin.abstract_cloud_model
import mysite.personnel.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('acc', '0002_auto_20200103_1729'),
        ('att', '0002_auto_20200103_1729'),
        ('personnel', '0002_auto_20200103_1729'),
    ]

    operations = [
        migrations.AddField(
            model_name='accholiday',
            name='holiday',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='att.Holiday', verbose_name='accHoliday_field_holiday'),
        ),
        migrations.AddField(
            model_name='accholiday',
            name='timezone',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='acc.AccTimezone', verbose_name='accHoliday_field_timezone'),
        ),
        migrations.AddField(
            model_name='accgroups',
            name='area',
            field=mysite.personnel.fields.AreaForeignKey(on_delete=django.db.models.deletion.CASCADE, to='personnel.Area', verbose_name='accPrivilege_field_area'),
        ),
        migrations.AddField(
            model_name='accgroups',
            name='company',
            field=models.ForeignKey(blank=True, default=mysite.admin.abstract_cloud_model.get_current_company, null=True, on_delete=django.db.models.deletion.CASCADE, to='personnel.Company'),
        ),
        migrations.AddField(
            model_name='acccombination',
            name='area',
            field=mysite.personnel.fields.AreaForeignKey(on_delete=django.db.models.deletion.CASCADE, to='personnel.Area', verbose_name='accPrivilege_field_area'),
        ),
        migrations.AddField(
            model_name='acccombination',
            name='company',
            field=models.ForeignKey(blank=True, default=mysite.admin.abstract_cloud_model.get_current_company, null=True, on_delete=django.db.models.deletion.CASCADE, to='personnel.Company'),
        ),
        migrations.AlterUniqueTogether(
            name='acctimezone',
            unique_together=set([('area', 'timezone_no')]),
        ),
        migrations.AlterUniqueTogether(
            name='accprivilege',
            unique_together=set([('area', 'employee', 'group')]),
        ),
        migrations.AlterUniqueTogether(
            name='accholiday',
            unique_together=set([('area', 'holiday')]),
        ),
        migrations.AlterUniqueTogether(
            name='accgroups',
            unique_together=set([('area', 'group_no')]),
        ),
        migrations.AlterUniqueTogether(
            name='acccombination',
            unique_together=set([('area', 'combination_no')]),
        ),
    ]
