su-lmstack преди 3 години
родител
ревизия
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="信号状态")