hareshFF
hareshFF
PPrisma
Created by hareshFF on 6/22/2024 in #help-and-questions
how to make a model with any type
can i have this below mongoose model in prisma
import { Schema, model } from 'mongoose';

const CatalogSchema = new Schema<any>({}, { timestamps: true, strict: false });
const Catalog = model<any>('catalogs', CatalogSchema);

export default Catalog;
import { Schema, model } from 'mongoose';

const CatalogSchema = new Schema<any>({}, { timestamps: true, strict: false });
const Catalog = model<any>('catalogs', CatalogSchema);

export default Catalog;
1 replies