1 | import { ModelAttributeColumnOptions } from 'sequelize';
|
2 | /**
|
3 | * Returns model attributes from class by restoring this
|
4 | * information from reflect metadata
|
5 | */
|
6 | export declare function getAttributes(target: any): any | undefined;
|
7 | /**
|
8 | * Sets attributes
|
9 | */
|
10 | export declare function setAttributes(target: any, attributes: any): void;
|
11 | /**
|
12 | * Adds model attribute by specified property name and
|
13 | * sequelize attribute options and stores this information
|
14 | * through reflect metadata
|
15 | */
|
16 | export declare function addAttribute(target: any, name: string, options: any): void;
|
17 | /**
|
18 | * Adds attribute options for specific attribute
|
19 | */
|
20 | export declare function addAttributeOptions(target: any, propertyName: string, options: Partial<ModelAttributeColumnOptions>): void;
|