From 90f067de61e6ea6e7861a72e93b844be63225fa0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 29 Apr 2022 23:27:35 +0200 Subject: [PATCH] Added `reachable` flag to device entities --- platypush/entities/devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/entities/devices.py b/platypush/entities/devices.py index 619a22529..8d3d45230 100644 --- a/platypush/entities/devices.py +++ b/platypush/entities/devices.py @@ -1,4 +1,4 @@ -from sqlalchemy import Column, Integer, ForeignKey +from sqlalchemy import Column, Integer, Boolean, ForeignKey from ._base import Entity @@ -7,6 +7,7 @@ class Device(Entity): __tablename__ = 'device' id = Column(Integer, ForeignKey(Entity.id, ondelete='CASCADE'), primary_key=True) + reachable = Column(Boolean, default=True) __mapper_args__ = { 'polymorphic_identity': __tablename__,