# Generated by Django 5.0.2 on 2025-11-20 19:16

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='WorkBalance',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('user_id', models.CharField(max_length=32)),
                ('date', models.DateField()),
                ('regular_work_seconds', models.PositiveIntegerField(default=0)),
                ('total_work_seconds', models.PositiveIntegerField(default=0)),
                ('daily_break_seconds', models.PositiveIntegerField(default=0)),
                ('net_work_seconds', models.PositiveIntegerField(default=0)),
                ('overtime_seconds', models.IntegerField(default=0)),
                ('flex_seconds', models.IntegerField(default=0)),
                ('bank_credited_seconds', models.IntegerField(default=0)),
                ('bank_debited_seconds', models.IntegerField(default=0)),
                ('overtime_balance_seconds', models.IntegerField(default=0)),
                ('toil_seconds', models.IntegerField(default=0)),
                ('vacation_days_accrued', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
                ('lunch_break_missing_flag', models.BooleanField(default=False)),
                ('daily_rest_violation_flag', models.BooleanField(default=False)),
                ('weekly_rest_violation_flag', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'workbalances',
                'indexes': [models.Index(fields=['user_id', 'date'], name='workbalance_user_id_8d4129_idx')],
                'unique_together': {('user_id', 'date')},
            },
        ),
    ]
