# Generated by Django 3.1.8 on 2021-05-24 14:03

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="Article",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("title", models.CharField(max_length=256)),
                ("summary", models.TextField()),
                (
                    "type",
                    models.CharField(
                        choices=[
                            ("ARTICLE", "Article"),
                            ("THESIS", "Thesis"),
                            ("PATENT", "Patent"),
                        ],
                        max_length=7,
                    ),
                ),
                ("scopus_indication", models.URLField()),
                (
                    "authors",
                    models.ManyToManyField(
                        related_name="articles", to=settings.AUTH_USER_MODEL
                    ),
                ),
            ],
        ),
    ]
