Advertisement
xapu

Untitled

Apr 1st, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const userToUserTransactionSchema = new mongoose.Schema({
  2.   payer: {
  3.     type: mongoose.Schema.Types.ObjectId
  4.   },
  5.   reciever: {
  6.     type: mongoose.Schema.Types.ObjectId
  7.   },
  8.   ammount: {
  9.     type: mongoose.SchemaTypes.Number,
  10.     default: 0
  11.   },
  12.   comment: {
  13.     type: mongoose.SchemaTypes.String
  14.   },
  15.   dateStamp: {
  16.     type: mongoose.SchemaTypes.Date,
  17.     default: Date.now
  18.   }
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement