You've already forked STARK
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:
23
SmartHome/tables.py
Normal file
23
SmartHome/tables.py
Normal 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',
|
||||
})
|
Reference in New Issue
Block a user