# Generated by Django 5.2.12 on 2026-03-18 06:40

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('userapp', '0003_paradiseuser_birthday_paradiseuser_favorability_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='AffinityLevel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('level', models.IntegerField(unique=True, verbose_name='等级')),
                ('name', models.CharField(max_length=50, verbose_name='等级名称')),
                ('description', models.TextField(blank=True, verbose_name='等级描述')),
                ('required_points', models.IntegerField(verbose_name='所需积分')),
                ('rewards', models.JSONField(default=list, 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': '好感度等级',
                'ordering': ['level'],
            },
        ),
        migrations.CreateModel(
            name='AffinityRule',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, verbose_name='规则名称')),
                ('description', models.TextField(blank=True, verbose_name='规则描述')),
                ('points', models.IntegerField(default=0, verbose_name='积分')),
                ('daily_limit', models.IntegerField(blank=True, null=True, verbose_name='每日上限')),
                ('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': '好感度规则',
                'ordering': ['-created_at'],
            },
        ),
    ]
