Initial commit: added frontend and backend

This commit is contained in:
2026-09-22 12:02:38 +05:30
commit cd2770e590
154 changed files with 25892 additions and 0 deletions
+33
View File
@@ -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;
+27
View File
@@ -0,0 +1,27 @@
const mongoose = require('mongoose');
const userSchema = new mongoose.Schema(
{
name: {
type: String,
required: true,
},
phone: {
type: String,
required: true,
unique: true,
},
otp: {
type: String,
},
otpExpiry: {
type: Date,
},
},
{
timestamps: true,
}
);
const User = mongoose.model('User', userSchema);
module.exports = User;