# Generated by Django 5.2.1 on 2025-06-05 20:18

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("accounts", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="InterestTag",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "name",
                    models.CharField(
                        help_text="兴趣标签的名称，例如：摄影、篮球、Python编程",
                        max_length=50,
                        unique=True,
                        verbose_name="标签名称",
                    ),
                ),
                (
                    "created_at",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
            ],
            options={
                "verbose_name": "兴趣标签",
                "verbose_name_plural": "兴趣标签们",
                "ordering": ["name"],
            },
        ),
        migrations.AddField(
            model_name="customuser",
            name="interests",
            field=models.ManyToManyField(
                blank=True,
                related_name="users_with_interest",
                to="accounts.interesttag",
                verbose_name="兴趣标签",
            ),
        ),
    ]
