# Generated by Django 5.2.7 on 2026-01-27 18:32

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='breakdown',
            name='notes',
            field=models.TextField(blank=True, null=True, verbose_name='Примечания'),
        ),
        migrations.AddField(
            model_name='breakdown',
            name='photo',
            field=models.ImageField(blank=True, null=True, upload_to='breakdown_photos/', verbose_name='Фото'),
        ),
        migrations.AddField(
            model_name='fleetunit',
            name='qr_code',
            field=models.ImageField(blank=True, null=True, upload_to='qrcodes/', verbose_name='QR-код'),
        ),
        migrations.AddField(
            model_name='maintenance',
            name='checklist',
            field=models.JSONField(blank=True, default=list, verbose_name='Чек-лист'),
        ),
        migrations.AddField(
            model_name='maintenance',
            name='mechanic',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='assigned_maintenances', to=settings.AUTH_USER_MODEL, verbose_name='Исполнитель'),
        ),
        migrations.AddField(
            model_name='maintenance',
            name='parts_used',
            field=models.TextField(blank=True, null=True, verbose_name='Использованные запчасти'),
        ),
        migrations.AddField(
            model_name='maintenance',
            name='photo',
            field=models.ImageField(blank=True, null=True, upload_to='maintenance_photos/', verbose_name='Фото'),
        ),
        migrations.AddField(
            model_name='partrequest',
            name='breakdown',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='part_requests', to='core.breakdown', verbose_name='Поломка'),
        ),
        migrations.AlterField(
            model_name='maintenance',
            name='m_type',
            field=models.CharField(choices=[('TO-250', 'ТО-250'), ('TO-500', 'ТО-500'), ('seasonal', 'Сезонное'), ('special', 'Спец')], max_length=50, verbose_name='Тип ТО'),
        ),
    ]
