DEV Community

Cover image for Day-48 Training At Ryaz
mahin651
mahin651

Posted on

Day-48 Training At Ryaz

  • Date:22/03/2022
  • Day:Tuesday

Today, I started at about 10:30 am as I was done with the validation of different attributes in the course module so, now I was to create new file of users that users would buy the cource and host would allow the user to enrol in that course so, firstly I started with creating the users file so, as firstly I was to add new cluster below the node app database as all the data that would be of users would be gathered inside the users cluster so, this way I created it after this I was to declare the schema as per the requirements I created name which would have string as datatype and have min and max length validation another is email that I have done validation of string and the required validation another is user name in this I have only specified the type i.e string after I declared create function who would create the user then I declared the get user which would specify all the users after the update which would help in updating the users details and after this I created the array in that it would be stored that all the cources that the user have bought would be seen with reference to cource.
so, all things are done almost now only thing is left that host would create course.so,this way my day ended up.

Top comments (0)