UNPKG

@dreesq/serpent

Version:

An express wrapper for developing fast web applications

25 lines (21 loc) 354 B
const mongoose = require('mongoose'); const Schema = mongoose.Schema; /** * Device model */ module.exports = new Schema({ userId: { type: Schema.ObjectId, ref: 'user' }, token: { type: String }, type: { type: Number, required: true }, description: { type: String } });