1 | import { ForeignKeyOptions } from 'sequelize';
|
2 | import { ForeignKeyMeta } from './foreign-key-meta';
|
3 | import { ModelClassGetter } from '../../model/shared/model-class-getter';
|
4 | import { ModelType } from '../../model/model/model';
|
5 | export declare function getForeignKeyOptions<TCreationAttributes, TModelAttributes, TCreationAttributesThrough, TModelAttributesThrough>(relatedClass: ModelType<TCreationAttributes, TModelAttributes>, classWithForeignKey?: ModelType<TCreationAttributesThrough, TModelAttributesThrough>, foreignKey?: string | ForeignKeyOptions): ForeignKeyOptions;
|
6 |
|
7 |
|
8 |
|
9 | export declare function addForeignKey<TCreationAttributes, TModelAttributes>(target: any, relatedClassGetter: ModelClassGetter<TCreationAttributes, TModelAttributes>, foreignKey: string): void;
|
10 |
|
11 |
|
12 |
|
13 | export declare function getForeignKeys<TCreationAttributes, TModelAttributes>(target: any): ForeignKeyMeta<TCreationAttributes, TModelAttributes>[] | undefined;
|