add new fields

merge-requests/1/merge
Matthew 2019-11-16 23:24:36 -05:00
parent b0cf9bfc1e
commit e18307cb7f
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 4 additions and 2 deletions

View File

@ -14,8 +14,9 @@ export interface AccountInterface extends Document {
communityManager: boolean,
engineer: boolean
},
root: boolean
hash: string
root: boolean,
hash: string,
salt: string
}
const Account: Schema = new Schema({
@ -34,6 +35,7 @@ const Account: Schema = new Schema({
},
root: Boolean,
hash: String,
salt: String,
});
export default model<AccountInterface>('Account', Account);