sequelize-auto
sequelize-auto copied to clipboard
Automatically generate bare sequelize models from your database.
Don't ask how, but we have to deal with some legacy MSSQL tables that look like this: ``` create table foo ( foo_id integer not null, name varchar(50) ); create...
Assertion errors need to be passed to the mocha `done` callback, otherwise the test will appear to be green. [These lines](https://github.com/sequelize/sequelize-auto/blob/master/test/build.test.js#L38-L42) should be changed to ``` auto.build().then(tableData => { callback(tableData);...
An error occurs in the api that queries table information during Oracle setup. Doesn't Oracle support it?
In my SQLite project I have a composite primary key made by an integer autoincrement column and some other PFKs. Sequelize-auto generate models setting all PK columns with `autoIncrement: true`....
This link is dead https://sequelize.org/master/class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor
Fix #625 & #596 `createdAt` and `updatedAt` fields are missing when enable option `timestamp: true`
`constraint_schema` ends up being the same schema than the `source_schema`, which is not good, as the `target_schema` of the `target_table` can be different, so actually use the target table schema.
I need this for a project, so I dove into it. Local testing found it does not change anything when disabled. I tested the typescript output, and it still compiles...
const auto = new SequelizeAuto(config.database, config.username, config.password, { host: config.host, dialect: config.dialect, directory: path.join(__dirname, '../', 'models'), // prevents the program from writing to disk tables: ['companies'] }) return auto.run(function (err)...
### Summary * Fixes TypeScript model generation * Related to issue https://github.com/sequelize/sequelize-auto/issues/600 * `declare` all class fields … https://sequelize.org/docs/v6/core-concepts/model-basics/#caveat-with-public-class-fields ### Description All model classes were generated without `declare` keyword which...