# Generated by Django 5.2.4 on 2025-08-22 10:12

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


class Migration(migrations.Migration):

    dependencies = [
        ('companies', '0002_alter_company_default_transfer_staff'),
    ]

    operations = [
        migrations.CreateModel(
            name='OfficeHours',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('day', models.CharField(choices=[('monday', 'Monday'), ('tuesday', 'Tuesday'), ('wednesday', 'Wednesday'), ('thursday', 'Thursday'), ('friday', 'Friday'), ('saturday', 'Saturday'), ('sunday', 'Sunday')], max_length=10)),
                ('is_open', models.BooleanField(default=False, help_text='Whether the office is open on this day')),
                ('start_time', models.TimeField(blank=True, help_text='Office opening time', null=True)),
                ('end_time', models.TimeField(blank=True, help_text='Office closing time', null=True)),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='office_hours', to='companies.company')),
            ],
            options={
                'verbose_name_plural': 'Office Hours',
                'ordering': ['day'],
                'unique_together': {('company', 'day')},
            },
        ),
    ]
