import { Schema } from 'mongoose'; import { IRequirement } from '../models/requirement.model'; const requirementSchema = new Schema({ process: { type: Schema.Types.ObjectId, ref: 'processSchema', index: true }, '#select': { type: Boolean, default: false }, sku: { type: String }, itemDesignation: { type: String }, style: { type: String }, priority: { type: Number }, deliveryWeekRequested: { type: Date }, quantityRequested: { type: Number }, eqLoad: { type: Number }, stockAvailable: { type: Number }, stockAvailableUnCut: { type: Number }, pofNumber: { type: Number }, proposedMaker: { type: String }, typeMO: { type: String }, extRef: { type: String }, componentCut: { type: String }, componentUncut: { type: String }, season: { type: String }, cutUnit: { type: String }, unCutUnit: { type: String }, manuUnit: { type: String }, manuVol: { type: String }, cutVol: { type: String }, unCutVol: { type: String }, familyProduct: { type: String }, week: { type: String }, year: { type: String }, fcn2: { type: Boolean, default: false }, }); export { requirementSchema };