sequelize-auto
sequelize-auto copied to clipboard
Automatically generate bare sequelize models from your database.
Given a tables with created_at and updated_at defined -- ``` CREATE TABLE scan_forms ( id character varying(255) PRIMARY KEY, customer_id integer, pickup_address_id integer, customer_reference character varying(255), package_count integer, pickup_associate character...
Is it possible to apply paranoid for particular tables only instead of doing it for all the tables?
It would be great if this package can also create JSDocs for the created models.
I'm sorry and thank you for your sharing. This PR is about default value. I have field that uses single quote in default clause, ``` `id` binary(16) NOT NULL DEFAULT...
### Without --noAlias ``` javascript init-models.ts -> Ocorrencias.belongsTo(Condomino, { as: "autor_condomino", foreignKey: "autor"}); ocorrencias.ts -> autor_condomino!: Condomino; ``` Everything works perfectly ### With --noAlias ```javascript init-models.ts -> Ocorrencias.belongsTo(Condomino, { foreignKey:...
POSTGRESQL command failed to generate modals from existing database, then I have created another database in mysql and run MYSQL command which works fine and generated modals from existing mysql...
I've been using SequelizeAuto in a CLI, and I'm getting a connection error printed every once in a while but it is not thrown as an error. ``` try {...
On 03/11/23, a fresh clone of the repo fails to build with this error ```bash $ npm run tsc > [email protected] tsc > tsc src/dialects/dialects.ts:8:14 - error TS2739: Type '{...
* Added null dialects for db2, oracle, and snowflake * Refactored code to obtain dialect through a helper function * Throw an error if the selected dialect is not implemented....
1. Treat single column unique indexes as a primary key if no other primary key was found. 2. Make assertion errors in build.test fail the test if they occur. Fixes...