<filename>apps/people/migrations/0001_initial.py<gh_stars>0
# Generated by Django 4.0.1 on 2022-06-10 23:17

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('business', '0001_initial'),
        ('control', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='people',
            fields=[
                ('dni', models.CharField(max_length=8, primary_key=True, serialize=False, unique=True)),
                ('name', models.CharField(max_length=80, null=True)),
                ('first_name', models.CharField(max_length=100, null=True)),
                ('last_name', models.CharField(max_length=100, null=True)),
                ('birth_date', models.DateField(null=True)),
                ('address', models.CharField(max_length=150, null=True)),
                ('phone', models.CharField(max_length=150, null=True)),
                ('email', models.CharField(max_length=150, null=True)),
                ('user_photo_path', models.ImageField(null=True, upload_to='people')),
                ('profile_information', models.TextField(null=True)),
                ('status', models.BooleanField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True, null=True)),
                ('delete_at', models.DateTimeField(null=True)),
                ('business_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='business.business')),
                ('geographic_location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='control.geographic_location')),
                ('marial_status', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='control.marial_status')),
                ('sex', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='control.sex')),
            ],
            options={
                'verbose_name_plural': 'Usuarios',
                'db_table': 'people',
                'ordering': ['name'],
            },
        ),
    ]
