Added brand, model and model_id columns to `BluetoothDevice`.

This commit is contained in:
Fabio Manganiello 2023-02-19 23:02:04 +01:00
parent 68e6b271c1
commit a6c36fa1c1
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from sqlalchemy import (
ForeignKey,
Integer,
JSON,
String,
)
from platypush.common.db import Base
@ -51,6 +52,15 @@ if 'bluetooth_device' not in Base.metadata:
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)
"""
Latest manufacturer data published by the device, as a