feat: stabilize KYC, international assets and multi-currency schema

- Split mother's name in KYC (last/first)
- Added mileage_unit and fuel_type to Assets
- Expanded AssetCost for international VAT and original currency
- Fixed SQLAlchemy IndexError in asset catalog lookup
- Added exchange_rate and ratings tables to models
This commit is contained in:
2026-02-08 23:41:07 +00:00
parent 451900ae1a
commit 24d35fe0c1
34 changed files with 709 additions and 347 deletions

View File

@@ -1,19 +1,15 @@
from app.db.base import Base
from app.db.base_class import Base
from .identity import User, Person, Wallet, UserRole, VerificationToken
from .organization import Organization, OrgType
from .vehicle import (
VehicleCatalog,
Asset,
AssetEvent,
AssetRating,
ServiceProvider,
Vehicle, # Alias az Asset-re a kompatibilitás miatt
ServiceRecord # Alias az AssetEvent-re a kompatibilitás miatt
)
from .organization import Organization, OrganizationMember
from .asset import Asset, AssetCatalog, AssetCost, AssetEvent
from .address import Address, GeoPostalCode, GeoStreet, GeoStreetType
from .gamification import UserStats, PointsLedger
# Aliasok a kód többi részének szinkronizálásához
UserVehicle = Vehicle
VehicleOwnership = Asset
# Aliasok a kompatibilitás és a tiszta kód érdekében
Vehicle = Asset
UserVehicle = Asset
VehicleCatalog = AssetCatalog
ServiceRecord = AssetEvent
__all__ = [
"Base",
@@ -23,14 +19,19 @@ __all__ = [
"UserRole",
"VerificationToken",
"Organization",
"OrgType",
"VehicleCatalog",
"OrganizationMember",
"Asset",
"AssetEvent",
"AssetRating",
"ServiceProvider",
"AssetCatalog",
"AssetCost",
"AssetEvent",
"Address",
"GeoPostalCode",
"GeoStreet",
"GeoStreetType",
"UserStats",
"PointsLedger",
"Vehicle",
"UserVehicle",
"ServiceRecord",
"VehicleOwnership"
"VehicleCatalog",
"ServiceRecord"
]