Skip to content

Commit 8d32647

Browse files
committed
schema created
1 parent 5edd32c commit 8d32647

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

payment gateway/models/model.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const mongoose=require('mongoose');
2+
3+
const donorschema=mongoose.Schema({
4+
name:{
5+
type : String,
6+
required : true
7+
},
8+
email:{
9+
type : String,
10+
required : true
11+
},
12+
amount:{
13+
type :String,
14+
required : true
15+
},
16+
reference:{
17+
type : String,
18+
required : true
19+
}
20+
});
21+
22+
module.exports=mongoose.model('donor',donorschema);

0 commit comments

Comments
 (0)