20 lines
482 B
JavaScript
20 lines
482 B
JavaScript
const mongoose = require('mongoose');
|
|
const Schema = mongoose.Schema;
|
|
|
|
const WorkTicketVisitScehma = new Schema({
|
|
WorkTicketVisitID: {
|
|
type: Number, // Use the Mongoose Schema Type for Number
|
|
},
|
|
WorkTicketID: {
|
|
type: Number, // Use the Mongoose Schema Type for Number
|
|
|
|
},
|
|
ScheduledDate:{
|
|
type: String,
|
|
},
|
|
RouteName:{
|
|
type: String
|
|
}
|
|
});
|
|
|
|
module.exports = mongoose.model('WorkTicketVisit', WorkTicketVisitScehma); |