官术网_书友最值得收藏!

Checking database tables

We could use your own Mysql console to see if the tables were created successfully. However I will use another feature with a graphical interface that greatly facilitates the work, as it allows a faster and easier display, and perform operations on the basis of data very quickly.

As I am using Mac OSX I will use an application called Sequel Pro, it's a free and lightweight application to manage MySql databases.

Tip

You can find more information about Sequel Pro at: http://www.sequelpro.com/.

The previous command: sequelize db:migrate created the tables as we can see on the following figures:

  1. This picture shows the Bands table selected on the left side, the right side shows its content with the properties we setup on Band schema:

    Band table

  2. This picture shows the SequelizeMeta table selected on the left side, the right side shows its content with Sequelize files generated on the config/migrations folder:

    Migrations files

  3. This picture shows the user table selected on the left side, the right side shows its content with the properties we setup on the User schema:

    User table

The SquelizeMeta table holds the migration files in the same way that we had on migrations folder.

Now that we have created the necessary files for data insertion in our database, we are ready to move on and create other files for the application.

主站蜘蛛池模板: 江川县| 班戈县| 长宁县| 徐州市| 扶风县| 临高县| 南丹县| 东乌珠穆沁旗| 望谟县| 上思县| 和硕县| 泰来县| 海阳市| 阜新| 通化县| 蓬安县| 启东市| 宁晋县| 三河市| 北票市| 乌审旗| 太原市| 沙湾县| 潢川县| 区。| 富宁县| 社会| 卫辉市| 德令哈市| 汉沽区| 手机| 陇南市| 开鲁县| 西乌| 天等县| 建宁县| 克什克腾旗| 丰镇市| 高陵县| 乡城县| 襄城县|