# Generated by Django 5.2.8 on 2025-12-07 21:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('schedule', '0029_add_user_can_edit_schedule'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='timeblock',
            name='approval_status',
            field=models.CharField(choices=[('APPROVED', 'Approved'), ('PENDING', 'Pending Review'), ('DENIED', 'Denied')], db_index=True, default='APPROVED', help_text='Approval status for time-off requests', max_length=20),
        ),
        migrations.AddField(
            model_name='timeblock',
            name='review_notes',
            field=models.TextField(blank=True, help_text='Optional notes from reviewer'),
        ),
        migrations.AddField(
            model_name='timeblock',
            name='reviewed_at',
            field=models.DateTimeField(blank=True, help_text='When the request was reviewed', null=True),
        ),
        migrations.AddField(
            model_name='timeblock',
            name='reviewed_by',
            field=models.ForeignKey(blank=True, help_text='Manager/owner who reviewed the request', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='reviewed_time_blocks', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddIndex(
            model_name='timeblock',
            index=models.Index(fields=['approval_status'], name='schedule_ti_approva_127dbb_idx'),
        ),
    ]
