feat: Implement general catalogs for ports, unit conversions, and units of measure
- Added models, DTOs, services, and routes for ports, including CRUD operations. - Introduced unit conversions with corresponding models, DTOs, services, and routes. - Developed units of measure with detailed models, DTOs, services, and routes for various types. - Ensured all new features are integrated with FastAPI and SQLAlchemy for seamless database interactions.
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
from api.v1.common.base_models import TenantScopedMixin
|
||||
from api.v1.common.base_models import TenantScopedMixin, TimestampMixin
|
||||
from core.database import Base
|
||||
from sqlalchemy import Column, ForeignKeyConstraint, String
|
||||
|
||||
|
||||
class TrailerType(Base, TenantScopedMixin):
|
||||
class TrailerType(Base, TenantScopedMixin, TimestampMixin):
|
||||
__tablename__ = "trailer_type"
|
||||
__table_args__ = (
|
||||
ForeignKeyConstraint(["company_id"], ["a76.company.id"]),
|
||||
ForeignKeyConstraint(["tenant_id"], ["a76.tenants.id"]),
|
||||
{"schema": "a76"},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user