Sequelize とは 本家サイト から抜粋。 Sequelize is a promise-based ORM for Node.js v4 and up. It supports the dialects PostgreSQL, MySQL, SQLite and MSSQL and features solid transaction support, relations, read replication and more. (訳: Node.js v4 以降で動く Promise ベースの ORM。PostgreSQL, MySQL, SQLite and MSSQL をサポートし、トランザクションやリレーションシップ、複製機能を有する。) 前提 PostgreSQL がインストールされていること 構成 本記事で扱うディレクトリ構成は次のとおり。 app/db や app/mo