46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
/**
|
|
* NonConformity Entity
|
|
* No conformidades detectadas en inspecciones
|
|
*
|
|
* @module Quality
|
|
* @table quality.non_conformities
|
|
*/
|
|
import { Tenant } from '../../core/entities/tenant.entity';
|
|
import { User } from '../../core/entities/user.entity';
|
|
import { Inspection } from './inspection.entity';
|
|
import { CorrectiveAction } from './corrective-action.entity';
|
|
export type NCSeverity = 'minor' | 'major' | 'critical';
|
|
export type NCStatus = 'open' | 'in_progress' | 'closed' | 'verified';
|
|
export declare class NonConformity {
|
|
id: string;
|
|
tenantId: string;
|
|
inspectionId: string;
|
|
loteId: string;
|
|
ncNumber: string;
|
|
detectionDate: Date;
|
|
category: string;
|
|
severity: NCSeverity;
|
|
description: string;
|
|
rootCause: string;
|
|
photoUrl: string;
|
|
contractorId: string;
|
|
status: NCStatus;
|
|
dueDate: Date;
|
|
closedAt: Date;
|
|
closedById: string;
|
|
verifiedAt: Date;
|
|
verifiedById: string;
|
|
closurePhotoUrl: string;
|
|
closureNotes: string;
|
|
createdAt: Date;
|
|
createdById: string;
|
|
updatedAt: Date;
|
|
updatedById: string;
|
|
tenant: Tenant;
|
|
inspection: Inspection;
|
|
createdBy: User;
|
|
closedBy: User;
|
|
verifiedBy: User;
|
|
correctiveActions: CorrectiveAction[];
|
|
}
|
|
//# sourceMappingURL=non-conformity.entity.d.ts.map
|