2024-07-30 15:01:48 +00:00
|
|
|
const mongoose = require('../db/connect')
|
|
|
|
|
|
|
|
const { Schema } = mongoose
|
|
|
|
|
|
|
|
const apiOperation = new Schema({
|
|
|
|
companyId: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
callerId: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
sessionId: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
operation: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2024-07-30 17:25:33 +00:00
|
|
|
quantityOfAttempts: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2024-07-30 15:01:48 +00:00
|
|
|
|
|
|
|
}, { timestamps: true })
|
|
|
|
|
|
|
|
const API_Operation = mongoose.model('API_Operation', apiOperation)
|
|
|
|
|
|
|
|
module.exports = API_Operation
|