|
|
@@ -18,14 +18,14 @@ class User(Base): |
|
|
|
|
|
|
|
|
|
|
|
#Admin-specific relationships |
|
|
|
CreatedAuctions = relationship("Auction", back_populates="CreatedBy") |
|
|
|
auctions = relationship("Auction", back_populates="CreatedBy") |
|
|
|
#Driver-specific relationships |
|
|
|
DrivingLicenseNumber = Column(String, nullable=True) |
|
|
|
AssignedVehicle = Column(Integer, ForeignKey("vehicle.Id"), nullable=True) |
|
|
|
DriveTasks = relationship("DriveTask", back_populates="CreatedBy") |
|
|
|
driveTasks = relationship("DriveTask", back_populates="CreatedBy") |
|
|
|
vehicle = relationship("Vehicle", back_populates="driver") |
|
|
|
#MaintenancePerson-specific relationships |
|
|
|
maintenanceJobs = relationship("MaintenanceJob", back_populates="CreatedBy") |
|
|
|
#FuelingPerson-specific relationships |
|
|
|
fuelingJobs = relationship("FuelingJob", back_populates="CreatedBy") |
|
|
|
#fuelingJobs = relationship("FuelingJob", back_populates="CreatedBy") |
|
|
|
|