# Generated by Django 5.0.7 on 2024-07-28 18:34

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Vehicles',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sName', models.CharField(max_length=250, verbose_name='Indicatif')),
                ('nBases', models.CharField(choices=[('1', 'Monthey'), ('2', 'Uvrier')], default=1, max_length=1, verbose_name='Basé à ')),
                ('nStatus', models.CharField(choices=[('1', 'Opérationnel'), ('2', 'Réserve'), ('3', 'Utilisation altérée'), ('4', 'Hors Service')], default=1, max_length=1, verbose_name='Statut')),
                ('nType', models.CharField(choices=[('1', 'Ambulance Urgence'), ('2', 'Ambulance Transfert'), ('3', 'Véhicule service')], default=1, max_length=1, verbose_name='Type')),
                ('bLucas', models.BooleanField(default=0, verbose_name='Lucas')),
                ('nOrder', models.IntegerField(default=0, verbose_name='Ordre')),
                ('nTeam', models.CharField(choices=[('1', 'Équipe 1'), ('2', 'Equipe 2'), ('3', 'Equipe 3'), ('4', 'Equipe 4')], default=1, max_length=1, verbose_name='Équipe')),
            ],
            options={
                'verbose_name': 'véhicule',
                'verbose_name_plural': 'véhicules',
            },
        ),
        migrations.CreateModel(
            name='Vehicles_infos',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nType', models.CharField(choices=[('1', 'Technique'), ('2', 'Matériel'), ('3', 'Péremption')], default=1, max_length=1, verbose_name='Type')),
                ('sDesc', models.TextField(verbose_name='Description')),
                ('bEnabled', models.BooleanField(default=1, verbose_name='Actif')),
                ('dtStart', models.DateField(verbose_name='Date de début')),
                ('dtEnd', models.DateField(blank=True, null=True, verbose_name='Date de fin')),
                ('sAuthor', models.CharField(max_length=120, verbose_name='auteur string')),
                ('dtUpdated', models.DateTimeField(auto_now=True, verbose_name='date updated')),
                ('dtCreated', models.DateTimeField(auto_now_add=True, verbose_name='date published')),
                ('Author', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='Auteur')),
                ('Vehicle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='vehicles_infos', to='vehicles.vehicles', verbose_name='Véhicule')),
            ],
            options={
                'verbose_name': 'véhicule info',
                'verbose_name_plural': 'véhicule infos',
            },
        ),
    ]
