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.
26 lines
742 B
Python
26 lines
742 B
Python
from sqlalchemy import UUID, Column, Float, ForeignKey, String
|
|
|
|
from src.database.core import Base
|
|
from src.models import DefaultMixin
|
|
|
|
|
|
class OverhaulActivity(Base, DefaultMixin):
|
|
__tablename__ = "oh_tr_overhaul_activity"
|
|
|
|
assetnum = Column(String, nullable=True)
|
|
overhaul_scope_id = Column(
|
|
UUID(as_uuid=True), ForeignKey("oh_ms_overhaul_scope.id"), nullable=False
|
|
)
|
|
material_cost = Column(Float, nullable=False, default=0)
|
|
service_cost = Column(Float, nullable=False, default=0)
|
|
status = Column(String, nullable=False, default="pending")
|
|
|
|
# "MasterEquipment",
|
|
|
|
# # "ScopeEquipmentPart",
|
|
|
|
|
|
# "OverhaulScope",
|
|
|
|
# "OverhaulJob", back_populates="overhaul_activity", lazy="raise"
|