# Generated by Django 2.1.3 on 2018-12-04 09:21

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Book_return',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField(auto_now_add=True)),
                ('date_updated', models.DateField(auto_now=True)),
                ('date_deleted', models.DateField(blank=True, null=True)),
                ('returned_date', models.DateField()),
                ('fine_amount', models.IntegerField()),
                ('remarks', models.TextField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Books',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField(auto_now_add=True)),
                ('date_updated', models.DateField(auto_now=True)),
                ('date_deleted', models.DateField(blank=True, null=True)),
                ('purchase_date', models.DateField()),
                ('bill_no', models.CharField(max_length=20)),
                ('isbn_no', models.SlugField()),
                ('no', models.CharField(max_length=20)),
                ('title', models.CharField(max_length=30)),
                ('author', models.CharField(max_length=30)),
                ('edition', models.CharField(max_length=20)),
                ('publisher', models.CharField(max_length=30)),
                ('no_of_copies', models.IntegerField()),
                ('shelf_no', models.CharField(max_length=20)),
                ('position', models.CharField(max_length=20)),
                ('book_cost', models.IntegerField()),
                ('book_condition', models.CharField(choices=[('As_new', 'AS NEW'), ('fine', 'FINE'), ('verygood', 'VERY GOOD'), ('good', 'GOOD'), ('fair', 'FAIR'), ('poor', 'POOR'), ('lost', 'LOST'), ('missing', 'MISSING')], max_length=15)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField(auto_now_add=True)),
                ('date_updated', models.DateField(auto_now=True)),
                ('date_deleted', models.DateField(blank=True, null=True)),
                ('name', models.CharField(max_length=30)),
                ('section_code', models.SlugField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Issue_book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField(auto_now_add=True)),
                ('date_updated', models.DateField(auto_now=True)),
                ('date_deleted', models.DateField(blank=True, null=True)),
                ('user_type', models.CharField(choices=[(1, 'ADMINISTRATOR'), (2, 'TEACHER'), (3, 'STUDENT'), (4, 'GUEST'), (5, 'ACCOUNTANT'), (6, 'LIBRARIAN')], max_length=15)),
                ('issue_date', models.DateField()),
                ('due_date', models.DateField()),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Request_book',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField(auto_now_add=True)),
                ('date_updated', models.DateField(auto_now=True)),
                ('date_deleted', models.DateField(blank=True, null=True)),
                ('user_type', models.CharField(choices=[(1, 'ADMINISTRATOR'), (2, 'TEACHER'), (3, 'STUDENT'), (4, 'GUEST'), (5, 'ACCOUNTANT'), (6, 'LIBRARIAN')], max_length=15)),
                ('request_date', models.DateField()),
                ('status', models.CharField(max_length=10)),
                ('accept', models.BooleanField(null=True)),
                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='library.Books')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
