From 5cba4b888ce86350b306bd65e7929e9a4f146b01 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 24 Apr 2021 21:26:33 +0300 Subject: feat: add currency to account --- src/models/account/account.schema.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/models/account/account.schema.ts') diff --git a/src/models/account/account.schema.ts b/src/models/account/account.schema.ts index 3ce3983..732ccc7 100644 --- a/src/models/account/account.schema.ts +++ b/src/models/account/account.schema.ts @@ -4,6 +4,7 @@ export interface AccountSchema extends Document { name: string; code: string; balance: number; + currency: 'BYN' | 'USD' | 'EUR'; } export const accountSchema = new Schema({ @@ -19,5 +20,9 @@ export const accountSchema = new Schema({ type: Number, default: 0, }, + currency: { + type: String, + default: 'BYN' + }, }, { timestamps: true }); -- cgit v1.2.3