- Implemented SQLAlchemy models for incoterms, invoice types, material types, payment methods, pedimento codes, pedimento regimens, sectors, states, transport modes, transport types, and valuation methods. - Added seed data for each reference data model to populate the database with initial values. - Ensured primary key constraints and appropriate data types for each model. - Established relationships where necessary, particularly in pedimento codes and regimens.
13 lines
697 B
Python
13 lines
697 B
Python
seed = [
|
|
("EXW", "A LA SALIDA", "EX WORKS"),
|
|
("FCA", "SIN PAGO DE TRANSPORTE PRINCIPAL", "FREE CARRIER"),
|
|
("CPT", "TRANSPORTE PAGADO HASTA", "CARRIAGE PAID TO"),
|
|
("CIP", "TRANSPORTE Y SEGUROS PAGADOS", "CARRIAGE AND INSURANCE PAID TO"),
|
|
("DPU", "ENTREGA EN LUGAR DESCARGADO", "DELIVERED AT PLACE UNLOADED"),
|
|
("DAP", "ENTREGA EN LUGAR", "DELIVERED AT PLACE"),
|
|
("DDP", "ENTREGA DERECHOS PAGADOS", "DELIVERED DUTY PAID"),
|
|
("FAS", "PUERTO DE EMBARQUE CONVENIDO", "FREE ALONGSIDE SHIP"),
|
|
("FOB", "PUERTO DE EMBARQUE CONVENIDO", "FREE ON BOARD"),
|
|
("CFR", "COSTO Y FLETE", "COST AND FREIGHT"),
|
|
("CIF", "COSTO, SEGURO Y FLETE", "COST, INSURANCE AND FREIGHT"),
|
|
] |