123456789101112131415 |
- import { Model, InferSchemaType, Schema } from "mongoose";
- import { AbcSchema } from "../schemas/abc";
- import { NewsSchema } from "../schemas/news";
- import { StationSchema } from "../schemas/station";
- export type Schemas = {
- abc: Schema<AbcSchema>;
- news: Schema<NewsSchema>;
- station: Schema<StationSchema>;
- };
- export type Models = Record<
- keyof Schemas,
- Model<InferSchemaType<Schemas[keyof Schemas]>>
- >;
|