@carbonorm/carbonnode 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -32,12 +32,6 @@ export interface i{{TABLE_NAME_SHORT_PASCAL_CASE}} {
|
|
|
32
32
|
{{/each}}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
interface iDefine{{TABLE_NAME_SHORT_PASCAL_CASE}} {
|
|
36
|
-
{{#each COLUMNS_UPPERCASE}}
|
|
37
|
-
'{{@key}}': string;
|
|
38
|
-
{{/each}}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export type {{TABLE_NAME_SHORT_PASCAL_CASE}}PrimaryKeys = {{#if PRIMARY_SHORT.length}}
|
|
42
36
|
{{#each PRIMARY_SHORT}}
|
|
43
37
|
'{{this}}'{{#unless @last}} |{{/unless}}
|
|
@@ -52,7 +46,7 @@ export const {{TABLE_NAME_SHORT}}:
|
|
|
52
46
|
i{{TABLE_NAME_SHORT_PASCAL_CASE}},
|
|
53
47
|
{{TABLE_NAME_SHORT_PASCAL_CASE}}PrimaryKeys
|
|
54
48
|
>
|
|
55
|
-
&
|
|
49
|
+
& { [K in keyof i{{TABLE_NAME_SHORT_PASCAL_CASE}} as Uppercase<string & K>]: string } = {
|
|
56
50
|
TABLE_NAME: '{{TABLE_NAME}}',
|
|
57
51
|
{{#each COLUMNS_UPPERCASE}}
|
|
58
52
|
{{@key}}: '{{this}}',
|