Mudanza de repo
This commit is contained in:
31
api/customs/migrations/0009_importador.py
Normal file
31
api/customs/migrations/0009_importador.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# Generated by Django 5.2.3 on 2025-08-16 15:54
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('customs', '0008_regimen_catalogo'),
|
||||
('organization', '0002_remove_organizacion_membretado_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Importador',
|
||||
fields=[
|
||||
('rfc', models.CharField(help_text='RFC del importador', max_length=13, primary_key=True, serialize=False, unique=True)),
|
||||
('nombre', models.CharField(help_text='Nombre del importador', max_length=200)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True, help_text='Fecha de creación del registro')),
|
||||
('updated_at', models.DateTimeField(auto_now=True, help_text='Fecha de última actualización del registro')),
|
||||
('organizacion', models.ForeignKey(help_text='Organización a la que pertenece el importador', on_delete=django.db.models.deletion.CASCADE, related_name='importadores', to='organization.organizacion')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Importador',
|
||||
'verbose_name_plural': 'Importadores',
|
||||
'db_table': 'importador',
|
||||
'ordering': ['rfc'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user