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:
@@ -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"
|
||||
]
|
||||
Reference in New Issue
Block a user