Commit Graph

19 Commits

Author SHA1 Message Date
232ff82c46 sql_app: save last issued token in user record
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-05 16:25:20 +03:00
f4b0e886cc sql_app: Added function to get room info (temp, people ...)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 21:04:19 +03:00
36123b1090 sql_app: Access log for user (access history)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 19:44:04 +03:00
52a7cffce2 sql_app: Added access log request
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 19:02:54 +03:00
575ba9452a users/open: pass in time for door to stay open
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 14:58:30 +03:00
e9925d32b4 clear open_door attr from doors when read.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 14:36:29 +03:00
bae51c3f67 Added data storage tables and types
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 13:46:09 +03:00
3302c4dc39 main, crud: implement disallow user
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 02:39:45 +03:00
20f4d0202f crud: use indexed primary key search rather than list all
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:54:33 +03:00
f5d7db5071 crud: fix open door command db commit
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:48:44 +03:00
34f27c32e8
users: Add open door command from user application
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-18 01:43:12 +03:00
48e4f0ab48 crud: get iot by BT
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:34:50 +03:00
17aa68ba9a
allow user: allow acces to room by name or id
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-14 01:37:30 +03:00
9a7e6a288f sql_app: db: IotEntity added bluetooth field
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 09:39:25 +03:00
fe3a193a4f sql_app: create and link iot device
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 08:34:12 +03:00
f1cbd6d265 jwt auth
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-13 05:24:06 +03:00
3153a7db8d sql_app: add username in regsiter
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-04 02:02:29 +03:00
ab30844d95
sql_app: implement password hashing when create_user is used.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:46:50 +03:00
b0dc22070e
sql_app: basic models and schemas from FastAPI docs
- Classes in models describe tables in database

	- Classes in schemas desribe pydantic models to
	read from the API.

	- database provides a connection and sessions to
	the database.

	- crud exposes the interface to the database, i.e.
	actions we can take from the application onto the
	database

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-03 15:49:26 +03:00