Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
1.3 kB
1
Indexable
Never
export const OperationNumberSchema = createSchema<IOperationNumber>({
      //codigo de compania
      companyCode	             : {type: String, required: true, default: "napse"},
      //invoiceType asociado a la serie
      invoiceType	             : {type: String, required: true},
      //Serie de numeración
      pointOfSale	             : {type: String, required: true},
      //ultimo Numero registrado para la serie
      lastDocumentNumber	     : {type: Number, required: true},
      lastDocumentNumberChecked: {type: Number, required: true},
      //Rango de numeracion desde
      rangeFrom: {type: Number, required: true},
      //Rango de numeracion hasta
      rangeTo: {type: Number, required: true},
      //fecha de Rango de numeracion desde
      startDate: {type: Date, required: true},
      //fecha de Rango de numeracion hasta
      endDate: {type: Date, required: true},
      //Tipo
      type: {type: String, required: true},
      //Numero de resolucion
      resolution: {type: Number, required: true},
      //fecha de resolucion
      resolutionDate: {type: Date, required: true},
      //activo
      active: {type: "Boolean", required: true, default: true},
      //Clave técnica
      technicalKey: {type: String, required: false}
})