-
Hi,
I just wasted my whole day to implement `hasMany` relation but no luck still I am struggling.
any help can highly appreciated.
**Scenario**
I have an like table and post table.
so post hav…
-
## What you are doing?
Part of my model attributes include a composite unique key as follows:
```
{ ...
branch_id: {
type: sequelize.INTEGER,
allowNull: false,
unique: 'oneBranchS…
-
I want implement "Temporal database" (full changes history) on application level
I trying to use sequelize global (connection) after-hooks (e.g. afterCreate, afterBulkDestroy and others).
I'm using …
-
Hello, I am trying to create Models with FK. I am having trouble understanding the scope model, when to
set as model: () => Customer, or just () =>. How I have my scope set up now, I get undefined e…
-
I know `created_at` and `updated_at` field will be auto added to every model. Sequelize also provide the `getter` option to format Date, when we retrieve these fields. But there is no global option or…
-
I have a user:
```
@Table
export class User extends Model {
@Column({ primaryKey: true, autoIncrement: true, type: DataType.INTEGER, allowNull: false })
user_id: number;
@ForeignKe…
-
The difficulty I've had in https://github.com/sequelize/sequelize/issues/6023 with confusion over `as` and foreign keys made me start thinking about associations more generally.
I have to say I've al…
-
http://docs.sequelizejs.com/en/latest/api/model/#updatevalues-options-promisearrayaffectedcount-affectedrows
Is it possible to allow the Postgres specific option for Sequelize:
> Update multiple i…
-
I would love to see a `getAndCountAssociations` as there is `findAndCountAll`
http://docs.sequelizejs.com/en/latest/docs/models-usage/#findandcountall-search-for-multiple-elements-in-the-database-ret…
-
Hey,
I'm using the master branch of sequelize. I'm trying to migrate my N:M model to the version 2 as I was receiving the deprecation warning.
```
Vessel.belongsToMany(User, {
through: mod…