From 976c9e8a895016b0c2a9dd8dace037e07c510546 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Thu, 12 Jul 2018 18:19:49 +0800 Subject: [PATCH] # add smart push model --- apps/smart/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/smart/models.py b/apps/smart/models.py index cb4ed91..712e787 100644 --- a/apps/smart/models.py +++ b/apps/smart/models.py @@ -18,3 +18,9 @@ class SmartModule(models.Model): def __str__(self): return self.name + + +class SmartPush(models.Model): + smart = models.ForeignKey(SmartModule, on_delete=models.PROTECT, verbose_name='智能模块') + signal = models.IntegerField(verbose_name='信号') + coordinate = models.CharField(max_length=100, verbose_name='坐标')