import { Schema } from 'mongoose'; import { IMakerAssignmentLine, MakerAssignmentLineStatus } from '../models/maker-assignment-line.model'; import { ErrorAssignmentLineType, IErrorAssignmentLine } from '../models/error-assignment-line.model'; const errorAssignmentLineSchema = new Schema({ makerAssignment: { type: Schema.Types.ObjectId, ref: 'makerAssignmentSchema', index: true }, product: { type: String }, lot: { type: String }, errorType: { type: String, enum: Object.values(ErrorAssignmentLineType), required: true, }, MMSTAT: { type: String }, PSPRNO: { type: String }, PSSTRT: { type: String }, PSFACI: { type: String }, PHSTAT: { type: String }, PSMTNO: { type: String }, M1STAT: { type: String }, WHLO: { type: String }, STAT: { type: String }, BANO: { type: String }, WHSL: { type: String }, }); export { errorAssignmentLineSchema };