# Generated by Django 2.1.2 on 2018-11-26 16:27

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Adoptante',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=50)),
                ('edad_años', models.IntegerField()),
                ('cel', models.CharField(max_length=15)),
                ('email', models.EmailField(max_length=254)),
                ('direccion', models.TextField(max_length=50)),
                ('mascota_a_adoptar', models.CharField(blank=True, max_length=30, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Mascota',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=50)),
                ('sexo', models.CharField(choices=[('hembra', 'Hembra'), ('macho', 'Macho')], max_length=15)),
                ('edad_aproximada_años', models.IntegerField()),
                ('raza', models.CharField(max_length=50)),
                ('foto', models.ImageField(upload_to='fotos')),
                ('adoptado', models.BooleanField(default=False)),
                ('adoptante', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='refugio.Adoptante')),
            ],
        ),
        migrations.CreateModel(
            name='Tipo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='mascota',
            name='tipo',
            field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, to='refugio.Tipo'),
        ),
    ]
