From 0718414fdb2836a04f7a8ade6b1a6d5b44000522 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 07:10:53 -0300 Subject: [PATCH] refactor(api): remove legacy director report fields --- .../entities/inspection-report.entity.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/api-v3/src/database/entities/inspection-report.entity.ts b/api-v3/src/database/entities/inspection-report.entity.ts index 7742475..4fba6b4 100644 --- a/api-v3/src/database/entities/inspection-report.entity.ts +++ b/api-v3/src/database/entities/inspection-report.entity.ts @@ -20,13 +20,6 @@ export enum InspectionReportWordStatus { FAILED = 'FAILED', } -/** @deprecated El circuito Director/aprobación/firma se retira en F4. */ -export enum InspectionReportReviewStatus { - PENDING_REVIEW = 'PENDING_REVIEW', - APPROVED = 'APPROVED', - SIGNED = 'SIGNED', -} - @Entity({ name: 'inspection_reports' }) @Index('idx_inspection_reports_visit_id', ['visitId']) @Index('uq_inspection_reports_act', ['actId'], { unique: true }) @@ -111,28 +104,9 @@ export class InspectionReport extends TimestampedEntity { @Column({ name: 'word_error', type: 'varchar', length: 500, nullable: true }) wordError!: string | null; - // Campos legacy del circuito Director, conservados sólo hasta completar la migración F4. - @Column({ name: 'review_status', type: 'varchar', length: 32, default: InspectionReportReviewStatus.PENDING_REVIEW }) - reviewStatus!: InspectionReportReviewStatus; - @Column({ name: 'current_revision_number', type: 'integer', default: 0 }) currentRevisionNumber!: number; - @Column({ name: 'approved_revision_id', type: 'uuid', nullable: true }) - approvedRevisionId!: string | null; - - @Column({ name: 'approved_by', type: 'uuid', nullable: true }) - approvedBy!: string | null; - - @Column({ name: 'approved_at', type: 'timestamptz', nullable: true }) - approvedAt!: Date | null; - - @Column({ name: 'review_note', type: 'varchar', length: 1000, nullable: true }) - reviewNote!: string | null; - - @Column({ name: 'signed_at', type: 'timestamptz', nullable: true }) - signedAt!: Date | null; - @Column({ type: 'varchar', length: 220 }) title!: string;