ibs/sql_app
HeshamTB 6a3d9d9e95 sql_app: Use more relations in database
Instead of using manual db lookup for access log,
	use device.access_list to fetch the data from
	access_log table. This does the SQL query underneath.

	To do so, instructions from SQLAlchemey were followed
	to to many-to-one relations for users and devices,
	respectevly.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-08 14:19:27 +03:00
..
tests helper scripts 2022-06-06 20:07:26 +03:00
__init__.py sql_app: basic models and schemas from FastAPI docs 2022-03-03 15:49:26 +03:00
.gitignore jwt auth 2022-04-13 05:24:06 +03:00
auth_helper.py main: add iot functions for monitor and door 2022-05-08 22:09:06 +03:00
crud.py sql_app: Use more relations in database 2022-06-08 14:19:27 +03:00
crypto.py jwt auth 2022-04-13 05:24:06 +03:00
database.py sql_app: basic models and schemas from FastAPI docs 2022-03-03 15:49:26 +03:00
gen_secret.sh jwt auth 2022-04-13 05:24:06 +03:00
init_db.py sql_app: Use more relations in database 2022-06-08 14:19:27 +03:00
init_secrets.sh sql_app: init_secrets: add new variable for first user password 2022-06-07 14:41:06 +03:00
main.py sql_app: Use more relations in database 2022-06-08 14:19:27 +03:00
models.py sql_app: Use more relations in database 2022-06-08 14:19:27 +03:00
schemas.py sql_app: fixed errors in room access log endpoints 2022-06-08 13:26:41 +03:00
TODO sql_app: Remove hard coded HTTPException codes 2022-06-07 21:40:01 +03:00
utils.py sql_app: added init db 2022-06-07 14:41:48 +03:00