lakutata
Version:
An IoC-based universal application framework.
28 lines (23 loc) • 1.08 kB
TypeScript
import { EntityOptions, ColumnOptions } from './TypeDef.internal.68.js';
/**
* This decorator is used to mark classes that will be an entity (table or document depend on database type).
* Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
*/
declare function Entity(options?: EntityOptions): ClassDecorator;
/**
* This decorator is used to mark classes that will be an entity (table or document depend on database type).
* Database schema will be created for all classes decorated with it, and Repository can be retrieved and used for it.
*/
declare function Entity(name?: string, options?: EntityOptions): ClassDecorator;
/**
* Special type of the table used in the single-table inherited tables.
*/
declare function ChildEntity(discriminatorValue?: any): ClassDecorator;
/**
* Sets for entity to use table inheritance pattern.
*/
declare function TableInheritance(options?: {
pattern?: "STI";
column?: string | ColumnOptions;
}): ClassDecorator;
export { ChildEntity, Entity, TableInheritance };