# Generated by Django 4.1 on 2026-01-30 12:31

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="DiseaseWiki",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name",
                    models.CharField(max_length=100, unique=True, verbose_name="名称"),
                ),
                (
                    "category",
                    models.CharField(
                        choices=[
                            ("PEST", "虫害"),
                            ("DISEASE", "病害"),
                            ("PHYSIO", "生理性病害"),
                        ],
                        max_length=10,
                        verbose_name="类别",
                    ),
                ),
                ("symptoms", models.TextField(verbose_name="发病症状")),
                ("treatment", models.TextField(verbose_name="防治建议")),
                (
                    "wiki_image",
                    models.ImageField(
                        blank=True,
                        null=True,
                        upload_to="wiki/",
                        verbose_name="百科图片",
                    ),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
            ],
            options={
                "verbose_name": "病虫害百科",
                "verbose_name_plural": "病虫害百科",
            },
        ),
    ]
