# Generated by Django 5.2.11 on 2026-03-21 06:18

import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('links', '0038_remove_iptv_models'),
    ]

    operations = [
        migrations.CreateModel(
            name='FileUpload',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
                ('stored_name', models.CharField(max_length=255, verbose_name='Stored Name')),
                ('mime_type', models.CharField(blank=True, max_length=128, verbose_name='MIME Type')),
                ('size', models.PositiveBigIntegerField(default=0, verbose_name='Size')),
                ('is_public', models.BooleanField(db_index=True, default=False, verbose_name='Is Public')),
                ('public_token', models.CharField(blank=True, max_length=64, null=True, unique=True, verbose_name='Public Token')),
                ('expires_at', models.DateTimeField(blank=True, null=True, verbose_name='Expires At')),
                ('download_count', models.PositiveIntegerField(default=0, verbose_name='Download Count')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Updated At')),
            ],
            options={
                'verbose_name': 'File Upload',
                'verbose_name_plural': 'File Uploads',
                'ordering': ['-created_at'],
            },
        ),
    ]
