# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-01-26 18:59
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('cities_light', '0006_compensate_for_0003_bytestring_bug'),
    ]

    operations = [
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Create date')),
                ('modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Modification date')),
                ('name', models.CharField(max_length=120, verbose_name='Name')),
            ],
            options={
                'verbose_name': 'Category',
                'ordering': ('-created',),
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Create date')),
                ('modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Modification date')),
                ('description', models.TextField(verbose_name='Description')),
                ('name', models.CharField(max_length=120, verbose_name='Name')),
                ('set', models.CharField(max_length=120, verbose_name='Collection')),
                ('Count', models.IntegerField(verbose_name='Count')),
                ('views_no', models.IntegerField(verbose_name='Views number')),
                ('user_possession', models.IntegerField(verbose_name='User possesses')),
                ('likes', models.IntegerField(verbose_name='Likes number')),
                ('publicated', models.DateTimeField(verbose_name='Publication Date')),
                ('reverse_photo', models.URLField(verbose_name='Reverse photo')),
                ('obverse_photo', models.URLField(verbose_name='Obverse photo')),
                ('numeration', models.CharField(max_length=120, verbose_name='Numeration')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.Category', verbose_name='Category')),
                ('country', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='cities_light.Country', verbose_name='Country')),
            ],
            options={
                'verbose_name': 'Colection',
                'ordering': ('-created',),
                'verbose_name_plural': 'Collections',
            },
        ),
        migrations.CreateModel(
            name='CollectionSubType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Create date')),
                ('modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Modification date')),
                ('name', models.CharField(max_length=120, verbose_name='Name')),
            ],
            options={
                'verbose_name': 'Subtype',
                'ordering': ('-created',),
                'verbose_name_plural': 'Subtypes',
            },
        ),
        migrations.CreateModel(
            name='CollectionType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Create date')),
                ('modified', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Modification date')),
                ('name', models.CharField(max_length=120, verbose_name='Name')),
            ],
            options={
                'verbose_name': 'Type',
                'ordering': ('-created',),
                'verbose_name_plural': 'Types',
            },
        ),
        migrations.AddField(
            model_name='collectionsubtype',
            name='type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.CollectionType', verbose_name='Type'),
        ),
        migrations.AddField(
            model_name='collection',
            name='subtype',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='collection.CollectionSubType', verbose_name='Type'),
        ),
    ]
