sequelize-auto
sequelize-auto copied to clipboard
Automatically generate bare sequelize models from your database.
Hello guys. It's the first time I use sequelize-auto with Typescript and I facing a bit of a problem. I am using sequelize-auto with the following flags `-l ts -o...
**Issue**: Materialized Views are ignored when using `--views` ~**Solution**: Could either add another option flag `--materializedViews` OR update the existing `showViewsQuery` for `postgres`:~ https://github.com/sequelize/sequelize-auto/blob/8a8eb9d384851e5949ec19079300a2ebc33c2107/src/dialects/postgres.ts#L114 ~Possible inject:~ ```ts return `SELECT table_name,...
### Context Lets say I have two tables `countries` and `users`. In `countries` there are columns like `id`, `name`, `code`. `code` is a unique column and an alpha-2 of the...
Hi, My project uses the `citext` plugin of postgres and I'd love to add support for it. I have it working with my local DB with this simple change: ```bash...
The examples and documentation sort of suggests that it is supported, but none of my attempts to get it working are fruitful. Looking at the code the check to see...
there are ways around it to pulled in views with: `vw_[name].removeAttribute('id')` However, it'd be nice if this could be included somehow in the generated typescript models since it can fully...
When there is a many to many relationships it builds to the following: ``` addAccountRoles!: Sequelize.HasManyAddAssociationsMixin< AccountRole, AccountRoleId >; createAccountRole!: Sequelize.HasManyCreateAssociationMixin< AccountRole >; removeAccountRole!: Sequelize.HasManyRemoveAssociationMixin< AccountRole, AccountRoleId >; ``` The...
```sql CREATE TABLE `asset_list` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `type` enum('video','audio','image') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'video', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4...