Merge pull request #10036 from overleaf/ta-galileo-feedback-collect

Collect Galileo Feedbacks in Mongo

GitOrigin-RevId: fe1589ab568ff1bc4de812e205d34e696f3b3a31
This commit is contained in:
Timothée Alby
2022-10-27 08:04:21 +00:00
committed by Copybot
parent 10e68998af
commit 5f9708b5ee
+21
View 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