sequelize-typescript
sequelize-typescript copied to clipboard
Decorators and some other features for sequelize
## Versions - sequelize: 6.37.3 - sequelize-typescript: 2.1.6 - typescript: 5.6.0 ## Issue type - [X] bug report - [ ] feature request ## The problem While using Bun with...
I want to use these models on the frontend, and I have taken a look at https://github.com/sequelize/sequelize-typescript/blob/master/src/browser/index.ts, as well as issues like https://github.com/sequelize/sequelize-typescript/issues/675 and https://github.com/sequelize/sequelize-typescript/issues/668. However, I don't fully understand...
# Issue ## Versions - sequelize: 6.37.1 - sequelize-typescript: 2.1.5 - typescript: 5.4.5 ## Issue type - [x] bug report - [ ] feature request ## Actual behavior When using...
I am implementing a social network where a `User` can follow another user. So I have a `Follow` model: ```typescript export default class Follow extends Model { @PrimaryKey @ForeignKey(() =>...
Since as far as I am aware, these are helpful when developing, but not too helpful when installed. (and removed a few off the guidance from https://docs.npmjs.com/cli/v11/using-npm/developers#keeping-files-out-of-your-package) Tested with a...
# Issue Following methods do not accept an object with an association, - Model.create() # Versions - `"sequelize": "^6.37.6"` - `"sequelize-typescript": "^2.1.6"` My tsconfig has no strict mode settings enabled....
For example, I have an `appointments` model and a `patient` model. The `appointment` model has a `patientId`. Is there a way to define the types so that: `appointment.findByPk(appointmentId, {include: [{model:...
I'm using `sequelize-typescript` in my project. To define a model, I create two separate classes: an entity class and a model class: ```typescript // Entity class class User { username:...
When adding a sequelize-typescript's decorator to the model field, which should check that the field is not empty, validation does not work and allows you to create a record without...
In sequelize raw queries, if i want to do a replace in certain columns that no needs quotes, i can't disable this quotes to use in my context Example: ```...