1 from django.db import migrations, models
2 import django.db.models.deletion
3 from django.conf import settings
6 class Migration(migrations.Migration):
9 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13 migrations.CreateModel(
14 name='BillingAgreement',
16 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17 ('agreement_id', models.CharField(max_length=32)),
18 ('active', models.BooleanField(max_length=32)),
21 migrations.CreateModel(
24 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
25 ('plan_id', models.CharField(max_length=32)),
26 ('amount', models.IntegerField(unique=True, db_index=True)),
30 model_name='billingagreement',
32 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypal.BillingPlan'),
35 model_name='billingagreement',
37 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),