Add award

This commit is contained in:
Mr Swift
2024-08-10 13:23:09 +03:30
parent 95f4e04d21
commit db63bfa23f
5 changed files with 124 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
const mongoose = require('mongoose')
const AwardRequestSchema = mongoose.Schema({
awardId:{
type:String,
ref:'Award'
},
userId:{
type:String,
ref:'User'
},
desc:String,
metaData:Object,
status:{
type:Number,
enum:[
0, // Pending
1 // Done
],
default:0
}
})
module.exports = mongoose.model('AwardRequestGPS', AwardRequestSchema)