node-raspberry-server/dbScheme.js

11 lines
219 B
JavaScript
Raw Normal View History

2019-01-12 10:40:32 +01:00
const mongoose = require("mongoose");
const dbSchema = new mongoose.Schema(
{
2019-01-12 11:44:49 +01:00
ip: String,
2019-01-12 10:40:32 +01:00
name: String,
status: String
},
{ timestamps: true }
);
module.exports = mongoose.model("dbSchema", dbSchema);