# Generated by Django 4.2 on 2023-05-08 05:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('Item', '0006_alter_item_unitofmeasuresetreffullname'),
    ]

    operations = [
        migrations.CreateModel(
            name='PriceLevel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Name', models.CharField(max_length=50)),
                ('Desc', models.CharField(blank=True, max_length=180, null=True, verbose_name='Description')),
                ('TimeCreated', models.DateTimeField(auto_now_add=True)),
                ('TimeModified', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='PriceLevelItem',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Price', models.DecimalField(decimal_places=2, max_digits=12)),
                ('TimeCreated', models.DateTimeField(auto_now_add=True)),
                ('TimeModified', models.DateTimeField(auto_now=True)),
                ('IPL', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='itempricelevel', to='Item.item')),
                ('PL', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pricelevel', to='Item.pricelevel')),
            ],
        ),
    ]
