Top "Sequelize-cli" questions

The Sequelize Command Line Interface (CLI) supports for migrations and seeders.

How to Add, Delete new Columns in Sequelize CLI

I've just started using Sequelize and Sequelize CLI Since it's a development time, there are a frequent addition and deletion …

node.js sequelize.js psql sequelize-cli
Get only dataValues from Sequelize ORM

I'm using the sequelize ORM to fetch data from a PSQL DB. However, when I retrieve something, a whole bunch …

node.js sequelize.js sequelize-cli
How to set primary key type to UUID via Sequelize CLI

I'm creating a DB model via Sequelize CLI with this command: sequelize model:create --name User --attributes "firstname:string, lastname:…

sequelize-cli
Set defaultValue to todays date in a Sequelize migration

I'm using Node Express with Sequelize and I want to set the defaultValue for the column "date" in the database …

node.js express sequelize.js sequelize-cli
sequelize select and include another table alias

I'm using sequelize to acess a postgres database and I want to query for a city and for example include …

node.js postgresql sequelize.js sequelize-cli sequelize-typescript
How to add column in Sequelize existing model?

I have added a model and a migration file using this command node_modules/.bin/sequelize model:generate --name User …

node.js database orm sequelize.js sequelize-cli
Sequelize createdAt and updatedAt timestamps are wrong

I created a table with timestamps using sequelize. when I am updating the table, it automatically updates the timestamp (i.…

timezone timestamp sequelize.js momentjs sequelize-cli
TypeError: s.replace is not a function

Env: Postgres: 10.2 Node: 6.11.0 CLI: 2.4.0 ORM: 2.1.3 Model: 'use strict'; module.exports = function(sequelize, DataTypes) { var test = sequelize.define('test', { id: DataTypes.…

postgresql sequelize.js sequelize-cli
Run only the next migration file

Is it possible to run only the next migration file with the sequelize-cli? I have been looking through the docs …

migrate sequelize-cli
How to delete a migration using sequalize-cli

I manually deleted a migration file name 20171125081136-create-task.js. After deleting the migration file, I ran this command db:migrate:…

sequelize.js sequelize-cli