Setting the Database Schema

In this section we are going to define the structure of our database. The structure of the database is mentioned in the models/model1.js file.

Let us say our database table contains only two data, name of type string and age of type number.

You can see that we have decalred two values name and age, you can add whichever header you want in your database.

In model1.js/line 17, the tableName is the name of the table which will be stored in your database. You can give any relevant name to your table.

Discussion
Amazing! It literally would take just 15 minutes :)

2

Thank you Arpan.

1

20

1