24 lines
468 B
JavaScript
24 lines
468 B
JavaScript
const mongoose = require('mongoose')
|
|
|
|
const RequestSchema = mongoose.Schema({
|
|
userId: {
|
|
type: String,
|
|
ref: 'User'
|
|
},
|
|
shopName: String,
|
|
shopNumber: String,
|
|
shopAddress: String,
|
|
birthDate: String,
|
|
status: {
|
|
type: Number,
|
|
enum: [
|
|
0, // Pending
|
|
1, // Accepted
|
|
2 // Rejected
|
|
],
|
|
default: 0
|
|
}
|
|
})
|
|
|
|
module.exports = mongoose.model('RequestGPS', RequestSchema)
|