feat: Update Ride model with 2 new fields
This commit is contained in:
parent
4402a4d508
commit
d05897ca8e
@ -39,5 +39,7 @@ This model includes the following columns:
|
||||
- `ride_distance` and `ride_duration`: Floats and integers for the distance and duration of the ride.
|
||||
- `ride_fare`: A float for the fare amount of the ride.
|
||||
- `created_at` and `updated_at`: Datetime columns for when the ride was created and last updated.
|
||||
dispatch_status = Column(String, nullable=False, default='pending')
|
||||
dispatch_time = Column(DateTime, nullable=True)
|
||||
|
||||
The model also includes relationships to the `User` model for the rider and driver, using the `rider_id` and `driver_id` foreign keys.
|
Loading…
x
Reference in New Issue
Block a user