Project 2
rakesh> db.createCollection('ecom')
{ ok: 1 }
rakesh> use ecom
switched to db ecom
ecom> db.customer.insertOne({name:"",age:"",phone:"",gmail:""})
{
acknowledged: true,
insertedId: ObjectId("64be1097fc3faad87c4ba46b")
}
ecom> db.product.insertOne({prod_name:"",categories:"",brands:"",segments:"",tags:""})
{
acknowledged: true,
insertedId: ObjectId("64be1386fc3faad87c4ba46c")
}
ecom> db.cart.insertOne({customer_id:"",product_id:"",product_name:""})
{
acknowledged: true,
insertedId: ObjectId("64be1630fc3faad87c4ba46d")
}
ecom> db.seller.insertOne({id:"01",name:"xyz",gmail:"[email protected]",phone:"0123564987",productid:"1"})
{
acknowledged: true,
insertedId: ObjectId("64be1aebfc3faad87c4ba46e")
}
ecom>