# Generated by Django 4.0 on 2022-03-06 19:55

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Collabs_hour',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('userName', models.CharField(max_length=100, verbose_name='Auteur')),
                ('nHour', models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(23)], verbose_name='Heures')),
                ('nMinutes', models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(60)], verbose_name='Minutes')),
                ('sRemarques', models.TextField(blank=True, verbose_name='Remarques')),
                ('bNoticed', models.BooleanField(blank=True, default=False, verbose_name='Vérifiée')),
                ('dtDate', models.DateField(verbose_name='Date')),
                ('sBases', models.CharField(choices=[('1', 'Monthey'), ('2', 'Uvrier')], default=1, max_length=1, verbose_name='Employé de la base de')),
                ('dtUpdate', models.DateTimeField(auto_now=True, verbose_name='Date de modification')),
                ('dtCreated', models.DateTimeField(auto_now_add=True, verbose_name='Date de création')),
                ('user', models.ForeignKey(default=0, on_delete=django.db.models.deletion.DO_NOTHING, to='auth.user', verbose_name='Collaborateur')),
            ],
            options={
                'verbose_name': 'heure suplémentaire',
                'verbose_name_plural': 'heures suplémentaires',
                'permissions': (('can_notice', 'Peut noter comme traitée'),),
            },
        ),
    ]
