| Current Path : /proc/thread-self/root/home/deltalab/PMS/sms-connector/models/mongoose/ |
| Current File : //proc/thread-self/root/home/deltalab/PMS/sms-connector/models/mongoose/master.js |
const mongoose = require('mongoose');
const MasterSchema = new mongoose.Schema(
{
title: { type: String, required: true },
description: String,
msrp: Number,
partnerId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Partner',
},
},
{
timestamps: true,
versionKey: false,
},
);
const masterModel = mongoose.model('Master', MasterSchema);
// EXPORTS ===========================================
module.exports = {
MasterSchema,
masterModel,
};