# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-01 07:20
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('ac_site', '0090_auto_20171001_1619'),
    ]

    operations = [
        migrations.CreateModel(
            name='AnnualSummary',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0)),
                ('year', models.IntegerField(default=0, null=True)),
                ('consumer_count', models.IntegerField(default=0, null=True)),
                ('consumption_ammount', models.IntegerField(default=0, null=True)),
                ('guest_count_hotel', models.IntegerField(default=0, null=True)),
                ('guest_count_ryokan', models.IntegerField(default=0, null=True)),
                ('guest_count_condominium', models.IntegerField(default=0, null=True)),
                ('guest_count_dorm', models.IntegerField(default=0, null=True)),
                ('guest_count_house', models.IntegerField(default=0, null=True)),
                ('guest_count_youthhostel', models.IntegerField(default=0, null=True)),
                ('guest_count_other', models.IntegerField(default=0, null=True)),
                ('website_count', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
            ],
        ),
        migrations.CreateModel(
            name='City',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('city_code', models.IntegerField(default=0)),
                ('city_name', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='ForeignGuestCount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0)),
                ('year', models.IntegerField(default=0)),
                ('month', models.IntegerField(default=0)),
                ('guest_count', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
            ],
        ),
        migrations.CreateModel(
            name='Prefecture',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0)),
                ('prefecture_name', models.CharField(max_length=10)),
            ],
        ),
        migrations.CreateModel(
            name='PriceofLand',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0)),
                ('city_code', models.IntegerField(default=0, null=True)),
                ('properties_count', models.IntegerField(default=0, null=True)),
                ('avg_price', models.IntegerField(default=0, null=True)),
                ('upper_price', models.IntegerField(default=0, null=True)),
                ('lower_price', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
            ],
        ),
        migrations.CreateModel(
            name='Region',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('city', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_region_city', to='ac_site.City')),
                ('prefecture', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_region_prefecture', to='ac_site.Prefecture')),
            ],
        ),
        migrations.CreateModel(
            name='RegionSummary',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0, null=True)),
                ('city_code', models.IntegerField(default=0, null=True)),
                ('year', models.IntegerField(default=0)),
                ('month', models.IntegerField(default=0)),
                ('total_listing', models.IntegerField(default=0, null=True)),
                ('publish_count', models.IntegerField(default=0, null=True)),
                ('suspend_count', models.IntegerField(default=0, null=True)),
                ('reviewed_count', models.IntegerField(default=0, null=True)),
                ('non_reviewed_count', models.IntegerField(default=0, null=True)),
                ('average_price', models.IntegerField(default=0, null=True)),
                ('monthly_sales', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region', models.IntegerField(default=0, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='SummaryArticleBreakdown',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('link_prefecture_code', models.IntegerField(default=0)),
                ('link_city_code', models.IntegerField(default=0, null=True)),
                ('article_type', models.CharField(max_length=10, null=True)),
                ('listing_count', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region_summary', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='article_breakdown', to='ac_site.RegionSummary')),
            ],
        ),
        migrations.CreateModel(
            name='SummaryCapacityBreakdown',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('link_prefecture_code', models.IntegerField(default=0)),
                ('link_city_code', models.IntegerField(default=0, null=True)),
                ('capacity_type', models.CharField(max_length=10, null=True)),
                ('listing_count', models.IntegerField(default=0, null=True)),
                ('average_sales', models.IntegerField(default=0, null=True)),
                ('average_rental_fee', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region_summary', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='capacity_breakdown', to='ac_site.RegionSummary')),
            ],
        ),
        migrations.CreateModel(
            name='SummaryLanguageBreakdown',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('link_prefecture_code', models.IntegerField(default=0)),
                ('link_city_code', models.IntegerField(default=0, null=True)),
                ('language_type', models.CharField(max_length=10, null=True)),
                ('listing_count', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region_summary', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='language_breakdown', to='ac_site.RegionSummary')),
            ],
        ),
        migrations.CreateModel(
            name='SummarySizeBreakdown',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('link_prefecture_code', models.IntegerField(default=0)),
                ('link_city_code', models.IntegerField(default=0, null=True)),
                ('room_size', models.CharField(max_length=10, null=True)),
                ('listing_count', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region_summary', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='size_breakdown', to='ac_site.RegionSummary')),
            ],
        ),
        migrations.CreateModel(
            name='TourResource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prefecture_code', models.IntegerField(default=0)),
                ('city_code', models.IntegerField(default=0, null=True)),
                ('scr_type1', models.CharField(max_length=20, null=True)),
                ('scr_type2', models.CharField(max_length=20, null=True)),
                ('scr_name', models.CharField(max_length=50, null=True)),
                ('scr_rank', models.CharField(max_length=5, null=True)),
                ('scr_score', models.IntegerField(default=0, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('region', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_tourresource', to='ac_site.Region')),
            ],
        ),
        migrations.AddField(
            model_name='priceofland',
            name='region',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_priceofland', to='ac_site.Region'),
        ),
        migrations.AddField(
            model_name='prefecture',
            name='region',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_prefecture', to='ac_site.Region'),
        ),
        migrations.AddField(
            model_name='foreignguestcount',
            name='region',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_foreignguestcount', to='ac_site.Region'),
        ),
        migrations.AddField(
            model_name='city',
            name='region',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_city', to='ac_site.Region'),
        ),
        migrations.AddField(
            model_name='annualsummary',
            name='region',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='link_annualsummary', to='ac_site.Region'),
        ),
    ]
