Se agregaron partidas y modelos
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.3 on 2025-10-02 00:06
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0010_alter_pedimento_contribuyente'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cove',
|
||||
name='acuse_cove_descargado',
|
||||
field=models.BooleanField(default=False, help_text='Indica si el acuse de la cove ha sido descargado'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='cove',
|
||||
name='cove_descargado',
|
||||
field=models.BooleanField(default=False, help_text='Indica si la cove ha sido descargada'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='edocument',
|
||||
name='acuse_descargado',
|
||||
field=models.BooleanField(default=False, help_text='Indica si el acuse del e-documento ha sido descargado'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='edocument',
|
||||
name='edocument_descargado',
|
||||
field=models.BooleanField(default=False, help_text='Indica si el e-documento ha sido descargado'),
|
||||
),
|
||||
]
|
||||
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'],
|
||||
},
|
||||
),
|
||||
]
|
||||
17
api/customs/migrations/0013_alter_partida_unique_together.py
Normal file
17
api/customs/migrations/0013_alter_partida_unique_together.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 5.2.3 on 2025-10-03 02:12
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0012_partida'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterUniqueTogether(
|
||||
name='partida',
|
||||
unique_together={('pedimento', 'numero_partida')},
|
||||
),
|
||||
]
|
||||
20
api/customs/migrations/0014_partida_created_at.py
Normal file
20
api/customs/migrations/0014_partida_created_at.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 5.2.3 on 2025-10-03 03:20
|
||||
|
||||
import django.utils.timezone
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0013_alter_partida_unique_together'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='partida',
|
||||
name='created_at',
|
||||
field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now, help_text='Fecha de creación del registro'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
18
api/customs/migrations/0015_partida_updated_at.py
Normal file
18
api/customs/migrations/0015_partida_updated_at.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.3 on 2025-10-03 03:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0014_partida_created_at'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='partida',
|
||||
name='updated_at',
|
||||
field=models.DateTimeField(auto_now=True, help_text='Fecha de última actualización del registro'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user