summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
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,