# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('PIApp', '0005_remove_invoicedoc_company_key'),
    ]

    operations = [
        migrations.CreateModel(
            name='PurchOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_created', models.DateField()),
                ('po_name', models.CharField(max_length=50)),
                ('catalog_items', models.ManyToManyField(to='PIApp.Catalog_item')),
                ('company_key', models.ForeignKey(to='PIApp.Customer')),
                ('invoices', models.ManyToManyField(to='PIApp.InvoiceDoc')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.RemoveField(
            model_name='podoc',
            name='catalog_items',
        ),
        migrations.RemoveField(
            model_name='podoc',
            name='company_key',
        ),
        migrations.RemoveField(
            model_name='podoc',
            name='invoices',
        ),
        migrations.DeleteModel(
            name='PODoc',
        ),
    ]
