瀏覽代碼

增加历史天气记录

林轩 1 年之前
父節點
當前提交
ae70bfd56a
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      apps/Weather/models.py

+ 12 - 0
apps/Weather/models.py

@@ -56,3 +56,15 @@ class HistoryData(models.Model):
 
     class Meta:
         db_table = "history_data"
+
+
+class HistoryDayData(models.Model):
+
+    id = models.AutoField("ID", primary_key=True)
+    cityid = models.CharField("城市ID", max_length=64, blank=True, null=True)
+    province = models.CharField("省", max_length=64, blank=True, null=True)
+    city = models.CharField("市", max_length=64, blank=True, null=True)
+    district = models.CharField("区", max_length=64, blank=True, null=True)
+    content = models.TextField("天气")
+    class Meta:
+        db_table = "history_today"