# Generated by Django 5.2.14 on 2026-06-04 18:20

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


class Migration(migrations.Migration):

    dependencies = [
        ("documents", "0002_submissionbatch_uploadeddocument_chapter_code_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="ExportedDocument",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("conversation_id", models.CharField(db_index=True, max_length=64)),
                ("product_name", models.CharField(blank=True, db_index=True, max_length=255)),
                ("template_name", models.CharField(blank=True, max_length=100)),
                ("template_version", models.CharField(blank=True, max_length=50)),
                ("export_mode", models.CharField(db_index=True, max_length=32)),
                (
                    "output_type",
                    models.CharField(default="registration_word_export_report", max_length=100),
                ),
                ("file_name", models.CharField(max_length=255)),
                ("relative_path", models.CharField(max_length=500)),
                ("download_url", models.CharField(blank=True, max_length=500)),
                ("created_at", models.DateTimeField(auto_now_add=True, db_index=True)),
                (
                    "batch",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="export_records",
                        to="documents.submissionbatch",
                    ),
                ),
            ],
            options={
                "ordering": ["-created_at"],
            },
        ),
    ]
