diff options
Diffstat (limited to 'alphabetlearning/payments/migrations/0003_product_price.py')
-rw-r--r-- | alphabetlearning/payments/migrations/0003_product_price.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/alphabetlearning/payments/migrations/0003_product_price.py b/alphabetlearning/payments/migrations/0003_product_price.py new file mode 100644 index 0000000..b12d5dc --- /dev/null +++ b/alphabetlearning/payments/migrations/0003_product_price.py @@ -0,0 +1,53 @@ +# Generated by Django 5.0.4 on 2024-09-04 19:01 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("payments", "0002_subscriptionplan_and_more"), + ] + + operations = [ + migrations.CreateModel( + name="Product", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("name", models.CharField(max_length=255)), + ("stripe_product_id", models.CharField(max_length=100)), + ], + ), + migrations.CreateModel( + name="Price", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("price", models.IntegerField(default=0)), + ("stripe_product_id", models.CharField(max_length=100)), + ( + "product", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to="payments.product", + ), + ), + ], + ), + ] |