mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-12 16:57:39 -05:00
20 lines
368 B
JavaScript
20 lines
368 B
JavaScript
var mongoose = require('mongoose');
|
|
var {callSchema} = require('./call');
|
|
console.log(callSchema)
|
|
|
|
var groupSchema = mongoose.Schema({
|
|
title: String,
|
|
description: String,
|
|
expireTime: Number,
|
|
startTime: Number,
|
|
endTime: Number,
|
|
shortNames: [String],
|
|
calls: [callSchema]
|
|
},
|
|
{
|
|
timestamps: true
|
|
});
|
|
|
|
|
|
module.exports = mongoose.model('Event', groupSchema);
|