- Added INPC management page with search functionality. - Created Legends management page with filters for code and description. - Implemented Multi-Currency Types management with search capabilities. - Developed Packages management page with filtering options. - Introduced Ports management page with authentication and data fetching. - Added Prevalidators management page with search filters. - Implemented Signatures management page with search by name and position. - Created Unit Conversions management page for conversion factors. - Developed Units of Measure management pages for ACE, American, and OMA with data tables and create/edit dialogs.
22 lines
696 B
Python
22 lines
696 B
Python
from core.database import Base
|
|
from sqlalchemy import PrimaryKeyConstraint, String
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
|
|
class Container(Base):
|
|
__tablename__ = "containers" # GContenedores
|
|
__table_args__ = (
|
|
PrimaryKeyConstraint("key", name="containers_pkey"),
|
|
{"schema": "public", "extend_existing": True}, # opcional
|
|
)
|
|
|
|
key: Mapped[str] = mapped_column(
|
|
String(3), nullable=False
|
|
) # mantiene ceros iniciales
|
|
description: Mapped[str] = mapped_column(
|
|
String(500), nullable=False
|
|
) # descripción legal en español
|
|
|
|
def __repr__(self):
|
|
return f"<Container(key={self.key}, description={self.description})>"
|