campverse-backend / Models /SearchAnalytics.js
CampVerse CI
Deploy backend from GitHub Actions
c904036
Raw History Blame Contribute Delete
358 Bytes
const mongoose = require('mongoose');
const searchAnalyticsSchema = new mongoose.Schema({
userId: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true },
keywords: [{ type: String }],
timestamp: { type: Date, default: Date.now },
categoryTagged: String,
});
module.exports = mongoose.model('SearchAnalytics', searchAnalyticsSchema);