Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
429 B
3
Indexable
Never
export const FiscalDocumentLogSchema = createSchema<IFiscalDocumentLog>({
    message: { type: String, required: true },
    date: { type: Date, required: true },
    method: { type: String, required: true },
    isError: { type: Boolean, require: true }
})


export const FiscalDocumentSchema = createSchema<IFiscalDocument>({
    fiscalDocumentLog: { type: [FiscalDocumentLogSchema], default:[], required: false },
})