# Generated by Django 5.0.4 on 2026-03-26 14:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('cpd', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='MembershipCache',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('national_id_type', models.CharField(max_length=20)),
                ('national_id_no', models.CharField(max_length=50)),
                ('membership_number', models.CharField(blank=True, max_length=50)),
                ('first_name', models.CharField(blank=True, max_length=100)),
                ('middle_name', models.CharField(blank=True, max_length=100)),
                ('last_name', models.CharField(blank=True, max_length=100)),
                ('email', models.EmailField(blank=True, max_length=254)),
                ('mobile', models.CharField(blank=True, max_length=20)),
                ('found_in_system', models.BooleanField(default=False)),
                ('last_lookup', models.DateTimeField(auto_now=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'verbose_name': 'Membership Cache',
                'verbose_name_plural': 'Membership Caches',
                'indexes': [models.Index(fields=['national_id_type', 'national_id_no'], name='cpd_members_nationa_336a89_idx'), models.Index(fields=['last_lookup'], name='cpd_members_last_lo_dd6b6f_idx')],
                'unique_together': {('national_id_type', 'national_id_no')},
            },
        ),
    ]
