Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const userToUserTransactionSchema = new mongoose.Schema({
- payer: {
- type: mongoose.Schema.Types.ObjectId
- },
- reciever: {
- type: mongoose.Schema.Types.ObjectId
- },
- ammount: {
- type: mongoose.SchemaTypes.Number,
- default: 0
- },
- comment: {
- type: mongoose.SchemaTypes.String
- },
- dateStamp: {
- type: mongoose.SchemaTypes.Date,
- default: Date.now
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement