# Generated by Django 5.2.11 on 2026-05-17 09:28

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='StaffProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('designation', models.CharField(blank=True, help_text='Internal staff designation or working title.', max_length=120)),
                ('staff_role', models.CharField(choices=[('operations_admin', 'Operations Admin'), ('property_care_reviewer', 'Property Care Reviewer'), ('rental_reviewer', 'Rental Reviewer'), ('dating_reviewer', 'Dating Profile Reviewer'), ('service_partner_reviewer', 'Service Partner Reviewer'), ('affiliate_manager', 'Affiliate Manager'), ('finance_staff', 'Finance Staff'), ('general_staff', 'General Staff')], default='general_staff', max_length=50)),
                ('whatsapp_number', models.CharField(blank=True, max_length=30)),
                ('phone_number', models.CharField(blank=True, max_length=30)),
                ('nid_number', models.CharField(blank=True, help_text='National Identity Card number or other internal identity reference.', max_length=50)),
                ('address', models.TextField(blank=True)),
                ('profile_image', models.ImageField(blank=True, null=True, upload_to='myadmin/staff_profiles/')),
                ('is_operations_active', models.BooleanField(default=True, help_text='Indicates whether this staff member is currently active in internal operational workflows.')),
                ('internal_notes', models.TextField(blank=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='staff_profile', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Staff Profile',
                'verbose_name_plural': 'Staff Profiles',
                'ordering': ['user__first_name', 'user__last_name', 'user__username'],
            },
        ),
    ]
