6ae5b811f4
sql_app: correct monitor mac
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-10 19:11:12 +03:00
dcd2ff5b89
sql_app: Split doors and monitors
...
A alot of interface and database boiler plate
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-09 21:52:42 +03:00
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
ae5f4e040d
sql_app: init_db: added connections and open/close commands
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-08 14:18:43 +03:00
fdb5be583b
sql_app: data: Endpoint to fetch sensor data
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-08 13:01:47 +03:00
0125f3e5fc
sql_app: Add correct door mac
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-07 20:01:43 +03:00
4789b2778c
sql_app: init_db: Added a link (allowance)
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-07 15:02:33 +03:00
6850823ae8
sql_app: init_db: Add total of 3 users
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-07 14:54:04 +03:00
e45e335d50
sql_app: added init db
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-06-07 14:41:48 +03:00