alapa
Version:
A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.
8 lines (7 loc) • 421 B
TypeScript
import { EntityOptions } from "typeorm";
export type TableModelOptions = EntityOptions;
/**
* 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.
*/
export declare function TableModel(name?: string, options?: TableModelOptions): ClassDecorator;