node-raspberry-server/deviceSchema.js

11 lines
235 B
JavaScript
Raw Normal View History

2019-01-12 13:17:52 +01:00
const mongoose = require("mongoose");
const deviceSchema = new mongoose.Schema(
{
ip: String,
name: String,
2019-01-12 15:03:08 +01:00
lastStatus: String
2019-01-12 13:17:52 +01:00
},
{ timestamps: true }
);
module.exports = mongoose.model("deviceSchema", deviceSchema);