Files
litlyx/dashboard/server/services/DataService.ts
2024-10-02 17:05:34 +02:00

17 lines
383 B
TypeScript

import { VisitModel } from "@schema/metrics/VisitSchema";
import { EventModel } from "@schema/metrics/EventSchema";
import type { Model } from "mongoose";
export type TModelName = keyof typeof allowedModels;
export const allowedModels: Record<string, { model: Model<any> }> = {
'events': {
model: EventModel,
},
'visits': {
model: VisitModel,
}
}