1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import migrations, models
5 from django.conf import settings
8 class Migration(migrations.Migration):
11 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15 migrations.CreateModel(
16 name='BillingAgreement',
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('agreement_id', models.CharField(max_length=32)),
20 ('active', models.BooleanField(max_length=32)),
23 migrations.CreateModel(
26 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
27 ('plan_id', models.CharField(max_length=32)),
28 ('amount', models.IntegerField(unique=True, db_index=True)),
32 model_name='billingagreement',
34 field=models.ForeignKey(to='paypal.BillingPlan'),
37 model_name='billingagreement',
39 field=models.ForeignKey(to=settings.AUTH_USER_MODEL),