pesto-students / team-sumit-servicemate

team-sumit-team-servicemate created by GitHub Classroom
0 stars 1 forks source link

[Node] Add models for [schema_name] #6

Open neerajverma101 opened 1 year ago

neerajverma101 commented 1 year ago

As discussed, add mongo model


login - mobile.no name--ap email id ---ap@gail.com address-no: profile url --- acc creation date.

_____-- plan: id user_id name of Plan array of services [] assigned to . [] discount code. status { customer side,vendor side } amount due. Integer format amount paid. Integer format credits. created date and updated date ___-

serviceProvider:{

   serviceProviderName:"",
   serviceProviderEmalId:"",
   status:"",
   authorrization:{ } ,   //to ask
   serviceProviderType:["freelancer","vendor"],
   employeeData:[{ 
                    employeeName:"",
                    employeeContact:(Number),
                    idProofType:"",
                    idProof    :"",
                    address    :"",
                    photo      :""
                   }],     
   openHours:    [{
                    location: [{ 
                               geoCode:"",
                               address:"",
                               city :"",
                               pinCode:(Number),
                               state:"",
                               country:"",
                              }] ,

                  }],
   portfolio:{
         image   :"",
         location:"",
         verified:(Boolean)
              }        
   createdOn:(Date),
   updateOn:(Date),
   rating  :(Number),
   memberShip:[{ 
                 name:"",
                 expireOn:(Date),
                 activatedOn:(Date),
                 status:"",
              }],
              }

note:::::::for future refrence feelancer(one employee , required) but has to be there for {vendor([] of employee)},


services: [{ name:"", //tanki repair,tap repair catagories:[{ plumbing ,electrician}],
provider :[{serviceProviderId:, price:(Int),}]


neerajverma101 commented 1 year ago

@arpit9839 please update ticket title and details

Cc @sumitbusa