# Generated by Django 4.1.3 on 2022-12-02 20:09 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ('media', '0001_initial'), ] operations = [ migrations.CreateModel( name='Podcast', fields=[ ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('title', models.CharField(max_length=255)), ('subtitle', models.CharField(blank=True, max_length=255, null=True)), ('slug', models.SlugField()), ('publisher', models.CharField(max_length=255)), ('publisher_email', models.CharField(max_length=255)), ('description', models.TextField()), ('keywords', models.CharField(blank=True, help_text='A comma-delimited list of words for searches, up to 12;', max_length=255)), ('license', models.TextField(blank=True, null=True)), ('featured_image', models.ForeignKey(blank=True, help_text='square JPEG (.jpg) or PNG (.png) image at a size of 1400x1400 pixels.', null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')), ], options={ 'verbose_name': 'Podcast', 'verbose_name_plural': 'Podcasts', 'ordering': ('title', 'slug'), }, ), migrations.CreateModel( name='Episode', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('title', models.CharField(max_length=255)), ('subtitle', models.CharField(blank=True, max_length=255, null=True)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('pub_date', models.DateTimeField(blank=True, null=True)), ('enable_comments', models.BooleanField(default=True)), ('slug', models.SlugField()), ('status', models.IntegerField(choices=[(0, 'Draft'), (1, 'Published')], default=0)), ('description', models.TextField()), ('keywords', models.CharField(blank=True, help_text='A comma-delimited list of words for searches, up to 12;', max_length=255)), ('featured_image', models.ForeignKey(blank=True, help_text='square JPEG (.jpg) or PNG (.png) image at a size of 1400x1400 pixels.', null=True, on_delete=django.db.models.deletion.CASCADE, to='media.luximage')), ('podcast', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='podcasts.podcast')), ], options={ 'verbose_name': 'Episode', 'verbose_name_plural': 'Episodes', 'ordering': ('-pub_date', 'slug'), }, ), ]