form for #cojaczytam
[wolnelektury.git] / src / paypal / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import migrations, models
5 from django.conf import settings
6
7
8 class Migration(migrations.Migration):
9
10     dependencies = [
11         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='BillingAgreement',
17             fields=[
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)),
21             ],
22         ),
23         migrations.CreateModel(
24             name='BillingPlan',
25             fields=[
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)),
29             ],
30         ),
31         migrations.AddField(
32             model_name='billingagreement',
33             name='plan',
34             field=models.ForeignKey(to='paypal.BillingPlan'),
35         ),
36         migrations.AddField(
37             model_name='billingagreement',
38             name='user',
39             field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
40         ),
41     ]