# Generated by Django 4.1 on 2025-05-05 23:13

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('app_venin_web_new1', '0047_alter_empresa_codigofis'),
    ]

    operations = [
        migrations.CreateModel(
            name='DetCompraDoc',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nomproveedor', models.CharField(blank=True, max_length=100, null=True)),
                ('tipodoc', models.CharField(blank=True, max_length=10, null=True)),
                ('documento', models.CharField(blank=True, max_length=10, null=True)),
                ('fecemi', models.CharField(blank=True, max_length=10, null=True)),
                ('moneda', models.CharField(blank=True, max_length=3, null=True)),
                ('valvta', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('igv', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('igvi', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('total', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('totalsoles', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
                ('tcambio', models.CharField(blank=True, max_length=10, null=True)),
                ('tipocosto', models.CharField(blank=True, max_length=10, null=True)),
                ('proveedor', models.ForeignKey(db_column='idproveedor', null=True, on_delete=django.db.models.deletion.PROTECT, to='app_venin_web_new1.proveedor')),
            ],
            options={
                'db_table': 'detcompradoc',
            },
        ),
    ]
