add pagination and fix bug

This commit is contained in:
Mr Swift
2024-08-07 15:42:53 +03:30
parent 13f991eab2
commit db6c8d6681
13 changed files with 322 additions and 156 deletions
+11 -11
View File
@@ -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
}
})