su-lmstack 3 лет назад
Родитель
Сommit
1895a8c2ce
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      LIB/FRONTEND/SignalMonitor/create_table.py

+ 2 - 2
LIB/FRONTEND/SignalMonitor/create_table.py

@@ -16,7 +16,7 @@ class BmsLastDataDay(Base):
     id = Column(Integer, primary_key=True, autoincrement=True, comment="主键")
     sn = Column(String(64), comment="sn")
     current = Column(FLOAT, comment="电流")
-    time_stamp = Column(Integer, comment="时间戳")
+    time_stamp = Column(DateTime, comment="时间戳")
     pack_state = Column(Integer, comment="电池状态")
     line_state = Column(Integer, comment="信号状态")
 
@@ -34,7 +34,7 @@ class GpsLastDataDay(Base):
 
     id = Column(Integer, primary_key=True, autoincrement=True, comment="主键")
     sn = Column(String(64), comment="sn")
-    time_stamp = Column(Integer, comment="时间戳")
+    time_stamp = Column(DateTime, comment="时间戳")
     pack_state = Column(Integer, comment="电池状态")
     line_state = Column(Integer, comment="信号状态")