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

from django.db import models, migrations
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='LtMockModule',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(default='module', max_length=128)),
                ('description', models.CharField(max_length=1024, blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LtMockProject',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(default='project', max_length=128)),
                ('description', models.CharField(max_length=1024, blank=True)),
                ('user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='LtMockRequest',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(default='defaultName', max_length=128)),
                ('method', models.CharField(default='GET', max_length=20)),
                ('address', models.CharField(default='defaultUrl', max_length=2048)),
                ('params', models.CharField(max_length=1648, blank=True)),
                ('module', models.ForeignKey(to='mock.LtMockModule')),
                ('project', models.ForeignKey(to='mock.LtMockProject')),
            ],
        ),
        migrations.CreateModel(
            name='LtMockRequestHeader',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('key', models.CharField(default='defaultkey', max_length=128)),
                ('value', models.CharField(max_length=1024, blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LtMockRequestParam',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('key', models.CharField(default='defaultkey', max_length=128)),
                ('value', models.CharField(max_length=1024, blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='LtMockResponse',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(default='defaultresponse', max_length=128)),
                ('template', models.CharField(max_length=2048, blank=True)),
                ('sample', models.CharField(max_length=2048, blank=True)),
            ],
        ),
        migrations.AddField(
            model_name='ltmockrequest',
            name='requestheader',
            field=models.ForeignKey(blank=True, to='mock.LtMockRequestHeader', null=True),
        ),
        migrations.AddField(
            model_name='ltmockrequest',
            name='requestparam',
            field=models.ForeignKey(blank=True, to='mock.LtMockRequestParam', null=True),
        ),
        migrations.AddField(
            model_name='ltmockrequest',
            name='response',
            field=models.ForeignKey(blank=True, to='mock.LtMockResponse', null=True),
        ),
        migrations.AddField(
            model_name='ltmockmodule',
            name='project',
            field=models.ForeignKey(to='mock.LtMockProject'),
        ),
    ]
