# Generated by Django 5.2.1 on 2026-01-14 09:52

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0007_about_image_alt_blogpost_featured_image_alt_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='MultimediaAsset',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(help_text='Title of the multimedia asset', max_length=200)),
                ('slug', models.SlugField(help_text='URL-friendly identifier', max_length=255, unique=True)),
                ('description', models.TextField(help_text='Description of the multimedia content')),
                ('asset_type', models.CharField(choices=[('infographic', 'Infographic'), ('video', 'Video'), ('interactive_tool', 'Interactive Tool'), ('image', 'Image'), ('audio', 'Audio')], help_text='Type of multimedia asset', max_length=50)),
                ('file', models.FileField(blank=True, help_text='Upload file for infographics, images, etc.', null=True, upload_to='multimedia/')),
                ('external_url', models.URLField(blank=True, help_text='External URL for videos (YouTube, Vimeo) or hosted tools')),
                ('embed_code', models.TextField(blank=True, help_text='Embed code for videos or interactive tools')),
                ('alt_text', models.CharField(blank=True, help_text='Alt text for accessibility and SEO', max_length=125)),
                ('caption', models.TextField(blank=True, help_text='Caption to display with the asset')),
                ('width', models.PositiveIntegerField(blank=True, help_text='Width in pixels (for images/infographics)', null=True)),
                ('height', models.PositiveIntegerField(blank=True, help_text='Height in pixels (for images/infographics)', null=True)),
                ('duration', models.PositiveIntegerField(blank=True, help_text='Duration in seconds (for videos/audio)', null=True)),
                ('file_size', models.PositiveIntegerField(blank=True, help_text='File size in bytes', null=True)),
                ('tags', models.CharField(blank=True, help_text='Comma-separated tags for categorization', max_length=255)),
                ('category', models.CharField(blank=True, help_text="Category (e.g., 'Security', 'Cleaning', 'Facilities Management')", max_length=100)),
                ('view_count', models.PositiveIntegerField(default=0, help_text='Number of times this asset has been viewed')),
                ('download_count', models.PositiveIntegerField(default=0, help_text='Number of times this asset has been downloaded')),
                ('is_published', models.BooleanField(default=False)),
                ('featured', models.BooleanField(default=False, help_text='Feature this asset on relevant pages')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Multimedia Asset',
                'verbose_name_plural': 'Multimedia Assets',
                'ordering': ['-created_at'],
            },
        ),
    ]
