sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

Automatically generate bare sequelize models from your database.

Results 118 sequelize-auto issues
Sort by recently updated
recently updated
newest added

I am using sequelize auto command like this sequelize-auto -h -d -u -x [password] -p [port] --dialect [dialect] -c [/path/to/config] -o [/path/to/models] -t [tableName] however sequelize-auto generate model of that...

Like the doc said: https://sequelize.org/docs/v6/other-topics/typescript/ For typescript even those fields are sequelize managed timestamps you will still need the name in the Table.init function ``` createdAt: DataTypes.DATE, updatedAt: DataTypes.DATE ```...

Instead of defining the model like this: ```javascript module.exports = function(sequelize, DataTypes) { return sequelize.define('User', { // Model attributes are defined here firstName: { type: DataTypes.STRING, allowNull: false }, lastName:...

It's been quite a while since an update was released addressing issues

This issue is back #109 Had to install both pg and sequelize globally to get past it. ` "sequelize": "^6.37.1", "sequelize-auto": "^0.6.7", "sequelize-typescript": "^2.1.6", "pg": "^8.11.3", `

When I run this, this is the error I get. I am on ubuntu. my command: `sequelize-auto -o "./models" -d bookcollection -h localhost -u root -p 3306 -x password -e...

Unique index is not being generated properly if it is of type UNIQUE NULLS NOT DISTINCT.

this is my sql structure, defined as longtext: ![image](https://github.com/user-attachments/assets/3877184d-7485-4257-9378-649adf5a8992) config.json: ![Uploading image.png…]() but generate result type is text: ![image](https://github.com/user-attachments/assets/4ba3d558-2bb4-4a62-910f-aa73406e5ae5)