# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-28 09:30
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('App', '0003_auto_20170928_0925'),
    ]

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('isbn', models.CharField(max_length=13, unique=True)),
                ('title', models.CharField(max_length=150)),
                ('subtitle', models.CharField(max_length=150, null=True)),
                ('author', models.CharField(max_length=150)),
                ('originTitle', models.CharField(max_length=150, null=True)),
                ('translator', models.CharField(max_length=150, null=True)),
                ('publisher', models.CharField(max_length=150)),
                ('pubDate', models.CharField(max_length=30)),
                ('authorInfo', models.TextField(null=True)),
                ('summary', models.TextField(null=True)),
                ('tags', models.TextField(null=True)),
                ('rating', models.CharField(max_length=5, null=True)),
                ('image', models.CharField(max_length=1024, null=True)),
            ],
            options={
                'ordering': ('isbn',),
            },
        ),
        migrations.CreateModel(
            name='Bookcase',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=150)),
                ('isbn', models.CharField(max_length=13)),
            ],
        ),
        migrations.CreateModel(
            name='Contact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=150)),
                ('contactUsername', models.CharField(max_length=150)),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='contact',
            unique_together=set([('username', 'contactUsername')]),
        ),
        migrations.AlterUniqueTogether(
            name='bookcase',
            unique_together=set([('username', 'isbn')]),
        ),
    ]
