node-raspberry-server/deviceSchema.js
2019-01-12 15:03:08 +01:00

11 lines
235 B
JavaScript

const mongoose = require("mongoose");
const deviceSchema = new mongoose.Schema(
{
ip: String,
name: String,
lastStatus: String
},
{ timestamps: true }
);
module.exports = mongoose.model("deviceSchema", deviceSchema);