34 lines
564 B
JavaScript
34 lines
564 B
JavaScript
const mongoose = require('../db/connMongo')
|
|
const { Schema } = mongoose
|
|
|
|
const OmnihitDBConn = mongoose.model(
|
|
'Omnihit_db_conn',
|
|
new Schema(
|
|
{
|
|
client_url: {
|
|
type: String,
|
|
},
|
|
db_conf: {
|
|
DB: {
|
|
type: String,
|
|
},
|
|
DB_HOST: {
|
|
type: String,
|
|
},
|
|
DB_USER: {
|
|
type: String,
|
|
},
|
|
DB_PASS: {
|
|
type: String,
|
|
},
|
|
DB_PORT: {
|
|
type: String,
|
|
},
|
|
},
|
|
},
|
|
{ timestamps: true }
|
|
)
|
|
)
|
|
|
|
module.exports = OmnihitDBConn
|