mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #10036 from overleaf/ta-galileo-feedback-collect
Collect Galileo Feedbacks in Mongo GitOrigin-RevId: fe1589ab568ff1bc4de812e205d34e696f3b3a31
This commit is contained in:
21
services/web/app/src/models/Feedback.js
Normal file
21
services/web/app/src/models/Feedback.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const mongoose = require('../infrastructure/Mongoose')
|
||||
const { Schema } = mongoose
|
||||
const { ObjectId } = Schema
|
||||
|
||||
const FeedbackSchema = new Schema({
|
||||
userId: {
|
||||
type: ObjectId,
|
||||
ref: 'User',
|
||||
},
|
||||
source: String,
|
||||
createdAt: {
|
||||
type: Date,
|
||||
default() {
|
||||
return new Date()
|
||||
},
|
||||
},
|
||||
data: {},
|
||||
})
|
||||
|
||||
exports.Feedback = mongoose.model('Feedback', FeedbackSchema)
|
||||
exports.FeedbackSchema = FeedbackSchema
|
||||
Reference in New Issue
Block a user