1
0
mirror of https://github.com/MarkParker5/STARK.git synced 2025-07-02 22:36:54 +02:00

add SmartHome models for db

This commit is contained in:
MarkParker5
2022-04-14 22:57:55 +02:00
parent 44e4aa48f9
commit 110c70dd97
45 changed files with 669 additions and 1175 deletions

23
SmartHome/tables.py Normal file
View File

@ -0,0 +1,23 @@
houses = DBTable('houses', {
'name': 'text',
'owner_id': 'text'
})
rooms = DBTable('rooms', {
'name': 'text',
})
devices = DBTable('devices', {
'name': 'text',
'urdi': 'blob',
'room_id': 'text',
'model_id': 'text'
})
deviceModels = DBTable('device_models', {
'name': 'text',
})
parameters = DBTable('parameters', {
'name': 'text',
})