# Generated by Django 4.0 on 2022-05-01 17:03

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


class Migration(migrations.Migration):

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
        ('collabs', '0017_alter_collabs_hour_options'),
    ]

    operations = [
        migrations.CreateModel(
            name='Collabs_hour_types',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, verbose_name='Dénomination')),
                ('dtUpdate', models.DateTimeField(auto_now=True, verbose_name='Date de modification')),
                ('dtCreated', models.DateTimeField(auto_now_add=True, verbose_name='Date de création')),
            ],
            options={
                'verbose_name': 'type',
                'verbose_name_plural': 'types',
            },
        ),
        migrations.AlterModelOptions(
            name='collabs_hour',
            options={'permissions': (('can_notice', 'Peut noter comme traitée'),), 'verbose_name': 'heure supplémentaire', 'verbose_name_plural': 'heures supplémentaires'},
        ),
        migrations.AlterField(
            model_name='collabs_hour',
            name='user',
            field=models.ForeignKey(limit_choices_to={'groups__name': 'Intervenants'}, on_delete=django.db.models.deletion.DO_NOTHING, to='auth.user', verbose_name='Collaborateur'),
        ),
        migrations.AddField(
            model_name='collabs_hour',
            name='type',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.DO_NOTHING, to='collabs.collabs_hour_types', verbose_name='Types'),
            preserve_default=False,
        ),
    ]
