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

We already have declared default values for some columns in db. When creating records, `sequelize.create()` doesn't specify columns if they are not set to a specific value, which is great....

If we want to create a record using an associative query, then we are faced with the problem that the attribute field of the associated model is not described in...

When writing your models to files using the option `directory`, there is no distinction for tables with the same name but different schemas. ### Example: Given the following 2 tables...

All attributes inside additional will work on each model, but in my case, I want to generate models with different additional. For example, some model need enable paranoid,the others does...

DDL `providers integer[] default ARRAY []::integer[] not null,` Import ``` providers: { type: DataTypes.ARRAY(DataTypes.INTEGER), allowNull: false, defaultValue: [ARRAY[]] }, ``` Expected ``` providers: { type: DataTypes.ARRAY(DataTypes.INTEGER), allowNull: false, defaultValue: []...

DDL ` peer_review_config jsonb default '{"frequency": 100}'::jsonb not null,` Import ``` peer_review_config: { type: DataTypes.JSONB, allowNull: false, defaultValue: {\"frequency\": 100} }, ``` Expected ``` peer_review_config: { type: DataTypes.JSONB, allowNull: false,...

Model DDL `flow_interval interval default '00:00:00'::interval,` Imports as ``` flow_interval: { type: DataTypes.INTEGER, allowNull: true, defaultValue: 00:00:00 }, ``` Should be ``` flow_interval: { type: DataTypes.INTEGER, allowNull: true, defaultValue: 0...

Hi there, currently the fields that are nullable are only noted as `?`, which allows them to be omitted or `undefined`. This however doesn't allow them to be set `null`...

fixing broken links (api v6)

set the prefix and suffix of the model name