# Generated by Django 4.2 on 2023-05-02 15:17

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='UOM',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Name', models.CharField(max_length=80)),
                ('Abbreviation', models.CharField(max_length=12)),
                ('Number_of', models.DecimalField(decimal_places=3, max_digits=12)),
                ('Parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='parent', to='Item.uom')),
                ('Purchases', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='purchases', to='Item.uom')),
                ('Sales', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='sales', to='Item.uom')),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ItemType', models.CharField(choices=[('3', 'SERVICE'), ('1', 'INVENTORY PART'), ('2', 'NON INVENTORY'), ('4', 'OTHER CHARGES'), ('5', 'SUB TOTAL'), ('6', 'GROUP'), ('7', 'DISCOUNT'), ('8', 'PAYMENT')], default='3', max_length=1)),
                ('Name', models.CharField(max_length=80)),
                ('FullName', models.CharField(blank=True, max_length=80, null=True, unique=True)),
                ('SalesDesc', models.CharField(blank=True, max_length=80, null=True)),
                ('SalesPrice', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('PurchaseDesc', models.CharField(blank=True, max_length=80, null=True)),
                ('Sublevel', models.PositiveSmallIntegerField(default=0)),
                ('ManufacturerPartNumber', models.CharField(blank=True, max_length=80, null=True)),
                ('PurchaseCost', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                ('ReorderPoint', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('QuantityOnHand', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('AverageCost', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('QuantityOnOrder', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('QuantityOnSalesOrder', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('ParentRefFullName', models.CharField(max_length=80)),
                ('IncomeAccountRefFullName', models.CharField(default='Sales', max_length=80)),
                ('COGSAccountRefFullName', models.CharField(default='COGS', max_length=80)),
                ('PrefVendorRefFullName', models.CharField(default='TACO', max_length=80)),
                ('AssetAccountRefFullName', models.CharField(default='Inventory Asset', max_length=80)),
                ('IsActive', models.BooleanField(default=True)),
                ('NameFromTaco', models.CharField(blank=True, max_length=60, null=True)),
                ('CATEGORY', models.CharField(blank=True, max_length=60, null=True)),
                ('Type', models.CharField(blank=True, max_length=60, null=True)),
                ('TimeCreated', models.DateTimeField(auto_now_add=True)),
                ('TimeModified', models.DateTimeField(auto_now=True)),
                ('Parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Item.item')),
                ('UnitOfMeasureSetRefFullName', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Item.uom')),
            ],
        ),
    ]
