aboutsummaryrefslogblamecommitdiffstats
path: root/alphabetlearning/payments/migrations/0002_subscriptionplan_and_more.py
blob: cab49b5598ef847bc41b46b4aab9a81db0913e3f (plain) (tree)



































                                                                               
# Generated by Django 5.0.4 on 2024-09-03 19:32

from django.db import migrations, models


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name="SubscriptionPlan",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=255)),
                ("price", models.DecimalField(decimal_places=2, max_digits=6)),
                ("description", models.TextField()),
                ("allowed_downloads", models.PositiveIntegerField()),
                ("stripe_plan_id", models.CharField(max_length=255)),
            ],
        ),
        migrations.RemoveField(
            model_name="subscription",
            name="stripe_subscription_id",
        ),
    ]