# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-05-21 19:33
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('request_token', '0008_convert_token_data_to_jsonfield'),
    ]

    operations = [
        migrations.CreateModel(
            name='RequestTokenErrorLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('error_type', models.CharField(help_text='The underlying type of error raised.', max_length=50)),
                ('error_message', models.CharField(help_text='The error message supplied.', max_length=200)),
                ('log', models.OneToOneField(help_text='The token use against which the error occurred.', on_delete=django.db.models.deletion.CASCADE, related_name='error', to='request_token.RequestTokenLog')),
                ('token', models.ForeignKey(help_text='The RequestToken that was used.', on_delete=django.db.models.deletion.CASCADE, related_name='errors', to='request_token.RequestToken')),
            ],
        ),
    ]

[((459, 552), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (475, 552), False, 'from django.db import migrations, models\n'), ((582, 667), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The underlying type of error raised."""', 'max_length': '(50)'}), "(help_text='The underlying type of error raised.',\n    max_length=50)\n", (598, 667), False, 'from django.db import migrations, models\n'), ((700, 773), 'django.db.models.CharField', 'models.CharField', ([], {'help_text': '"""The error message supplied."""', 'max_length': '(200)'}), "(help_text='The error message supplied.', max_length=200)\n", (716, 773), False, 'from django.db import migrations, models\n'), ((800, 999), 'django.db.models.OneToOneField', 'models.OneToOneField', ([], {'help_text': '"""The token use against which the error occurred."""', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""error"""', 'to': '"""request_token.RequestTokenLog"""'}), "(help_text=\n    'The token use against which the error occurred.', on_delete=django.db.\n    models.deletion.CASCADE, related_name='error', to=\n    'request_token.RequestTokenLog')\n", (820, 999), False, 'from django.db import migrations, models\n'), ((1013, 1186), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'help_text': '"""The RequestToken that was used."""', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""errors"""', 'to': '"""request_token.RequestToken"""'}), "(help_text='The RequestToken that was used.', on_delete=\n    django.db.models.deletion.CASCADE, related_name='errors', to=\n    'request_token.RequestToken')\n", (1030, 1186), False, 'from django.db import migrations, models\n')]