fix: 7 Bugs behoben – Backend+Frontend lauffähig getestet
Backend-Fixes: - vehicles-Relation in Account-Model ergänzt (500er bei Auth) - security.py: bcrypt direkt statt passlib (bcrypt 5.x-Kompatibilität) - auth.py Login: selectinload(User.role) gegen Lazy-Loading-500er - equipment_group.py: LocationRef-Import via TYPE_CHECKING Frontend-Fixes: - api.ts: Python-Docstring durch JS-Kommentar ersetzt - AppLayout.tsx: AddressBook→Contact (existiert nicht in lucide-react) - package.json: axios-Dependency ergänzt Tests bestanden: - Health 200, Register 201, Login 200, Projects CRUD 200, alle API-Listen 200 - tsc --noEmit: sauber, vite build: erfolgreich
This commit is contained in:
@@ -31,4 +31,5 @@ class Account(Base):
|
||||
stock_locations: Mapped[list["StockLocation"]] = relationship("StockLocation", back_populates="account")
|
||||
equipment_groups: Mapped[list["EquipmentGroup"]] = relationship("EquipmentGroup", back_populates="account")
|
||||
crew_members: Mapped[list["Crew"]] = relationship("Crew", back_populates="account")
|
||||
vehicles: Mapped[list["Vehicle"]] = relationship("Vehicle", back_populates="account")
|
||||
projects: Mapped[list["Project"]] = relationship("Project", back_populates="account")
|
||||
|
||||
Reference in New Issue
Block a user