Migración a S3/MinIO para imágenes y PDFs, campo pdf_url en Inspection

This commit is contained in:
2025-11-24 15:38:20 -03:00
parent 871f81277c
commit de5900a4ab
4 changed files with 47 additions and 286 deletions

View File

@@ -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")