44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
/**
|
|
* Inspection Entity
|
|
* Inspecciones de calidad realizadas
|
|
*
|
|
* @module Quality
|
|
* @table quality.inspections
|
|
*/
|
|
import { Tenant } from '../../core/entities/tenant.entity';
|
|
import { User } from '../../core/entities/user.entity';
|
|
import { Checklist } from './checklist.entity';
|
|
import { InspectionResult } from './inspection-result.entity';
|
|
import { NonConformity } from './non-conformity.entity';
|
|
export type InspectionStatus = 'pending' | 'in_progress' | 'completed' | 'approved' | 'rejected';
|
|
export declare class Inspection {
|
|
id: string;
|
|
tenantId: string;
|
|
checklistId: string;
|
|
loteId: string;
|
|
inspectionNumber: string;
|
|
inspectionDate: Date;
|
|
inspectorId: string;
|
|
status: InspectionStatus;
|
|
totalItems: number;
|
|
passedItems: number;
|
|
failedItems: number;
|
|
passRate: number;
|
|
completedAt: Date;
|
|
approvedById: string;
|
|
approvedAt: Date;
|
|
notes: string;
|
|
rejectionReason: string;
|
|
createdAt: Date;
|
|
createdById: string;
|
|
updatedAt: Date;
|
|
updatedById: string;
|
|
tenant: Tenant;
|
|
checklist: Checklist;
|
|
inspector: User;
|
|
createdBy: User;
|
|
approvedBy: User;
|
|
results: InspectionResult[];
|
|
nonConformities: NonConformity[];
|
|
}
|
|
//# sourceMappingURL=inspection.entity.d.ts.map
|