# Generated by Django 3.2.5 on 2021-08-27 13:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('home', '0025_auto_20210818_1621'),
        ('research', '0072_patent_owner'),
    ]

    operations = [
        migrations.AlterField(
            model_name='patent',
            name='pub_type',
            field=models.CharField(choices=[('active', 'active'), ('passive', 'passive')], default='active', help_text='Patent type', max_length=20),
        ),
        migrations.AlterField(
            model_name='patent',
            name='url',
            field=models.URLField(blank=True, help_text='Link to patent family'),
        ),
        migrations.CreateModel(
            name='PatentChild',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('url', models.URLField(blank=True)),
                ('pub_type', models.CharField(choices=[('active', 'active'), ('passive', 'passive')], default='active', help_text='Patent  type', max_length=20)),
                ('number', models.CharField(max_length=200)),
                ('pub_date', models.DateField(verbose_name='Pub date')),
                ('pdf_file', models.FileField(blank=True, null=True, upload_to='uploads/patent/pdf/')),
                ('country', models.ForeignKey(default=None, on_delete=django.db.models.deletion.SET_DEFAULT, related_name='patentchild_country', to='home.country')),
            ],
            options={
                'ordering': ['-pub_date'],
            },
        ),
    ]
