# Generated by Django 5.0.2 on 2025-11-20 19:16

import django.db.models.deletion
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('paycode', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Function',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=100)),
                ('out', models.BooleanField(default=False)),
                ('break_flag', models.BooleanField(default=False, help_text='True if this stamp marks the start or end of an official break period.')),
                ('with_reason', models.BooleanField(default=False, help_text='True if this function requires a reason to be provided.')),
                ('pre_function', models.BooleanField(default=False)),
                ('function_ref_id', models.CharField(blank=True, max_length=100)),
                ('question_type', models.CharField(choices=[('none', 'None'), ('clock_in', 'Clock In'), ('clock_out', 'Clock Out'), ('lunch_in', 'Lunch In'), ('lunch_out', 'Lunch Out'), ('break_in', 'Break In'), ('break_out', 'Break Out')], default='none', help_text='Type of question/action', max_length=20)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('paycode', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='functions', to='paycode.paycode')),
            ],
            options={
                'ordering': ['-created_at'],
            },
        ),
    ]
