# Generated by Django 1.11.2 on 2018-08-20 19:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('professions', '0001_initial'),
        ('vacancies', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('interviews', '0002_auto_20180820_1908'),
        ('candidates', '0002_auto_20180820_1908'),
        ('offers', '0001_initial'),
        ('attachments', '0002_attachment_uploader'),
        ('staff', '0001_initial'),
        ('core', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='offerrejection',
            name='creator',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offerrejection',
            name='modifier',
            field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offerrejection',
            name='offer',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='rejection', to='offers.Offer'),
        ),
        migrations.AddField(
            model_name='offerprofilecomment',
            name='created_by',
            field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offerprofilecomment',
            name='offer_profile',
            field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='offers.OfferProfile'),
        ),
        migrations.AddField(
            model_name='offerprofile',
            name='creator',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offerprofile',
            name='modifier',
            field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offerprofile',
            name='offer',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to='offers.Offer'),
        ),
        migrations.AddField(
            model_name='offerattachment',
            name='attachment',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='offer_attachments', to='attachments.Attachment'),
        ),
        migrations.AddField(
            model_name='offerattachment',
            name='offer',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='offer_attachments', to='offers.Offer'),
        ),
        migrations.AddField(
            model_name='offerattachment',
            name='offer_profile',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='offer_profile_attachments', to='offers.OfferProfile'),
        ),
        migrations.AddField(
            model_name='offer',
            name='abc_services',
            field=models.ManyToManyField(blank=True, related_name='offers', to='staff.Service'),
        ),
        migrations.AddField(
            model_name='offer',
            name='application',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='offers', to='interviews.Application'),
        ),
        migrations.AddField(
            model_name='offer',
            name='attachments',
            field=models.ManyToManyField(related_name='offers', through='offers.OfferAttachment', to='attachments.Attachment'),
        ),
        migrations.AddField(
            model_name='offer',
            name='boss',
            field=models.ForeignKey(db_column='boss_id', null=True, on_delete=django.db.models.deletion.PROTECT, related_name='employee_offers', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offer',
            name='candidate',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='offers', to='candidates.Candidate'),
        ),
        migrations.AddField(
            model_name='offer',
            name='creator',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offer',
            name='department',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='offers', to='staff.Department'),
        ),
        migrations.AddField(
            model_name='offer',
            name='modifier',
            field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='offer',
            name='office',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='staff.Office',
            ),
        ),
        migrations.AddField(
            model_name='offer',
            name='org',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='staff.Organization'),
        ),
        migrations.AddField(
            model_name='offer',
            name='payment_currency',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name='+',
                to='core.Currency',
            ),
        ),
        migrations.AddField(
            model_name='offer',
            name='position',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='offers.Position'),
        ),
        migrations.AddField(
            model_name='offer',
            name='profession',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='professions.Profession'),
        ),
        migrations.AddField(
            model_name='offer',
            name='salary_expectations_currency',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='core.Currency'),
        ),
        migrations.AddField(
            model_name='offer',
            name='vacancy',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='offers', to='vacancies.Vacancy'),
        ),
        migrations.AddField(
            model_name='link',
            name='offer',
            field=models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='offers.Offer'),
        ),
    ]
