# Generated by Django 2.2.23 on 2021-09-20 07:07

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




class Migration(migrations.Migration):

    dependencies = [
        ('library', '0034_auto_20210920_1616'),
    ]

    operations = [
        migrations.CreateModel(
            name='EntryPurpose',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.CharField(max_length=128, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='LibraryPersona',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.CharField(max_length=128, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='EntryMedia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mfile', models.FileField(max_length=256, upload_to='')),
                ('entry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_media', to='library.Entry')),
                ('purpose', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='library.EntryPurpose')),
                ('visibility', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='library.LibraryPersona')),
            ],
        )
    ]
