# Generated by Django 5.0.2 on 2025-11-20 19:16

import django.utils.timezone
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('employee_no', models.CharField(blank=True, max_length=50, null=True, unique=True)),
                ('firstname', models.CharField(max_length=100)),
                ('middlename', models.CharField(blank=True, max_length=100, null=True)),
                ('lastname', models.CharField(max_length=100)),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('password', models.CharField(max_length=255)),
                ('lang', models.CharField(choices=[('en', 'English'), ('fi', 'Finnish'), ('sv', 'Swedish')], default='en', help_text="User's preferred language", max_length=10)),
                ('compliance_enabled', models.BooleanField(default=True, help_text='Enable real-time compliance monitoring and preventive notifications')),
                ('hire_start_date', models.DateField(blank=True, null=True)),
                ('hire_end_date', models.DateField(blank=True, null=True)),
                ('must_change_password', models.BooleanField(default=False, help_text='Force user to change password on next login')),
                ('password_changed_at', models.DateTimeField(blank=True, help_text='When the password was last changed', null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'users',
                'ordering': ['-created_at'],
            },
        ),
    ]
