@themost/jspa
Version:
MOST Web Framework Persistence API
32 lines (31 loc) • 689 B
TypeScript
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 };