# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('members', '0036_auto_20160628_1532'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExamChoice',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('order', models.IntegerField()),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='ExamLocation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(max_length=200)),
                ('order', models.IntegerField()),
            ],
            options={
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='TheoryExamApplication',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('start_time', models.DateTimeField(auto_now_add=True)),
                ('completed_time', models.DateTimeField(null=True, blank=True)),
                ('paid', models.BooleanField(default=False)),
                ('payment_type', models.CharField(blank=True, max_length=20, null=True, choices=[('bacs', 'BACS'), ('standing_order', 'Standing Order'), ('cheque', 'Cheque'), ('credit_card', 'Credit Card')])),
                ('complete', models.BooleanField(default=False)),
                ('title', models.CharField(blank=True, max_length=20, null=True, choices=[('Mr', 'Mr'), ('Mrs', 'Mrs'), ('Miss', 'Miss'), ('Ms', 'Ms'), ('Doctor', 'Doctor'), ('Professor', 'Professor')])),
                ('first_name', models.CharField(max_length=200, null=True, blank=True)),
                ('surname', models.CharField(max_length=200, null=True, blank=True)),
                ('email_address', models.EmailField(max_length=200, null=True, blank=True)),
                ('contact_number', models.CharField(max_length=200, null=True, verbose_name=b'Daytime Contact Telephone Number', blank=True)),
                ('dob', models.CharField(max_length=200, null=True, verbose_name=b'Date of Birth', blank=True)),
                ('job_title', models.CharField(max_length=200, null=True, verbose_name=b'Current Job Title', blank=True)),
                ('current_employer', models.CharField(max_length=200, null=True, verbose_name=b'Current Employer/Hospital', blank=True)),
                ('employment_start_date', models.CharField(max_length=200, null=True, verbose_name=b'Start Date of UK or Ireland Employment', blank=True)),
                ('work_address_1', models.CharField(max_length=200, null=True, verbose_name=b'Address 1', blank=True)),
                ('work_address_2', models.CharField(max_length=200, null=True, verbose_name=b'Address 2', blank=True)),
                ('work_town', models.CharField(max_length=200, null=True, verbose_name=b'Town', blank=True)),
                ('work_county', models.CharField(max_length=200, null=True, verbose_name=b'County', blank=True)),
                ('work_postcode', models.CharField(max_length=200, null=True, verbose_name=b'Postcode', blank=True)),
                ('mailing_address_1', models.CharField(max_length=200, null=True, verbose_name=b'Address 1', blank=True)),
                ('mailing_address_2', models.CharField(max_length=200, null=True, verbose_name=b'Address 2', blank=True)),
                ('mailing_town', models.CharField(max_length=200, null=True, verbose_name=b'Town', blank=True)),
                ('mailing_county', models.CharField(max_length=200, null=True, verbose_name=b'County', blank=True)),
                ('mailing_postcode', models.CharField(max_length=200, null=True, verbose_name=b'Postcode', blank=True)),
            ],
            options={
                'ordering': ['-start_time'],
            },
        ),
        migrations.CreateModel(
            name='TheoryExamForm',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('enabled', models.BooleanField(default=False)),
                ('name', models.CharField(max_length=200)),
                ('slug', models.SlugField(max_length=202)),
                ('introduction', models.TextField()),
                ('payment_amount', models.FloatField(default=0, help_text=b'Amount Registration costs (&pound;), leave blank for free registration.', null=True, blank=True)),
                ('type', models.CharField(default=b'exam-application', max_length=20, choices=[('exam-application', 'Exam Application'), ('resit', 'Resit Exam')])),
            ],
            options={
                'ordering': ['name'],
            },
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='exam',
            field=models.ForeignKey(to='theory_exam.TheoryExamForm'),
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='exam_choice',
            field=models.ForeignKey(blank=True, to='theory_exam.ExamChoice', null=True),
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='location',
            field=models.ForeignKey(blank=True, to='theory_exam.ExamLocation', null=True),
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='mailing_country',
            field=models.ForeignKey(related_name='th_mailing_country', verbose_name=b'Country', blank=True, to='members.Country', null=True),
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='member',
            field=models.ForeignKey(to='members.Member'),
        ),
        migrations.AddField(
            model_name='theoryexamapplication',
            name='work_country',
            field=models.ForeignKey(related_name='th_work_country', verbose_name=b'Country', blank=True, to='members.Country', null=True),
        ),
        migrations.AddField(
            model_name='examlocation',
            name='exam_form',
            field=models.ForeignKey(to='theory_exam.TheoryExamForm'),
        ),
        migrations.AddField(
            model_name='examchoice',
            name='exam_form',
            field=models.ForeignKey(to='theory_exam.TheoryExamForm'),
        ),
    ]
