UNPKG

@themost/jspa

Version:
32 lines (31 loc) 689 B
declare interface TableAnnotation { /** * The name of the table. */ name?: string; /** * The schema of the table. */ schema?: string; /** * The catalog of the table. */ catalog?: string; /** * Indexes for the table. */ indexes?: { columnList: string[]; }[]; /** * Unique constraints that are to be placed on the table. */ uniqueConstraints?: { columnNames: string[]; }[]; } declare interface EntityTableAnnotation { Table?: TableAnnotation; } declare function Table(annotation?: TableAnnotation): ClassDecorator; export { EntityTableAnnotation, TableAnnotation, Table };