14 lines
392 B
JavaScript
14 lines
392 B
JavaScript
|
const mongoose = require('mongoose');
|
||
|
|
||
|
const Schema = mongoose.Schema;
|
||
|
|
||
|
const Frame = new Schema({
|
||
|
name: String,
|
||
|
icon: {type: String, default: 'https://image.flaticon.com/icons/png/128/847/847930.png'},
|
||
|
admin: Schema.ObjectId,
|
||
|
members: {type: [Schema.ObjectId], default: []},
|
||
|
tv_clients: {type: [Schema.ObjectId], default: []},
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model('Frame', Frame);
|