You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.9 KiB
Python
43 lines
1.9 KiB
Python
from sqlalchemy import Column, BigInteger, Integer, Float, String, Text, DateTime
|
|
from src.database.core import CollectorBase
|
|
|
|
|
|
class WorkOrderData(CollectorBase):
|
|
__tablename__ = "wo_staging_3"
|
|
|
|
id = Column(BigInteger, primary_key=True, autoincrement=True)
|
|
assetnum = Column(Text, nullable=True)
|
|
description1 = Column(Text, nullable=True)
|
|
unit = Column(Integer, nullable=True)
|
|
location = Column(String(25), nullable=True)
|
|
system_tag = Column(String(25), nullable=True)
|
|
wonum = Column(String(10), nullable=True)
|
|
description2 = Column(Text, nullable=True)
|
|
wo_complt_comment = Column(Text, nullable=True)
|
|
worktype = Column(String(10), nullable=True)
|
|
jpnum = Column(String(10), nullable=True)
|
|
workgroup = Column(String(30), nullable=True)
|
|
mat_cost_max = Column(Float, nullable=True)
|
|
serv_cost_max = Column(Float, nullable=True)
|
|
total_cost_max = Column(Float, nullable=True)
|
|
wo_start = Column(DateTime, nullable=True)
|
|
wo_finish = Column(DateTime, nullable=True)
|
|
wo_start_olah = Column(DateTime, nullable=True)
|
|
wo_finish_olah = Column(DateTime, nullable=True)
|
|
reportdate = Column(DateTime, nullable=True)
|
|
reportdate_olah = Column(DateTime, nullable=True)
|
|
time_to_event = Column(Float, nullable=True)
|
|
actstart = Column(DateTime, nullable=True)
|
|
actfinish = Column(DateTime, nullable=True)
|
|
actstart_olah = Column(DateTime, nullable=True)
|
|
actfinish_olah = Column(DateTime, nullable=True)
|
|
act_repair_time = Column(Float, nullable=True)
|
|
jumlah_labor = Column(Integer, nullable=True)
|
|
need_downtime = Column(String(100), nullable=True)
|
|
validation_downtime = Column(Integer, nullable=True)
|
|
down_0_and_not_oh = Column(Integer, nullable=True)
|
|
downtime = Column(Integer, nullable=True)
|
|
failure_code = Column(String(10), nullable=True)
|
|
problem_code = Column(String(10), nullable=True)
|
|
act_finish_wo_start = Column(Float, nullable=True)
|