# Generated by Django 2.0.2 on 2018-02-16 23:02

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Books',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('published_date', models.DateTimeField(blank=True, null=True)),
                ('category', models.CharField(choices=[('N', 'Notes/slides'), ('Com', 'Communictaion Skills'), ('B', 'Biology'), ('C', 'Chemesry'), ('M', 'Mathemetics'), ('P', 'Physics'), ('O', 'Other')], default='N', max_length=1)),
                ('book', models.FileField(upload_to='library/static/files/')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
