Alyx

Results 453 comments of Alyx

We're open to reviewing a PR if you want to give it a try :)

You should 100% avoid `sequelize.sync` in production. The new documentation has a big warning about this. It is too dangerous to use if your data cannot be thrown away I...

I'm removing pending-approval because there is indeed a bug where it the function will attempt to create indexes even if alter is not used

Update: After a quick test this would enable having smart typings for the `Model.associations` static property :) https://www.typescriptlang.org/play?#code/MYGwhgzhAEAKBOB7AVgU2AFwLKICapGgG8BfAKDNEhgFUJV4d9CizpoIMwMBLYaaomA9uPRADsIALmgAVAKIAPDPDCYAglCEjeEiAB46DJgQB8AbgrsAZj3icAcmAC2qAIQzO8HuIDml9nBHF3dPFR9-Nmgo+FQwXAkQAE9oAAckNEwID2gACUgsMHEk9QxwgCMAVwxUAOhY+MSU1LBY8QwcgCECCV8IWURSiurasnJKIJhNCG1RCSHvKpriKIB9VYwk1NRoAF5oAHJp2d1xBZ4l1APLcaooPIKikrLFkehUZVRxXCmtYTmzi8Lm9WOwAG5gECVULQRDlTIYADaAF1oAAfaCVb6oWziVC4Oq43DqEAgHIACgAlHtTMQSDcJtQHhBCsVjv9TnSKHcYN0QL1+oMgZd3p9vr8ZhyxIDhstQdAIVCYXCEejMdjcfjCT5cBTqbtaaQGYz7nyBQN2TppVyyJttnIlCo1BhLQCDCYQLT9vLEQBpVApHzQADWAcQ1mgHoEMA9foDqI+NXF0Fdp3OIoA-NB-SkZHiwQxkTJYzmE2KfszWc9ZTss-kWU9U9Kouxi3gCHGkmWkxWzX5Bem3lm+30LX8rRIW9A86gC-AbpYyEZGO2QAA6QRSvRr9IodAYCDmaAAemPlcb44BS-oK+YG8vpwgO9aXwwR9P0BHA4fzeXHvvkoTpIa62PYGBOK475nvmDDXsYq4ASc0pPkE4EhFB0AwfAQA ![image](https://user-images.githubusercontent.com/1280915/145038457-1bc0c018-1c70-494d-b1f8-6778fb7edd2f.png)

This RFC would also allow us to resolve https://github.com/sequelize/sequelize/issues/7621, as pluralization is used in associations method names

Note from https://gist.github.com/ephys/078ee6a2eb31dc209f0de6cea95316e7: This would also simplify adding QueryBuilder support: ```typescript // non qb version user.projects.findAll() // qb version user.projects.select() .orderBy('id', 'ASC') .findAll() ```

Caveat: It's not possible to infer the types of static class fields based on generics. `Model.rawAttributes` has been replaced with `Model.getAttributes()` for this reason. I think we could deprecate and...

> Taking a look on a few things here before "retiring"... Aw that's too bad, it's really nice seeing you again :) Still if you'll always be welcome whenever if...

If it's not too complicated sure we can keep them for a major or two (don't know when this will land)

Here is another thing that can use the naming strategy API: [Index decorators](https://github.com/sequelize/sequelize-typescript#createindexdecorator). The following example is one of the ways you can create a composite index with our port...