From f0fe802df9fd7e98c0333a80922f6008cab7abab Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 20 Mar 2021 17:01:41 +0300 Subject: feat: parse pdf bills into transfers --- src/models/contractor/contractor.schema.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/models') 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 }); -- cgit v1.2.3