Week 4

This week I was in charge of creating/helping for the database models. Victor created the user, station and Bike structure. I suggested to add a Trip structure because I thought it would be helpful to know the way a Bike took through time, otherwise we would only know its final station and for the predictive analysis the trip would say a lot of useful information.

I did this comment on the pull request:

Screenshot from 2019-02-09 19-56-36

Then I created the structure for the Trip model

Screenshot from 2019-02-09 23-37-46

As it was necessary to know where the bikes end at the end of the day and separate them into groups, the trip model helps perfectly in this.

For the database I suggested using a nosql since we are not going to have so many relations and I saw it easier, victor told me to use redis.

I created a CRUD for the trip model.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s