add pagination and fix bug
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
const mongoose = require('mongoose')
|
||||
|
||||
const RequestSchema = mongoose.Schema({
|
||||
userId:{
|
||||
type:String,
|
||||
ref:'User'
|
||||
userId: {
|
||||
type: String,
|
||||
ref: 'User'
|
||||
},
|
||||
shopName:String,
|
||||
shopNumber:String,
|
||||
shopAddress:String,
|
||||
birthDate:String,
|
||||
status:{
|
||||
type:Number,
|
||||
enum:[
|
||||
shopName: String,
|
||||
shopNumber: String,
|
||||
shopAddress: String,
|
||||
birthDate: String,
|
||||
status: {
|
||||
type: Number,
|
||||
enum: [
|
||||
0, // Pending
|
||||
1, // Accepted
|
||||
2 // Rejected
|
||||
],
|
||||
default:0
|
||||
default: 0
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user