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
8 class Migration(migrations.Migration):
11 ('club', '0001_initial'),
15 migrations.CreateModel(
18 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19 ('disposable_token', models.CharField(max_length=255, unique=True)),
20 ('reusable_token', models.CharField(blank=True, max_length=255, null=True, unique=True)),
21 ('created_at', models.DateTimeField(auto_now_add=True)),
27 migrations.CreateModel(
28 name='PayUNotification',
30 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
31 ('body', models.TextField()),
32 ('received_at', models.DateTimeField(auto_now_add=True)),
38 migrations.CreateModel(
41 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
42 ('pos_id', models.CharField(max_length=255)),
43 ('customer_ip', models.GenericIPAddressField()),
44 ('amount', models.PositiveIntegerField()),
45 ('order_id', models.CharField(blank=True, max_length=255)),
46 ('status', models.CharField(blank=True, choices=[('PENDING', 'Pending'), ('WAITING_FOR_CONFIRMATION', 'Waiting for confirmation'), ('COMPLETED', 'Completed'), ('CANCELED', 'Canceled'), ('REJECTED', 'Rejected')], max_length=128)),
52 migrations.RemoveField(
57 model_name='membership',
59 field=models.BooleanField(default=False),
64 field=models.BooleanField(default=True, verbose_name='active'),
66 migrations.AlterField(
67 model_name='schedule',
69 field=models.CharField(choices=[('payu-re', 'PayU Recurring'), ('paypal-re', 'PayPal Recurring')], max_length=255, verbose_name='method'),
71 migrations.DeleteModel(
75 model_name='payuorder',
77 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.Schedule'),
80 model_name='payunotification',
82 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.PayUOrder'),
85 model_name='payucardtoken',
87 field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='club.Schedule'),