refactor(api): remove legacy director report fields
This commit is contained in:
@@ -20,13 +20,6 @@ export enum InspectionReportWordStatus {
|
|||||||
FAILED = 'FAILED',
|
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' })
|
@Entity({ name: 'inspection_reports' })
|
||||||
@Index('idx_inspection_reports_visit_id', ['visitId'])
|
@Index('idx_inspection_reports_visit_id', ['visitId'])
|
||||||
@Index('uq_inspection_reports_act', ['actId'], { unique: true })
|
@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 })
|
@Column({ name: 'word_error', type: 'varchar', length: 500, nullable: true })
|
||||||
wordError!: string | null;
|
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 })
|
@Column({ name: 'current_revision_number', type: 'integer', default: 0 })
|
||||||
currentRevisionNumber!: number;
|
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 })
|
@Column({ type: 'varchar', length: 220 })
|
||||||
title!: string;
|
title!: string;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user