# Generated by Django 4.2.29 on 2026-04-07 13:07

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


class Migration(migrations.Migration):

    dependencies = [
        ("app01", "0008_operationrecord_latitude_operationrecord_longitude"),
        ("feedback", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="EvolutionLog",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("timestamp", models.DateTimeField(auto_now_add=True)),
                ("is_correct", models.BooleanField(default=True)),
                ("pred_label", models.CharField(max_length=50)),
                ("user_label", models.CharField(max_length=50, null=True)),
            ],
        ),
        migrations.CreateModel(
            name="SystemEvolutionLog",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("image_path", models.CharField(max_length=255)),
                ("pred_label", models.CharField(max_length=50)),
                (
                    "user_corrected_label",
                    models.CharField(blank=True, max_length=50, null=True),
                ),
                ("is_correct", models.BooleanField(default=True)),
                ("recorded_at", models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name="UserFeedback",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("content", models.TextField(verbose_name="反馈内容")),
                (
                    "submit_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="提交时间"),
                ),
                (
                    "user",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="app01.userinfo",
                        verbose_name="反馈用户",
                    ),
                ),
            ],
            options={
                "verbose_name": "用户意见反馈",
                "verbose_name_plural": "用户意见反馈",
            },
        ),
    ]
