issues
search
ZikaZaki
/
vespa-backend
Your online vespa-motorcycle booking app where you can book an appointment to try any model you like in a different cities worldwide. Built with Ruby on Rails, React, & Redux.
4
stars
1
forks
source link
[4pt] Create the **Reservation** `model`.
#9
Closed
ZikaZaki
closed
1 year ago
ZikaZaki
commented
1 year ago
Create the
Reservation
model with the following fields:
city_id
(foreign key city table).
user_id
(foreign key user table).
bike_id
(foreign key bike/motor table).
from_datetime
field.
to_datetime
field.
fee
(calculated field).
Reservation
model with the following fields:city_id
(foreign key city table).user_id
(foreign key user table).bike_id
(foreign key bike/motor table).from_datetime
field.to_datetime
field.fee
(calculated field).