mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-12 04:25:42 -04:00
11 lines
482 B
JavaScript
11 lines
482 B
JavaScript
import { Schema, model } from 'mongoose';
|
|
const ProgramSchema = new Schema({
|
|
channelId: { type: String, required: true, index: true },
|
|
start: { type: Number, required: true },
|
|
end: { type: Number, required: true },
|
|
title: { type: String, required: true },
|
|
cat: { type: String, required: true },
|
|
}, { versionKey: false });
|
|
ProgramSchema.index({ channelId: 1, start: 1 });
|
|
export const Program = model('Program', ProgramSchema);
|
|
//# sourceMappingURL=Program.js.map
|