Skip to content

DataModel With Example

Rohith-1217 edited this page Jul 2, 2019 · 16 revisions

authentication-service:

       {
           emailId:"[email protected]"
           password:"abcdef1234"
           role:"reviewer" or "productowner"
       }

reviewer-profile-service:

   reviewer:
	{
                  name:"rohith"
                  reviewer_image:byte[]
                  credit_points:30
	
                   reviewsGiven: [
					   {
	                                        category:"electronic devices"
	                                        subCategory:"mobiles"
	                                        productName:"Samsung Galaxy J7"
	                                        productFamily:"Samsung"
	                                        image:byte[]
	                                        price:60000
	                                        rating:2.5
	                                        specification:"22MP back and 10MP front,8GB RAM and 128GB ROM"
	                                        description:"Snapdragon Processor which keeps mobilephone fast"
	                                        uploaded_on:2018-12-15 20:15:56 
						review_title:"Bad Product"
						review_description:"camera is not good,but processor working is good"
						reviewed_on:2019-06-26 15:40:30
					   },

					   {
	                                        category:"electronic devices"
	                                        subCategory:"mobiles"
	                                        productName:"Redmi Note6"
	                                        productFamily:"Redmi"
	                                        image:byte[]
	                                        price:31000
	                                        rating:3.5
	                                        specification:"15MP back and 8MP front,6GB RAM and 64GB ROM"
	                                        description:"Support pubg game"
	                                        uploaded_on:2018-12-15 20:15:56
						review_title:"Good Product"
						review_description:"camera is good,processor working is good"
						reviewed_on:2019-06-26 15:40:30
					   }
			         ]
	}

productowner-profile-service:

productOwner:
	{
		name:"venky"
	        productowner_img:byte[]

                   productsUploaded [
					   {
	                                        category:"electronic devices"
	                                        subCategory:"mobiles"
	                                        productName:"Samsung Galaxy J7"
	                                        productFamily:"Samsung"
	                                        image:byte[]
	                                        price:60000
	                                        rating:2.5
	                                        specification:"22MP back and 10MP front,8GB RAM and 128GB ROM"
	                                        description:"Snapdragon Processor which keeps mobilephone fast"
	                                        uploaded_on:2018-12-15 20:15:56  

					   },


					   {
	                                        category:"electronic devices"
	                                        subCategory:"mobiles"
	                                        productName:"Redmi Note6"
	                                        productFamily:"Redmi"
	                                        image:byte[]
	                                        price:31000
	                                        rating:3.5
	                                        specification:"15MP back and 8MP front,6GB RAM and 64GB ROM"
	                                        description:"Support pubg game"
	                                        uploaded_on:2018-12-15 20:15:56
					   }


		                   ]
	}

product-search-services:

    {
	category:"electronic devices"
	subCategory:"mobiles"
	productName:"Redmi Note6"
	productFamily:"Redmi"
	image:byte[]
	price:31000
	rating:3.5
	specification:"15MP back and 8MP front,6GB RAM and 64GB ROM"
	description:"Support pubg game"
	uploaded_on:2018-12-15 20:15:56
  
    }

review-services:

     {
         reviewed_by:"[email protected]"
         productName:"Redmi Note6"
         image:byte[]
         price:31000
         review_title:"Good product"
         review_Description:"I bought for my friend,camera is too good"
         reviewed_on:2019-06-10 12:56:10
     }

Recommendation Service:

     {
          productFamily:String
          subCategory:String  
          productName:String
          image:byte[]
          price:BigDecimal
          rating:float
     }

NLP Service:

 {
     productName:"Redmi Note6"
     rating:float
 }
Clone this wiki locally