# Generated by Django 5.2.8 on 2025-11-07 07:39

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Plan',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, unique=True)),
                ('description', models.TextField(blank=True, default='')),
                ('billing_mode', models.CharField(default='per_domain_monthly', max_length=50)),
                ('base_price_per_domain', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('included_traffic_gb_per_domain', models.PositiveIntegerField(default=0)),
                ('overage_price_per_gb', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('allow_overage', models.BooleanField(default=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_public', models.BooleanField(default=True)),
                ('allow_new_purchase', models.BooleanField(default=True)),
                ('allow_renew', models.BooleanField(default=True)),
                ('features', models.JSONField(blank=True, default=dict)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': '套餐',
                'verbose_name_plural': '套餐',
            },
        ),
    ]
