forked from platypush/platypush
Added brand, model and model_id columns to BluetoothDevice
.
This commit is contained in:
parent
68e6b271c1
commit
a6c36fa1c1
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,7 @@ from sqlalchemy import (
|
||||||
ForeignKey,
|
ForeignKey,
|
||||||
Integer,
|
Integer,
|
||||||
JSON,
|
JSON,
|
||||||
|
String,
|
||||||
)
|
)
|
||||||
|
|
||||||
from platypush.common.db import Base
|
from platypush.common.db import Base
|
||||||
|
@ -51,6 +52,15 @@ if 'bluetooth_device' not in Base.metadata:
|
||||||
UUID -> Name map.
|
UUID -> Name map.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
brand = Column(String)
|
||||||
|
""" Device brand, as a string. """
|
||||||
|
|
||||||
|
model = Column(String)
|
||||||
|
""" Device model, as a string. """
|
||||||
|
|
||||||
|
model_id = Column(String)
|
||||||
|
""" Device model ID. """
|
||||||
|
|
||||||
manufacturer_data = Column(JSON)
|
manufacturer_data = Column(JSON)
|
||||||
"""
|
"""
|
||||||
Latest manufacturer data published by the device, as a
|
Latest manufacturer data published by the device, as a
|
||||||
|
|
Loading…
Reference in a new issue