# Generated by Django 2.2.5 on 2019-11-19 19:36

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('Employee', '0001_initial'),
        ('Client', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Inward',
            fields=[
                ('inward_id', models.AutoField(primary_key=True, serialize=False)),
                ('inward_returnperiod', models.DateTimeField(blank=True, default=datetime.date.today, null=True)),
                ('inward_month', models.DecimalField(blank=True, decimal_places=0, max_digits=2, null=True)),
                ('inward_year', models.IntegerField(blank=True, null=True)),
                ('inward_uploadfilestatus', models.BooleanField(blank=True, null=True)),
                ('inward_remarks', models.TextField(blank=True, null=True)),
                ('inward_date', models.DateField(blank=True, default=datetime.date.today, null=True)),
                ('inward_client_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Client.Client')),
                ('inward_employeeid', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Employee.Employee')),
            ],
            options={
                'db_table': 'inward',
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='InwardMode',
            fields=[
                ('InwardMode_id', models.AutoField(primary_key=True, serialize=False)),
                ('InwardMode_name', models.CharField(blank=True, max_length=255, null=True)),
                ('InwardMode_details', models.CharField(blank=True, max_length=255, null=True)),
            ],
            options={
                'db_table': 'Inward_mode',
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='InwardPostType',
            fields=[
                ('InwardPostType_id', models.AutoField(primary_key=True, serialize=False)),
                ('InwardPostType_name', models.CharField(blank=True, max_length=255, null=True)),
                ('InwardPostType_details', models.CharField(blank=True, max_length=255, null=True)),
            ],
            options={
                'db_table': 'inward_post_type',
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='InwardPendingDocument',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('inward_doc', models.FileField(default='default.png', upload_to='uploads/')),
                ('inward', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Inward.Inward')),
            ],
        ),
        migrations.CreateModel(
            name='InwardDocument',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('inward_doc', models.FileField(blank=True, null=True, upload_to='uploads/')),
                ('inward_id', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Inward.Inward')),
            ],
            options={
                'db_table': 'inward_Document',
                'managed': True,
            },
        ),
        migrations.AddField(
            model_name='inward',
            name='inward_mode',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Inward.InwardMode'),
        ),
        migrations.AddField(
            model_name='inward',
            name='inward_posttype',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Inward.InwardPostType'),
        ),
    ]
