# Generated by Django 5.2.7 on 2025-11-27 07:49

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0002_machinemodel_serviceintervention_sparepart_and_more'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='machinemodel',
            options={'verbose_name': 'Modelo de Máquina', 'verbose_name_plural': 'Modelos de Máquinas'},
        ),
        migrations.AlterModelOptions(
            name='serviceintervention',
            options={'verbose_name': 'Intervención de Servicio', 'verbose_name_plural': 'Intervenciones de Servicio'},
        ),
        migrations.AlterModelOptions(
            name='sparepart',
            options={'verbose_name': 'Repuesto', 'verbose_name_plural': 'Repuestos'},
        ),
        migrations.AlterField(
            model_name='machinemodel',
            name='brand',
            field=models.CharField(max_length=100, verbose_name='Marca'),
        ),
        migrations.AlterField(
            model_name='machinemodel',
            name='manual_pdf',
            field=models.FileField(blank=True, null=True, upload_to='manuals/', verbose_name='Manual (PDF)'),
        ),
        migrations.AlterField(
            model_name='machinemodel',
            name='name',
            field=models.CharField(max_length=200, verbose_name='Nombre'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Fecha de Creación'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='description',
            field=models.TextField(verbose_name='Descripción'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='machine',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='interventions', to='core.machinemodel', verbose_name='Máquina'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='resolved_at',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Fecha de Resolución'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='status',
            field=models.CharField(choices=[('PENDING', 'Pendiente'), ('IN_PROGRESS', 'En Progreso'), ('COMPLETED', 'Completada'), ('CANCELLED', 'Cancelada')], default='PENDING', max_length=20, verbose_name='Estado'),
        ),
        migrations.AlterField(
            model_name='serviceintervention',
            name='technician',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='interventions', to=settings.AUTH_USER_MODEL, verbose_name='Técnico'),
        ),
        migrations.AlterField(
            model_name='sparepart',
            name='description',
            field=models.TextField(blank=True, verbose_name='Descripción'),
        ),
        migrations.AlterField(
            model_name='sparepart',
            name='low_stock_threshold',
            field=models.PositiveIntegerField(default=10, verbose_name='Umbral de Stock Bajo'),
        ),
        migrations.AlterField(
            model_name='sparepart',
            name='name',
            field=models.CharField(max_length=200, verbose_name='Nombre'),
        ),
        migrations.AlterField(
            model_name='sparepart',
            name='reference_code',
            field=models.CharField(max_length=100, unique=True, verbose_name='Código de Referencia'),
        ),
        migrations.AlterField(
            model_name='sparepart',
            name='stock_quantity',
            field=models.PositiveIntegerField(default=0, verbose_name='Cantidad en Stock'),
        ),
    ]
