# Generated by Django 5.1.4 on 2024-12-16 23:37

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


class Migration(migrations.Migration):

    dependencies = [
        ('antifroud', '0011_alter_importedhotel_external_id'),
        ('hotels', '0010_alter_hotel_timezone'),
    ]

    operations = [
        migrations.CreateModel(
            name='ViolationLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('room_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Номер комнаты')),
                ('violation_type', models.CharField(choices=[('missed', 'Неявка'), ('early', 'Раннее заселение'), ('late', 'Позднее заселение')], max_length=50, verbose_name='Тип нарушения')),
                ('violation_details', models.TextField(blank=True, null=True, verbose_name='Детали нарушения')),
                ('detected_at', models.DateTimeField(auto_now_add=True, verbose_name='Дата обнаружения')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Дата создания')),
                ('hotel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='hotels.hotel', verbose_name='Отель')),
            ],
            options={
                'verbose_name': 'Журнал нарушений',
                'verbose_name_plural': 'Журналы нарушений',
            },
        ),
    ]
