mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
17 lines
383 B
TypeScript
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,
|
|
}
|
|
}
|