# Generated by Django 2.2.4 on 2020-01-05 23:58

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('api', '0066_shift_author'),
    ]

    operations = [
        migrations.CreateModel(
            name='PreDefinedDeduction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('type', models.CharField(choices=[('PERCENTAGE', 'percentage'), ('AMOUNT', 'amount')], default='PERCENTAGE', max_length=200)),
                ('value', models.FloatField()),
            ],
        ),
        migrations.CreateModel(
            name='EmployerDeduction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('description', models.TextField()),
                ('type', models.CharField(choices=[('PERCENTAGE', 'percentage'), ('AMOUNT', 'amount')], default='PERCENTAGE', max_length=200)),
                ('value', models.FloatField()),
                ('lock', models.BooleanField(blank=True, default=False)),
                ('employer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Employer')),
            ],
        ),
    ]
