mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-12 04:25:42 -04:00
initial push from external dev branches
This commit is contained in:
11
server/dist/models/Program.js
vendored
Normal file
11
server/dist/models/Program.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user