11 lines
219 B
JavaScript
11 lines
219 B
JavaScript
const mongoose = require("mongoose");
|
|
const dbSchema = new mongoose.Schema(
|
|
{
|
|
ip: String,
|
|
name: String,
|
|
status: String
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
module.exports = mongoose.model("dbSchema", dbSchema);
|