# Generated by Django 5.0.1 on 2026-06-16 10:54

import core.models
import django.utils.timezone
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BankDetail',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bank_name', models.CharField(max_length=255)),
                ('account_name', models.CharField(max_length=255)),
                ('account_number', models.CharField(max_length=100)),
                ('branch', models.CharField(max_length=255)),
                ('qr_code', models.ImageField(blank=True, null=True, upload_to='qrs/')),
                ('is_active', models.BooleanField(default=True)),
            ],
        ),
        migrations.CreateModel(
            name='CardTemplate',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='Default Template', max_length=100)),
                ('image', models.ImageField(upload_to='templates/')),
                ('coordinates', models.JSONField(default=dict)),
                ('is_active', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='Member',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('membership_id', models.CharField(default=core.models.generate_membership_id, max_length=20, unique=True)),
                ('status', models.CharField(default='under_review', max_length=50)),
                ('payment_status', models.CharField(default='unpaid', max_length=50)),
                ('pin', models.CharField(blank=True, max_length=128, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('name_nepali', models.CharField(blank=True, max_length=255)),
                ('name_english', models.CharField(max_length=255)),
                ('father_name', models.CharField(blank=True, max_length=255)),
                ('mother_name', models.CharField(blank=True, max_length=255)),
                ('gender', models.CharField(blank=True, max_length=50)),
                ('dob', models.DateField(blank=True, null=True)),
                ('dob_bs', models.CharField(blank=True, max_length=20)),
                ('jaati', models.CharField(blank=True, max_length=100)),
                ('marital', models.CharField(blank=True, max_length=100)),
                ('blood_group', models.CharField(blank=True, max_length=10)),
                ('education', models.CharField(blank=True, max_length=100)),
                ('profession', models.CharField(blank=True, max_length=100)),
                ('organization', models.CharField(blank=True, max_length=255)),
                ('phones', models.JSONField(default=list)),
                ('emails', models.JSONField(blank=True, default=list)),
                ('citizenship_no', models.CharField(blank=True, max_length=100)),
                ('citizenship_issued_district', models.CharField(blank=True, max_length=100)),
                ('voter_id', models.CharField(blank=True, max_length=100)),
                ('membership_type', models.CharField(blank=True, max_length=100)),
                ('referred_by', models.CharField(blank=True, max_length=255)),
                ('motivation', models.TextField(blank=True)),
                ('address', models.JSONField(default=dict)),
            ],
        ),
        migrations.CreateModel(
            name='OTPLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('phone_number', models.CharField(max_length=20)),
                ('otp_code', models.CharField(max_length=6)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('is_used', models.BooleanField(default=False)),
            ],
        ),
    ]
