1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
4 from django.db import migrations, models
5 import django.db.models.deletion
6 from django.conf import settings
9 class Migration(migrations.Migration):
12 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16 migrations.CreateModel(
17 name='BillingAgreement',
19 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20 ('agreement_id', models.CharField(max_length=32)),
21 ('active', models.BooleanField(max_length=32)),
24 migrations.CreateModel(
27 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
28 ('plan_id', models.CharField(max_length=32)),
29 ('amount', models.IntegerField(unique=True, db_index=True)),
33 model_name='billingagreement',
35 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypal.BillingPlan'),
38 model_name='billingagreement',
40 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),