1 # Generated by Django 2.2.19 on 2021-09-27 13:30
3 from django.db import migrations, models
4 import django.db.models.deletion
7 class Migration(migrations.Migration):
15 migrations.CreateModel(
18 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19 ('name', models.CharField(max_length=255, unique=True, verbose_name='name')),
20 ('description', models.TextField(blank=True, verbose_name='description')),
23 'verbose_name': 'campaign',
24 'verbose_name_plural': 'campaigns',
27 migrations.CreateModel(
30 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
31 ('name', models.CharField(max_length=255, unique=True, verbose_name='name')),
34 'verbose_name': 'fundraiser',
35 'verbose_name_plural': 'fundraisers',
38 migrations.CreateModel(
41 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
42 ('first_name', models.CharField(blank=True, max_length=255, verbose_name='first name')),
43 ('last_name', models.CharField(blank=True, max_length=255, verbose_name='last name')),
44 ('sex', models.CharField(blank=True, choices=[('M', 'M'), ('F', 'F')], max_length=1, verbose_name='sex')),
45 ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='date of birth')),
46 ('street', models.CharField(blank=True, max_length=255, verbose_name='street')),
47 ('building', models.CharField(blank=True, max_length=255, verbose_name='building')),
48 ('flat', models.CharField(blank=True, max_length=255, verbose_name='flat')),
49 ('town', models.CharField(blank=True, max_length=255, verbose_name='town')),
50 ('postal_code', models.CharField(blank=True, max_length=255, verbose_name='postal code')),
51 ('phone', models.CharField(blank=True, max_length=255, verbose_name='phone')),
52 ('email', models.CharField(blank=True, max_length=255, verbose_name='e-mail')),
53 ('iban', models.CharField(blank=True, max_length=255, verbose_name='IBAN')),
54 ('is_consumer', models.BooleanField(default=True, verbose_name='is a consumer')),
55 ('payment_id', models.CharField(blank=True, max_length=255, unique=True, verbose_name='payment identifier')),
56 ('agree_fundraising', models.BooleanField(verbose_name='agree fundraising')),
57 ('agree_newsletter', models.BooleanField(verbose_name='agree newsletter')),
58 ('acquisition_date', models.DateField(help_text='Date from the form', verbose_name='acquisition date')),
59 ('submission_date', models.DateField(blank=True, help_text='Date the fundaiser submitted the form', null=True, verbose_name='submission date')),
60 ('bank_submission_date', models.DateField(blank=True, help_text='Date when the form data is submitted to the bank', null=True, verbose_name='bank submission date')),
61 ('bank_acceptance_date', models.DateField(blank=True, help_text='Date when bank accepted the form', null=True, verbose_name='bank accepted date')),
62 ('fundraiser_commission', models.IntegerField(blank=True, null=True, verbose_name='fundraiser commission')),
63 ('fundraiser_bill', models.CharField(blank=True, max_length=255, verbose_name='fundaiser bill number')),
64 ('amount', models.IntegerField(verbose_name='amount')),
65 ('notes', models.TextField(blank=True, verbose_name='notes')),
66 ('needs_redo', models.BooleanField(default=False, verbose_name='needs redo')),
67 ('is_cancelled', models.BooleanField(default=False, verbose_name='is cancelled')),
68 ('optout', models.BooleanField(default=False, verbose_name='optout')),
69 ('campaign', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='pz.Campaign')),
70 ('fundraiser', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='pz.Fundraiser')),
73 'verbose_name': 'direct debit',
74 'verbose_name_plural': 'direct debits',