# Generated by Django 5.2.7 on 2025-11-06 12:10

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Vehicule',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('immatriculation', models.TextField(max_length=15, verbose_name='Immatriculation')),
                ('image', models.ImageField(upload_to='vehicule_image', verbose_name='Image de la voiture')),
                ('disponible', models.BooleanField(default=True, verbose_name='Vehicule disponible ?')),
            ],
        ),
        migrations.CreateModel(
            name='DemandeVehicule',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('lieu_depart', models.TextField(verbose_name='Lieu de départ')),
                ('lieu_arrive', models.TextField(verbose_name="Lieu d'arrivée")),
                ('date_heure', models.DateTimeField(verbose_name="Date et heure d'arrivée")),
                ('validation', models.BooleanField(default=None, verbose_name='Validation par le logisticien')),
                ('vehicule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_vehicule.vehicule')),
            ],
        ),
        migrations.CreateModel(
            name='CarnetCarburant',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(verbose_name='Date')),
                ('nom_station', models.TextField(verbose_name='Nom de la station-service')),
                ('type_carburant', models.TextField(choices=[('essence', 'Essence'), ('gazoil', 'Gazoil')], verbose_name='Type du carburant')),
                ('litre', models.IntegerField(verbose_name='Litre')),
                ('prix', models.IntegerField(verbose_name='Prix par litre (en GNF)')),
                ('kilometrage', models.IntegerField(verbose_name='Kilometrage')),
                ('observation', models.TextField(verbose_name='Observation')),
                ('vehicule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_vehicule.vehicule')),
            ],
        ),
        migrations.CreateModel(
            name='CarnetBord',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mois_concerne', models.DateField(verbose_name='Mois et année concernée')),
                ('km_debut_mois', models.IntegerField(verbose_name='Km en début du mois')),
                ('km_fin_mois', models.IntegerField(verbose_name='Km en fin du mois')),
                ('vehicule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion_vehicule.vehicule')),
            ],
        ),
    ]
