# Generated by Django 5.2.6 on 2025-11-18 10:35

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='Rider',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('full_name', models.CharField(max_length=255)),
                ('display_name', models.CharField(blank=True, max_length=255, null=True)),
                ('dob', models.DateField(blank=True, null=True)),
                ('mobile_number', models.CharField(max_length=20)),
                ('email', models.EmailField(blank=True, max_length=254, null=True)),
                ('profile_pic', models.ImageField(blank=True, null=True, upload_to='riders/profile/')),
                ('aadhar_front', models.ImageField(blank=True, null=True, upload_to='riders/documents/aadhar/')),
                ('aadhar_back', models.ImageField(blank=True, null=True, upload_to='riders/documents/aadhar/')),
                ('pan_card_image', models.ImageField(blank=True, null=True, upload_to='riders/documents/pancard/')),
                ('driving_license_front', models.ImageField(blank=True, null=True, upload_to='riders/documents/driving_license/')),
                ('driving_license_back', models.ImageField(blank=True, null=True, upload_to='riders/documents/driving_license/')),
                ('status', models.CharField(choices=[('active', 'Active'), ('inactive', 'Inactive')], default='active', max_length=10)),
                ('trash', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rider_profile', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
