обновление логики
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const mongoose = require('../../../utils/mongoose');
|
||||
const mongoose = require('mongoose');
|
||||
|
||||
const ratingItemSchema = new mongoose.Schema({
|
||||
criteriaId: {
|
||||
@@ -19,6 +19,11 @@ const ratingItemSchema = new mongoose.Schema({
|
||||
}, { _id: false });
|
||||
|
||||
const ratingSchema = new mongoose.Schema({
|
||||
eventId: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'Event',
|
||||
required: true
|
||||
},
|
||||
expertId: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'Expert',
|
||||
|
||||
Reference in New Issue
Block a user