mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #10036 from overleaf/ta-galileo-feedback-collect
Collect Galileo Feedbacks in Mongo GitOrigin-RevId: fe1589ab568ff1bc4de812e205d34e696f3b3a31
This commit is contained in:
parent
6f50f6da3f
commit
ed17421b5d
1 changed files with 21 additions and 0 deletions
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
|
Loading…
Reference in a new issue