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

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.

主站蜘蛛池模板: 临湘市| 定日县| 卢湾区| 南康市| 华宁县| 新野县| 高要市| 彰武县| 卫辉市| 融水| 太原市| 明水县| 开封县| 乐都县| 彭水| 南阳市| 茂名市| 洮南市| 仙居县| 都安| 蓝山县| 石狮市| 崇文区| 东乡族自治县| 资溪县| 凌海市| 长治县| 阿尔山市| 睢宁县| 宁德市| 霍邱县| 萨嘎县| 林芝县| 若尔盖县| 乌审旗| 运城市| 梁河县| 霞浦县| 浮山县| 三穗县| 西峡县|