# up model

This commit is contained in:
xianfuxing 2018-07-30 20:31:33 +08:00
parent eb26be013f
commit ae08cab713
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
from rest_framework import serializers
class

View File

@ -40,6 +40,9 @@ class DeviceInfo(models.Model):
maintain_server_ip = models.CharField(max_length=15, blank=True, null=True, verbose_name='备用服务器IP')
maintain_server_port = models.IntegerField(blank=True, null=True, verbose_name='备用服务器端口')
last_connect = models.DateTimeField(blank=True, null=True, verbose_name='最后连接时间')
online = models.IntegerField(verbose_name='是否在线')
session_id = models.CharField(max_length=36, blank=True, null=True)
last_offline_time = models.DateTimeField(blank=True, null=True, verbose_name='上次离线时间')
class Meta:
managed = False