1
0
Fork 0

account changes

refactor/models
Matthew 2019-11-16 23:58:11 -05:00
parent 1927e3b295
commit 988539279b
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,8 @@ export interface AccountInterface extends Document {
},
root: boolean,
hash: string,
salt: string
salt: string,
authTag: Buffer
}
const Account: Schema = new Schema({
@ -36,6 +37,7 @@ const Account: Schema = new Schema({
root: Boolean,
hash: String,
salt: String,
authTag: Buffer,
});
export default model<AccountInterface>('Account', Account);