обновление логики

This commit is contained in:
2025-11-21 16:53:13 +03:00
parent fa860921da
commit 1d4521b803
10 changed files with 111 additions and 51 deletions

View File

@@ -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',