summaryrefslogtreecommitdiff
path: root/src/models/contractor/contractor.schema.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-20 17:01:41 +0300
committereug-vs <eug-vs@keemail.me>2021-03-20 17:01:41 +0300
commitf0fe802df9fd7e98c0333a80922f6008cab7abab (patch)
tree9d4ec9e822621c4693e015edf17811c340e8a1be /src/models/contractor/contractor.schema.ts
parent2434c687bbc8f5b42b380a75e48cf1879a508674 (diff)
downloadcommercel-api-f0fe802df9fd7e98c0333a80922f6008cab7abab.tar.gz
feat: parse pdf bills into transfers
Diffstat (limited to 'src/models/contractor/contractor.schema.ts')
-rw-r--r--src/models/contractor/contractor.schema.ts5
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 });