# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-07 19:03
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ConverterResponse',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('base', models.CharField(choices=[('USD', 'United States Dollar'), ('CZK', 'Czech Republic Koruna'), ('PLN', 'Polish Zloty'), ('EUR', 'Euro')], max_length=3)),
                ('target', models.CharField(choices=[('USD', 'United States Dollar'), ('CZK', 'Czech Republic Koruna'), ('PLN', 'Polish Zloty'), ('EUR', 'Euro')], max_length=3)),
                ('amount', models.DecimalField(decimal_places=12, max_digits=16)),
                ('result', models.DecimalField(decimal_places=12, max_digits=16)),
            ],
            options={
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Currency',
            fields=[
                ('created_timestamp', models.PositiveIntegerField()),
                ('base', models.CharField(choices=[('USD', 'United States Dollar'), ('CZK', 'Czech Republic Koruna'), ('PLN', 'Polish Zloty'), ('EUR', 'Euro')], default='USD', max_length=3, primary_key=True, serialize=False)),
            ],
        ),
        migrations.CreateModel(
            name='Rate',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(choices=[('USD', 'United States Dollar'), ('CZK', 'Czech Republic Koruna'), ('PLN', 'Polish Zloty'), ('EUR', 'Euro')], max_length=3)),
                ('rate', models.DecimalField(decimal_places=12, max_digits=16)),
                ('base', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='rates', to='api.Currency')),
            ],
        ),
    ]
