From 669f7cfecb63d1d1671b036d600623b569de1607 Mon Sep 17 00:00:00 2001 From: junos Date: Tue, 6 Apr 2021 13:52:08 +0200 Subject: [PATCH] Document SMS class. --- config/models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/models.py b/config/models.py index 7e9fab4..0735a92 100644 --- a/config/models.py +++ b/config/models.py @@ -335,6 +335,16 @@ class Screen(Base, AWAREsensor): class SMS(Base, AWAREsensor): + """ + Contains the messages sensor information. + + Attributes + ---------- + message_type: int + Message type (1 – received, 2 – sent) + trace: str(40) + A hash value SHA-1 of the phone number (source or target) of the call + """ message_type = Column(SmallInteger, nullable=False) trace = Column(String(length=40), nullable=False)