Patentes - Agentes Aduanales

This commit is contained in:
2025-06-13 12:03:40 -06:00
parent b0b9672f11
commit c576ab5b3b
24 changed files with 2581 additions and 929 deletions

31
patentes.txt Normal file
View File

@@ -0,0 +1,31 @@
CREATE TABLE agentes_aduanales (
id_agente INT IDENTITY(1,1) PRIMARY KEY,
aduana VARCHAR(3),
patente VARCHAR(4),
agente_aduanal NVARCHAR(100),
rfc VARCHAR(13),
curp VARCHAR(18),
razon_social NVARCHAR(100),
id_usuario INT,
activo BIT DEFAULT 0,
creado_en DATETIME DEFAULT GETDATE(),
mf_nombre VARCHAR(50),
mf_paterno VARCHAR(50),
mf_materno VARCHAR(50),
vp_inicio INT DEFAULT 0,
vp_final INT DEFAULT 0,
vp_siguiente INT DEFAULT 0,
vpe_inicio INT DEFAULT 0,
vpe_final INT DEFAULT 0,
vpe_siguiente INT DEFAULT 0,
vat_pb_inicio INT DEFAULT 0,
vat_pb_final INT DEFAULT 0,
vat_pb_siguiente INT DEFAULT 0,
vcc_inicio INT DEFAULT 0,
vcc_final INT DEFAULT 0,
vcc_siguiente INT DEFAULT 0,
vae_inicio INT DEFAULT 0,
vae_final INT DEFAULT 0,
vae_siguiente INT DEFAULT 0
FOREIGN KEY (id_usuario) REFERENCES usuarios_sistema(id_usuario)
)