summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-24 21:05:11 +0300
committereug-vs <eug-vs@keemail.me>2021-04-24 21:05:11 +0300
commit96a2ac822ff72fabcd25d2f06a272ecac902c77d (patch)
treec79f36526da62b18522947a3dae187767db333bf /src/models
parent593159c22c2acad599b67d1b128a52232b79a34b (diff)
downloadcommercel-api-96a2ac822ff72fabcd25d2f06a272ecac902c77d.tar.gz
feat: parse account from PDF bill
Diffstat (limited to 'src/models')
-rw-r--r--src/models/transfer/transfer.schema.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/models/transfer/transfer.schema.ts b/src/models/transfer/transfer.schema.ts
index ebdb6ab..5a4240a 100644
--- a/src/models/transfer/transfer.schema.ts
+++ b/src/models/transfer/transfer.schema.ts
@@ -3,6 +3,7 @@ import { Document, Schema, Types } from 'mongoose';
export interface TransferSchema extends Document {
date: string;
operation: 'in' | 'out';
+ accountId: string;
contractorId: string;
amount: number;
}
@@ -17,6 +18,10 @@ export const transferSchema = new Schema({
type: String,
required: true,
},
+ accountId: {
+ type: Types.ObjectId,
+ required: true,
+ },
contractorId: {
type: Types.ObjectId,
required: true,