# Generated by Django 6.0.1 on 2026-01-28 10:03

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Spirit",
            fields=[
                ("id", models.BigAutoField(primary_key=True, serialize=False)),
                ("name", models.CharField(max_length=100, verbose_name="名称")),
                (
                    "avatar",
                    models.URLField(
                        blank=True, default="", max_length=500, verbose_name="头像"
                    ),
                ),
                (
                    "prompt",
                    models.TextField(blank=True, default="", verbose_name="提示词"),
                ),
                (
                    "memory",
                    models.TextField(blank=True, default="", verbose_name="记忆"),
                ),
                (
                    "voice_id",
                    models.CharField(
                        blank=True, default="", max_length=100, verbose_name="音色ID"
                    ),
                ),
                (
                    "is_active",
                    models.BooleanField(default=True, verbose_name="是否启用"),
                ),
                (
                    "created_at",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "updated_at",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "verbose_name": "智能体",
                "verbose_name_plural": "智能体",
                "db_table": "spirit",
                "ordering": ["-created_at"],
            },
        ),
    ]
