0% found this document useful (0 votes)
7 views2 pages

MongoDB Frontend Summary Bold

Uploaded by

Jai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

MongoDB Frontend Summary Bold

Uploaded by

Jai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Frontend Developer MongoDB Data Summary

1. Customers Collection
- custid (string, required): unique customer ID
- name (string, required): customer name
- phone_no (string, required): customer phone number
- email (string, required): customer email
- createdDate (ISODate string, required): creation date (e.g. 2025-07-07T[Link].000Z)
Example Insert Query:
[Link]({
custid: "CUST10001",
name: "Alice Johnson",
phone_no: "+919812345678",
email: "[Link]@[Link]",
createdDate: new Date("2025-07-07T[Link]Z")
});

2. Orders Collection
- order_id (string, required): unique order ID
- custid (string, required): existing customer ID
- transaction_value (number >= 0, required): transaction amount
- order_date (ISODate string, required): date of order
- return_label (boolean, required): true if returned
- return_date (ISODate string or null): date of return (if applicable)
- return_category (string or null): category of return (if applicable)
- return_item_id (string or null): returned item ID (if applicable)
- return_reason (string or null): reason for return (if applicable)
Example Insert Query:
[Link]({
order_id: "ORD5001",
custid: "CUST10001",
transaction_value: 799.99,
order_date: new Date("2025-07-07T[Link]Z"),
return_label: true,
return_date: new Date("2025-07-08T[Link]Z"),
return_category: "Damaged",
return_item_id: "ITEM7890",
return_reason: "Item was damaged on arrival"
});
3. finalfraudsummary Collection
- CustID (string, required): customer ID
- FraudLabel (boolean, required): fraud label from ML model
- FraudProbability (double, required): probability of fraud (0-1)
Example Insert Query:
[Link]({
CustID: "CUST10001",
FraudLabel: true,
FraudProbability: 0.87
});

Example Query to Fetch Fraud Customers:


[Link](
{ FraudLabel: true },
{ CustID: 1, FraudLabel: 1, _id: 0 }
);

You might also like