diff options
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/contractor/contractor.schema.ts | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/models/contractor/contractor.schema.ts b/src/models/contractor/contractor.schema.ts index e3f7de6..d5ac115 100644 --- a/src/models/contractor/contractor.schema.ts +++ b/src/models/contractor/contractor.schema.ts @@ -13,6 +13,9 @@ export const contractorSchema = new Schema({    fullName: String,    vatId: String,    type: String, -  debt: Number +  debt: { +    type: Number, +    default: 0 +  }  }, { timestamps: true }); | 
