Advertisement
La_chips

Nested Schema

Jan 29th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.61 KB | None | 0 0
  1. var UserSchema = [new Schema({
  2.         username: {
  3.             type: String
  4.         },
  5.         email: {
  6.             type: String,
  7.         },
  8.         password: {
  9.             type: String
  10.         },
  11.         ethAddress: {
  12.             type: String
  13.         },
  14.         privateKey: {
  15.             type: String
  16.         },
  17.         transactions: new Schema({
  18.            time: {
  19.                type: String
  20.         },
  21.         date : {
  22.             type: String
  23.         },
  24.         transactionType : {
  25.             type: String
  26.         },
  27.         email : {
  28.             type: String
  29.         },
  30.         amount: {
  31.             type: String
  32.         },
  33.         txHash:{
  34.             type: String
  35.         }
  36.     })]
  37. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement