Migración a S3/MinIO para imágenes y PDFs, campo pdf_url en Inspection
This commit is contained in:
@@ -126,6 +126,7 @@ class Inspection(Base):
|
||||
created_at = Column(DateTime(timezone=True), server_default=func.now())
|
||||
updated_at = Column(DateTime(timezone=True), onupdate=func.now())
|
||||
|
||||
pdf_url = Column(String(500)) # URL del PDF en S3
|
||||
# Relationships
|
||||
checklist = relationship("Checklist", back_populates="inspections")
|
||||
mechanic = relationship("User", back_populates="inspections")
|
||||
|
||||
Reference in New Issue
Block a user