Commit Graph

15 Commits

Author SHA1 Message Date
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
bae51c3f67 Added data storage tables and types
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-23 13:46:09 +03:00
6e74778241 main: temp spelling
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-08 22:20:39 +03:00
dc4e3ef8d6 main: add iot functions for monitor and door
- Echo back for monitor for now.
   - Needs database tables and linkage

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-05-08 22:09:06 +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
59417427c3 main: Implement generation of IotDev Token
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-17 21:20:45 +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
64edc98a76 sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 14:51:26 +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