Initial commit: added frontend and backend
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user