# Generated by Django 2.2.23 on 2021-06-02 00:23

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


class Migration(migrations.Migration):

    dependencies = [
        ('library', '0025_auto_20210519_1305'),
    ]

    operations = [
        migrations.CreateModel(
            name='Folder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.CharField(max_length=256)),
                ('slot_count', models.IntegerField(default=35)),
            ],
        ),
        migrations.AlterField(
            model_name='entry',
            name='duration',
            field=models.CharField(default='0:0', help_text='approx duration - MM:SS - leave as 0:0 when not known', max_length=8),
        ),
        migrations.AlterField(
            model_name='task',
            name='extperson',
            field=models.CharField(blank=True, max_length=256, null=True, verbose_name='External person'),
        ),
        migrations.AlterField(
            model_name='task',
            name='person',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tasks', to=settings.AUTH_USER_MODEL, verbose_name='Internal person'),
        ),
        migrations.CreateModel(
            name='FolderItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('comment', models.TextField(blank=True, null=True)),
                ('position', models.IntegerField()),
                ('entry', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='folders', to='library.Entry')),
                ('folder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='slots', to='library.Task')),
            ],
        ),
    ]
