Se agregaron partidas y modelos
This commit is contained in:
31
api/customs/migrations/0012_partida.py
Normal file
31
api/customs/migrations/0012_partida.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.2.3 on 2025-10-03 01:18
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0011_cove_acuse_cove_descargado_cove_cove_descargado_and_more'),
|
||||
('organization', '0002_remove_organizacion_membretado_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Partida',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('numero_partida', models.PositiveIntegerField(help_text='Número de la partida dentro del pedimento')),
|
||||
('descargado', models.BooleanField(default=False, help_text='Indica si la partida ha sido descargada')),
|
||||
('organizacion', models.ForeignKey(help_text='Organización a la que pertenece la partida', on_delete=django.db.models.deletion.CASCADE, related_name='partidas', to='organization.organizacion')),
|
||||
('pedimento', models.ForeignKey(help_text='Pedimento asociado a la partida', on_delete=django.db.models.deletion.CASCADE, related_name='partidas', to='customs.pedimento')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Partida',
|
||||
'verbose_name_plural': 'Partidas',
|
||||
'db_table': 'partida',
|
||||
'ordering': ['pedimento', 'numero_partida'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user