1 | import { Connection, SelectQueryBuilder } from "..";
|
2 | import { EntitySchemaIndexOptions } from "./EntitySchemaIndexOptions";
|
3 | import { EntitySchemaColumnOptions } from "./EntitySchemaColumnOptions";
|
4 | import { EntitySchemaRelationOptions } from "./EntitySchemaRelationOptions";
|
5 | import { OrderByCondition } from "../find-options/OrderByCondition";
|
6 | import { TableType } from "../metadata/types/TableTypes";
|
7 | import { EntitySchemaUniqueOptions } from "./EntitySchemaUniqueOptions";
|
8 | import { EntitySchemaCheckOptions } from "./EntitySchemaCheckOptions";
|
9 | import { EntitySchemaExclusionOptions } from "./EntitySchemaExclusionOptions";
|
10 |
|
11 |
|
12 |
|
13 | export declare class EntitySchemaOptions<T> {
|
14 | |
15 |
|
16 |
|
17 | extends?: string;
|
18 | |
19 |
|
20 |
|
21 | target?: Function;
|
22 | |
23 |
|
24 |
|
25 | name: string;
|
26 | |
27 |
|
28 |
|
29 | tableName?: string;
|
30 | |
31 |
|
32 |
|
33 | database?: string;
|
34 | |
35 |
|
36 |
|
37 | schema?: string;
|
38 | |
39 |
|
40 |
|
41 | type?: TableType;
|
42 | |
43 |
|
44 |
|
45 | orderBy?: OrderByCondition;
|
46 | |
47 |
|
48 |
|
49 | columns: {
|
50 | [P in keyof T]?: EntitySchemaColumnOptions;
|
51 | };
|
52 | |
53 |
|
54 |
|
55 | relations?: {
|
56 | [P in keyof T]?: EntitySchemaRelationOptions;
|
57 | };
|
58 | |
59 |
|
60 |
|
61 | indices?: EntitySchemaIndexOptions[];
|
62 | |
63 |
|
64 |
|
65 | uniques?: EntitySchemaUniqueOptions[];
|
66 | |
67 |
|
68 |
|
69 | checks?: EntitySchemaCheckOptions[];
|
70 | |
71 |
|
72 |
|
73 | exclusions?: EntitySchemaExclusionOptions[];
|
74 | |
75 |
|
76 |
|
77 |
|
78 |
|
79 | synchronize?: boolean;
|
80 | |
81 |
|
82 |
|
83 | expression?: string | ((connection: Connection) => SelectQueryBuilder<any>);
|
84 | }
|
85 |
|
\ | No newline at end of file |