# Generated by Django 6.0.2 on 2026-07-08 13:14

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Good',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=100, unique=True)),
                ('name', models.CharField(max_length=255)),
                ('barcode', models.CharField(blank=True, max_length=100)),
                ('item_type', models.CharField(blank=True, max_length=100)),
                ('unit', models.CharField(blank=True, max_length=100)),
                ('sub_unit', models.CharField(blank=True, max_length=100)),
                ('conversion_factor', models.DecimalField(decimal_places=6, default=1, max_digits=18)),
                ('stock', models.DecimalField(decimal_places=3, default=0, max_digits=18)),
                ('buy_price', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('sell_price', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('purchases_title', models.CharField(blank=True, max_length=255)),
                ('sales_title', models.CharField(blank=True, max_length=255)),
                ('node_family', models.CharField(blank=True, max_length=500)),
                ('tag', models.CharField(blank=True, max_length=255)),
                ('description', models.TextField(blank=True)),
                ('product_code', models.CharField(blank=True, max_length=100)),
                ('active', models.BooleanField(default=True)),
                ('tax_id', models.CharField(blank=True, max_length=100)),
                ('tax_unit', models.CharField(blank=True, max_length=100)),
                ('reorder_point', models.DecimalField(decimal_places=3, default=0, max_digits=18)),
                ('lead_time', models.PositiveIntegerField(default=0)),
                ('minimum_order', models.DecimalField(decimal_places=3, default=0, max_digits=18)),
                ('warehousing_rate', models.DecimalField(decimal_places=2, default=0, max_digits=18)),
                ('first_period_balance', models.DecimalField(decimal_places=3, default=0, max_digits=18)),
                ('minimum_physical_inventory', models.DecimalField(decimal_places=3, default=0, max_digits=18)),
                ('price_list', models.JSONField(blank=True, default=list)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Good',
                'verbose_name_plural': 'Goods',
                'ordering': ['name', 'code'],
            },
        ),
    ]
