Files
tvapp2/server/dist/models/Program.js
2026-06-11 16:40:21 -04:00

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