Files
limelite_faceanalyzer/backend/models/Report.js
T

34 lines
575 B
JavaScript

const mongoose = require('mongoose');
const reportSchema = new mongoose.Schema(
{
reportId: {
type: String,
required: true,
unique: true,
},
phone: {
type: String,
required: true,
ref: 'User',
},
userName: {
type: String,
required: true,
},
data: {
type: Object, // Store the raw JSON from Perfect Corp
required: true,
},
link: {
type: String,
},
},
{
timestamps: true,
}
);
const Report = mongoose.model('Report', reportSchema);
module.exports = Report;