Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"server"
],
"scripts": {
"start": "npm run start --workspace=server",
"client": "npm run dev --workspace=client",
"server": "npm run dev --workspace=server",
"dev": "npm run dev --workspaces",
"build": "npm run build --workspaces",
"test": "npm run test --workspaces",
Expand Down
1 change: 1 addition & 0 deletions server/src/controllers/adminController.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const AuditLog = require('../models/AuditLog');
const RecruitmentNotification = require('../models/RecruitmentNotification');
const Institution = require('../models/Institution');
const Department = require('../models/Department');
const Project = require('../models/Project');
const crypto = require('crypto');
const { sendEmail, sendAdminInvitationEmail, generateAccountInvitationEmailHtml, sendAccountLifecycleEmail } = require('../utils/sendEmail');
const { getAdminInvitationExpiryHours, getAdminInvitationExpiresAt } = require('../config/invitationConfig');
Expand Down
2 changes: 1 addition & 1 deletion server/src/models/CareerInsight.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const mongoose = require('mongoose');

const careerInsightSchema = new mongoose.Schema({
user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true, unique: true, index: true },
user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true, unique: true },
strengths: [{ type: String }],
improvements: [{ type: String }],
recommendedRoles: [{ type: String }],
Expand Down
1 change: 0 additions & 1 deletion server/src/models/CareerRoadmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const careerRoadmapSchema = new mongoose.Schema(
ref: 'User',
required: true,
unique: true,
index: true,
},
maviId: {
type: String,
Expand Down
2 changes: 1 addition & 1 deletion server/src/models/CareerScore.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const mongoose = require('mongoose');

const careerScoreSchema = new mongoose.Schema({
user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true, unique: true, index: true },
user: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true, unique: true },
overall: { type: Number, default: 0 },
development: { type: Number, default: 0 },
problemSolving: { type: Number, default: 0 },
Expand Down
2 changes: 0 additions & 2 deletions server/src/models/Institution.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const institutionSchema = new mongoose.Schema(
sparse: true,
uppercase: true,
trim: true,
index: true,
},
shortName: {
type: String,
Expand Down Expand Up @@ -145,7 +144,6 @@ institutionSchema.pre('validate', function (next) {
next();
});

institutionSchema.index({ tenantId: 1 }, { unique: true });
institutionSchema.index({ name: 1 });
institutionSchema.index({ domain: 1 });
institutionSchema.index({ status: 1 });
Expand Down
1 change: 0 additions & 1 deletion server/src/models/Role.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const roleSchema = new mongoose.Schema(
{ timestamps: true }
);

roleSchema.index({ code: 1 }, { unique: true });
roleSchema.index({ institutionId: 1 });

module.exports = mongoose.model('Role', roleSchema);
1 change: 0 additions & 1 deletion server/src/models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ userSchema.index({ tenantId: 1 });
userSchema.index({ adminId: 1 });
userSchema.index({ adminLoginId: 1 });
userSchema.index({ roles: 1 });
userSchema.index({ maviId: 1 }, { unique: true });
userSchema.index({ prn: 1 });
userSchema.index({ facultyId: 1 });
userSchema.index({ prnVerificationStatus: 1 });
Expand Down
Loading