# Generated by Django 5.2.7 on 2025-11-27 19:57

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='ProductionOrder',
            fields=[
                ('pk_AbsoluteEntry', models.BigIntegerField(primary_key=True, serialize=False)),
                ('att_DocumentNumber', models.IntegerField()),
                ('att_ItemNo', models.CharField(max_length=50)),
                ('att_ProductDescription', models.CharField(max_length=200)),
                ('att_ProductionOrderStatus', models.CharField(max_length=50)),
                ('att_ProductionOrderType', models.CharField(max_length=50)),
                ('msr_PlannedQuantity', models.DecimalField(decimal_places=2, max_digits=10)),
                ('msr_CompletedQuantity', models.DecimalField(decimal_places=2, max_digits=10)),
                ('att_InventoryUOM', models.CharField(max_length=20)),
                ('att_PostingDate', models.DateField()),
                ('att_StartDate', models.DateField()),
                ('att_DueDate', models.DateField()),
                ('att_Warehouse', models.CharField(max_length=20)),
                ('att_Remarks', models.TextField(blank=True, null=True)),
                ('att_UserSignature', models.IntegerField(blank=True, null=True)),
                ('att_U_Joli_Turno', models.CharField(blank=True, max_length=10, null=True)),
                ('msr_U_Joli_N_Operarios', models.IntegerField(default=1)),
                ('att_CreationDate', models.DateTimeField()),
                ('att_ClosingDate', models.DateTimeField(blank=True, null=True)),
                ('att_DistributionRule', models.CharField(blank=True, max_length=20, null=True)),
                ('att_U_Joli_Causales_Incumplimiento', models.CharField(blank=True, max_length=50, null=True)),
                ('att_EstadoSync', models.CharField(default='activo', max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='ProductionOrderLine',
            fields=[
                ('pk_LineID', models.AutoField(primary_key=True, serialize=False)),
                ('att_LineNumber', models.IntegerField()),
                ('att_ItemNo', models.CharField(max_length=50)),
                ('att_ItemName', models.CharField(max_length=200)),
                ('msr_BaseQuantity', models.DecimalField(decimal_places=4, max_digits=10)),
                ('msr_PlannedQuantity', models.DecimalField(decimal_places=2, max_digits=10)),
                ('msr_IssuedQuantity', models.DecimalField(decimal_places=2, max_digits=10)),
                ('att_ProductionOrderIssueType', models.CharField(max_length=20)),
                ('att_Warehouse', models.CharField(max_length=20)),
                ('att_ItemType', models.CharField(max_length=20)),
                ('att_StartDate', models.DateField()),
                ('att_EndDate', models.DateField()),
                ('att_VisualOrder', models.IntegerField()),
                ('fk_AbsoluteEntry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lineas', to='ordenes.productionorder')),
            ],
        ),
    ]
