Commit Graph

8 Commits

Author SHA1 Message Date
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
866182c25e sql_app/models: fix inverted table links
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-04-03 15:51:36 +03:00
3922d659da
sql_app: models: correct many-to-many relation between iotdev and users
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-16 22:29:34 +03:00
0d66c6f50f
sql_app: another api app to test
In sql_app/main.py, new path fucntions are tested
	for database connections, quary.

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-03-06 16:13: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