# Generated by Django 6.0.4 on 2026-05-14 14:40

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


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0005_contributionallocation'),
    ]

    operations = [
        migrations.CreateModel(
            name='MemberProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('gender', models.CharField(blank=True, choices=[('M', 'Me (Mwanamume)'), ('F', 'Ke (Mwanamke)'), ('', 'Sijataja')], max_length=1, null=True)),
                ('date_of_birth', models.DateField(blank=True, null=True)),
                ('marital_status', models.CharField(blank=True, choices=[('married', 'Nimeoa/Nimeolewa'), ('single', 'Sijaoa/Sijaolewa'), ('divorced', 'Nimeachana/Talaka'), ('widowed', 'Mjane/Mfiwa'), ('', 'Sijataja')], max_length=10, null=True)),
                ('number_of_children', models.PositiveSmallIntegerField(blank=True, default=0, null=True)),
                ('spouse_phone', models.CharField(blank=True, max_length=13, null=True, verbose_name='Namba ya mwenzi')),
                ('emergency_phone', models.CharField(blank=True, max_length=13, null=True, verbose_name='Namba ya dharura')),
                ('email', models.EmailField(blank=True, max_length=254, null=True)),
                ('physical_address', models.TextField(blank=True, null=True)),
                ('region', models.CharField(blank=True, max_length=50, null=True)),
                ('district', models.CharField(blank=True, max_length=50, null=True)),
                ('ward', models.CharField(blank=True, max_length=50, null=True)),
                ('education_level', models.CharField(blank=True, choices=[('none', 'Hakusoma'), ('primary', 'Elimu ya Msingi'), ('secondary', 'Elimu ya Sekondari'), ('diploma', 'Diploma'), ('degree', 'Shahada ya Kwanza'), ('masters', 'Shahada ya Uzamili'), ('phd', 'PhD / Daktari'), ('professional', 'Professional Course'), ('', 'Sijataja')], max_length=20, null=True)),
                ('profession', models.CharField(blank=True, max_length=100, null=True, verbose_name='Taaluma/Kazi')),
                ('place_of_work', models.CharField(blank=True, max_length=200, null=True, verbose_name='Mahali pa kazi')),
                ('skills', models.TextField(blank=True, help_text='Ujuzi wako (tenganisha kwa comma)', null=True)),
                ('can_help_with', models.TextField(blank=True, help_text='Unaweza kusaidia wanachama wenzako kwa namna gani?', null=True)),
                ('business_name', models.CharField(blank=True, max_length=200, null=True)),
                ('business_type', models.CharField(blank=True, max_length=100, null=True)),
                ('business_products', models.TextField(blank=True, null=True)),
                ('business_location', models.CharField(blank=True, max_length=200, null=True)),
                ('hobbies', models.TextField(blank=True, null=True)),
                ('bio', models.TextField(blank=True, help_text='Maelezo mafupi kukuhusu', null=True)),
                ('phone_privacy', models.CharField(choices=[('public', 'Wanachama wote'), ('leaders', 'Viongozi tu')], default='public', max_length=10)),
                ('address_privacy', models.CharField(choices=[('public', 'Wanachama wote'), ('leaders', 'Viongozi tu')], default='leaders', max_length=10)),
                ('business_privacy', models.CharField(choices=[('public', 'Wanachama wote'), ('leaders', 'Viongozi tu')], default='public', max_length=10)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('filled_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='filled_profiles', to=settings.AUTH_USER_MODEL)),
                ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='member_profiles', to='app.group')),
                ('member', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to='app.member')),
            ],
            options={
                'verbose_name': 'Profaili ya Mwanachama',
                'verbose_name_plural': 'Profaili za Wanachama',
                'unique_together': {('member', 'group')},
            },
        ),
    ]
