# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-29 22:50
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='Place',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('long_position', models.DecimalField(decimal_places=3, max_digits=8)),
                ('lat_position', models.DecimalField(decimal_places=3, max_digits=8)),
                ('country', models.CharField(max_length=32)),
                ('region', models.CharField(max_length=64, null=True)),
                ('city', models.CharField(max_length=64)),
                ('name', models.CharField(max_length=256)),
            ],
        ),
        migrations.CreateModel(
            name='Review',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_from', models.DateTimeField()),
                ('date_to', models.DateTimeField()),
                ('image', models.ImageField(upload_to='photos/%Y/%m/%d')),
                ('rating_food', models.IntegerField()),
                ('rating_place', models.IntegerField()),
                ('rating_accomodation', models.IntegerField()),
                ('place', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='reporting.Place')),
            ],
        ),
    ]
