dyno-bot/Dyno-datafactory-develop/models/StreamSubscription.js

14 lines
430 B
JavaScript
Raw Permalink Normal View History

2020-09-12 20:08:48 +02:00
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const streamSubscriptionSchema = new Schema({
service: { type: String, required: true, index: true },
handle: { type: String, required: true },
id: { type: String, required: true },
lastSub: { type: Date, required: true }
}, { strict: false });
module.exports = { name: 'StreamSubscription', schema: streamSubscriptionSchema }