32 lines
1.3 KiB
Python
32 lines
1.3 KiB
Python
# 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'],
|
|
},
|
|
),
|
|
]
|