diff options
Diffstat (limited to 'src/models/account/account.schema.ts')
-rw-r--r-- | src/models/account/account.schema.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 }); |