# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-03-29 16:28
from __future__ import unicode_literals

import datetime
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ("members", "0002_auto_20170329_1857"),
    ]

    operations = [
        migrations.CreateModel(
            name="Payment",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "date",
                    models.DateTimeField(default=datetime.datetime(1970, 1, 1, 2, 0)),
                ),
                ("source", models.CharField(max_length=255)),
                ("first_name", models.CharField(max_length=255)),
                ("last_name", models.CharField(max_length=255)),
                ("email", models.EmailField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name="Request",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("first_name", models.CharField(max_length=127)),
                ("last_name", models.CharField(max_length=127)),
                ("email", models.EmailField(max_length=254)),
                ("POR", models.CharField(default="ei_tiedossa", max_length=255)),
                ("AYY", models.BooleanField(default=False)),
                ("jas", models.BooleanField(default=False)),
                ("submitted", models.DateTimeField(default=django.utils.timezone.now)),
            ],
            options={
                "abstract": False,
            },
        ),
        migrations.RemoveField(
            model_name="memberrequest",
            name="member",
        ),
        migrations.AlterField(
            model_name="member",
            name="POR",
            field=models.CharField(default="ei_tiedossa", max_length=255),
        ),
        migrations.AlterField(
            model_name="member",
            name="paid",
            field=models.DateTimeField(default=django.utils.timezone.now),
        ),
        migrations.DeleteModel(
            name="MemberRequest",
        ),
        migrations.AddField(
            model_name="payment",
            name="member",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="members.Member",
            ),
        ),
    ]
