aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to use Rocket 0.5.0-rc.1Harald Eilertsen2021-08-241-56/+81
|
* Implement edit screenings in web ui.Harald Eilertsen2020-08-231-0/+20
|
* Change start/end times to complete timestamps.Harald Eilertsen2020-08-231-8/+6
| | | | | | | The way we had this until now with a date and separate start and end times does not really work. There are cases when a screening starts on one day, but ends on the next. By keeping a complete timestamp for both the start and end times, we don't fall into this problem.
* Implement deleting screenings from web ui.Harald Eilertsen2020-08-231-0/+6
|
* Implement adding screenings in the web ui.Harald Eilertsen2020-08-231-10/+14
|
* Implement adding and listing films.Harald Eilertsen2020-08-231-0/+7
|
* Implement adding rooms through the web ui.Harald Eilertsen2020-08-221-0/+7
|
* Add db::get_screeinings to get plain screening model.Harald Eilertsen2019-08-101-0/+5
|
* Rename Screening model to AggregateScreeningHarald Eilertsen2019-08-101-2/+2
|
* Update /screenings endpoint to return full info on screenings.Harald Eilertsen2019-04-281-3/+4
| | | | | This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together.
* Import model structs to main models module.Harald Eilertsen2019-04-081-8/+8
|
* Move functions to query/modify db to connection object.Harald Eilertsen2019-04-081-0/+62
| | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves.
* Actually fetch available rooms from the database.Harald Eilertsen2019-03-211-1/+0
|
* Refactoring, move db connection and room controller to separate modules.Harald Eilertsen2019-03-041-0/+26