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

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Cidade',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('nome', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Endereco',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('logradouro', models.CharField(max_length=255)),
                ('complemento', models.CharField(max_length=255, null=True, blank=True)),
                ('bairro', models.CharField(max_length=100)),
                ('cep', models.CharField(max_length=9, blank=True)),
                ('cidade', models.ForeignKey(to='localizacao.Cidade')),
            ],
            options={
                'verbose_name': 'Endere\xe7o',
                'verbose_name_plural': 'Endere\xe7os',
            },
        ),
        migrations.CreateModel(
            name='Pais',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('nome', models.CharField(unique=True, max_length=100)),
                ('sigla', models.CharField(unique=True, max_length=2)),
            ],
            options={
                'verbose_name': 'Pa\xeds',
                'verbose_name_plural': 'Pa\xedses',
            },
        ),
        migrations.CreateModel(
            name='Uf',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('nome', models.CharField(unique=True, max_length=100)),
                ('sigla', models.CharField(unique=True, max_length=2)),
                ('pais', models.ForeignKey(verbose_name=b'Pa\xc3\xads', to='localizacao.Pais')),
            ],
            options={
                'verbose_name': 'Uf',
                'verbose_name_plural': 'Ufs',
            },
        ),
        migrations.AddField(
            model_name='cidade',
            name='uf',
            field=models.ForeignKey(to='localizacao.Uf'),
        ),
    ]
