# Generated by Django 3.2.25 on 2025-03-02 14:09

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


class Migration(migrations.Migration):

    dependencies = [
        ('products', '0098_alter_codebatch_mini_prog_entry_path'),
    ]

    operations = [
        migrations.CreateModel(
            name='ABTest',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=128, verbose_name='名称')),
                ('description', models.TextField(verbose_name='描述')),
                ('category', models.CharField(max_length=128, verbose_name='实验分类')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建日期')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新日期')),
                ('enabled', models.BooleanField(default=True, verbose_name='是否启用')),
                ('spec', models.TextField(verbose_name='实验配置')),
            ],
        ),
        migrations.CreateModel(
            name='ABTestSample',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('data', models.TextField(verbose_name='实验数据')),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建日期')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新日期')),
                ('abtest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='samples', to='products.abtest')),
            ],
        ),
    ]
