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

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.

主站蜘蛛池模板: 慈利县| 大田县| 台南市| 德保县| 中宁县| 友谊县| 云梦县| 隆子县| 铁力市| 洛宁县| 龙川县| 綦江县| 无极县| 西贡区| 塘沽区| 尉犁县| 绩溪县| 姜堰市| 沙河市| 德钦县| 黄龙县| 崇州市| 海宁市| 永年县| 湛江市| 东光县| 彝良县| 自治县| 常熟市| 建平县| 云龙县| 育儿| 来凤县| 静乐县| 常德市| 长子县| 惠东县| 明星| 自贡市| 鸡泽县| 将乐县|