Steve Schmitt
Steve Schmitt
Another idea would be to allow the developer to write a base class that extends the Sequelize `Model` class, and the generator would use that as the base class for...
That is really strange. Thanks for the detailed explanation of the problem. Sequelize-auto gets the foreign key relationships from a query in [mssql.ts](https://github.com/sequelize/sequelize-auto/blob/master/src/dialects/mssql.ts). It looks like this: ```sql SELECT ccu.TABLE_NAME...
Thanks. It seems like in the **working** version, the query has the foreign key **target** information filled in, but in the non-working version, it does not. For example, here's the...
Yes, please! A DB creation skip would definitely help. There may be a bug in sequelize-auto's INFORMATION_SCHEMA query, **or** there may be a bug in MSSQL in the way that...
I think these problems are fixed in recent versions. Can you please try it?
The TypeScript is supposed to reflect the underlying JavaScript mixin functions that are created by Sequelize when we call the `hasOne` and `belongsTo` methods in init-models.ts. Can you tell what...
I generate the models during development and check them in. I use TypeScript, and need to have the models as part of the code base so that everything compiles correctly....
Yes, that makes sense. One doesn't always want these inverse relationships, but having them in the TypeScript should be harmless, I think.
I think this column should have type: DataTypes.VIRTUAL If you manually change it in the generated file, does it behave correctly?
You are right, VIRTUAL is not the right choice. There doesn't seem to be a read-only option, which is what we need.