# Generated by Django 5.1.3 on 2025-02-08 10:07

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="MultiModelDetectionRecord",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "operation_type",
                    models.CharField(
                        choices=[
                            ("IMAGE", "图像检测"),
                            ("VIDEO", "视频检测"),
                            ("CAMERA", "摄像头检测"),
                        ],
                        max_length=10,
                    ),
                ),
                ("description", models.TextField()),
                ("result_paths", models.JSONField(verbose_name="结果路径")),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="multi_model_records",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
            options={
                "verbose_name": "多模型检测记录",
                "verbose_name_plural": "多模型检测记录",
            },
        ),
    ]
