@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, Oracle, and IBM i. It features solid transaction support, relations, eager and lazy loading, read repli
19 lines (18 loc) • 600 B
TypeScript
import type { Class } from 'type-fest';
import type { Model, ModelStatic } from '../model';
import type { Sequelize } from '../sequelize';
import type { Association } from './base';
export * from './base';
export * from './belongs-to';
export * from './belongs-to-many';
export * from './has-many';
export * from './has-one';
export interface BeforeAssociateEventData {
source: ModelStatic<Model>;
target: ModelStatic<Model>;
sequelize: Sequelize;
type: Class<Association>;
}
export interface AfterAssociateEventData extends BeforeAssociateEventData {
association: Association;
}