summaryrefslogtreecommitdiff
path: root/src/models/product/product.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/product/product.model.ts')
-rw-r--r--src/models/product/product.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/product/product.model.ts b/src/models/product/product.model.ts
new file mode 100644
index 0000000..557b5be
--- /dev/null
+++ b/src/models/product/product.model.ts
@@ -0,0 +1,4 @@
+import { Model, model } from 'mongoose';
+import { ProductSchema, productSchema } from './product.schema';
+
+export default model<ProductSchema, Model<ProductSchema>>('Product', productSchema);