@carbonorm/carbonnode 1.2.1 → 1.2.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/dist/api/interfaces/ormInterfaces.d.ts +5 -0
- package/dist/api/rest/C6.d.ts +323 -0
- package/package.json +1 -1
- package/src/api/rest/C6.tsx +0 -1606
package/src/api/rest/C6.tsx
DELETED
|
@@ -1,1606 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
C6RestfulModel,
|
|
3
|
-
C6Constants
|
|
4
|
-
} from "@carbonorm/carbonnode";
|
|
5
|
-
|
|
6
|
-
export type RestTableNames = 'carbon_carbons'
|
|
7
|
-
| 'carbon_comments'
|
|
8
|
-
| 'carbon_documentation'
|
|
9
|
-
| 'carbon_feature_group_references'
|
|
10
|
-
| 'carbon_features'
|
|
11
|
-
| 'carbon_group_references'
|
|
12
|
-
| 'carbon_groups'
|
|
13
|
-
| 'carbon_history_logs'
|
|
14
|
-
| 'carbon_location_references'
|
|
15
|
-
| 'carbon_locations'
|
|
16
|
-
| 'carbon_photos'
|
|
17
|
-
| 'carbon_reports'
|
|
18
|
-
| 'carbon_user_followers'
|
|
19
|
-
| 'carbon_user_groups'
|
|
20
|
-
| 'carbon_user_messages'
|
|
21
|
-
| 'carbon_user_sessions'
|
|
22
|
-
| 'carbon_user_tasks'
|
|
23
|
-
| 'carbon_users'
|
|
24
|
-
| 'carbon_wp_commentmeta'
|
|
25
|
-
| 'carbon_wp_comments'
|
|
26
|
-
| 'carbon_wp_links'
|
|
27
|
-
| 'carbon_wp_options'
|
|
28
|
-
| 'carbon_wp_postmeta'
|
|
29
|
-
| 'carbon_wp_posts'
|
|
30
|
-
| 'carbon_wp_term_relationships'
|
|
31
|
-
| 'carbon_wp_term_taxonomy'
|
|
32
|
-
| 'carbon_wp_termmeta'
|
|
33
|
-
| 'carbon_wp_terms'
|
|
34
|
-
| 'carbon_wp_usermeta'
|
|
35
|
-
| 'carbon_wp_users';
|
|
36
|
-
|
|
37
|
-
export type RestShortTableNames = 'carbons'
|
|
38
|
-
| 'comments'
|
|
39
|
-
| 'documentation'
|
|
40
|
-
| 'feature_group_references'
|
|
41
|
-
| 'features'
|
|
42
|
-
| 'group_references'
|
|
43
|
-
| 'groups'
|
|
44
|
-
| 'history_logs'
|
|
45
|
-
| 'location_references'
|
|
46
|
-
| 'locations'
|
|
47
|
-
| 'photos'
|
|
48
|
-
| 'reports'
|
|
49
|
-
| 'user_followers'
|
|
50
|
-
| 'user_groups'
|
|
51
|
-
| 'user_messages'
|
|
52
|
-
| 'user_sessions'
|
|
53
|
-
| 'user_tasks'
|
|
54
|
-
| 'users'
|
|
55
|
-
| 'wp_commentmeta'
|
|
56
|
-
| 'wp_comments'
|
|
57
|
-
| 'wp_links'
|
|
58
|
-
| 'wp_options'
|
|
59
|
-
| 'wp_postmeta'
|
|
60
|
-
| 'wp_posts'
|
|
61
|
-
| 'wp_term_relationships'
|
|
62
|
-
| 'wp_term_taxonomy'
|
|
63
|
-
| 'wp_termmeta'
|
|
64
|
-
| 'wp_terms'
|
|
65
|
-
| 'wp_usermeta'
|
|
66
|
-
| 'wp_users';
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export interface iCarbons {
|
|
70
|
-
'entity_pk'?: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface iDefineCarbons {
|
|
74
|
-
'ENTITY_PK': string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export const carbons: C6RestfulModel & iDefineCarbons = {
|
|
78
|
-
TABLE_NAME: 'carbon_carbons',
|
|
79
|
-
ENTITY_PK: 'carbon_carbons.entity_pk',
|
|
80
|
-
PRIMARY: [
|
|
81
|
-
'carbon_carbons.entity_pk',
|
|
82
|
-
],
|
|
83
|
-
PRIMARY_SHORT: [
|
|
84
|
-
'entity_pk',
|
|
85
|
-
],
|
|
86
|
-
COLUMNS: {
|
|
87
|
-
'carbon_carbons.entity_pk': 'entity_pk',
|
|
88
|
-
},
|
|
89
|
-
TYPE_VALIDATION: {
|
|
90
|
-
'carbon_carbons.entity_pk': {
|
|
91
|
-
MYSQL_TYPE: 'binary',
|
|
92
|
-
MAX_LENGTH: '16',
|
|
93
|
-
AUTO_INCREMENT: false,
|
|
94
|
-
SKIP_COLUMN_IN_POST: false
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
REGEX_VALIDATION: {
|
|
98
|
-
},
|
|
99
|
-
TABLE_REFERENCES: {
|
|
100
|
-
'entity_fk': [{
|
|
101
|
-
TABLE: 'carbon_carbons',
|
|
102
|
-
COLUMN: 'entity_pk',
|
|
103
|
-
CONSTRAINT: 'entity_entity_entity_pk_fk',
|
|
104
|
-
},],
|
|
105
|
-
},
|
|
106
|
-
TABLE_REFERENCED_BY: {
|
|
107
|
-
'entity_pk': [{
|
|
108
|
-
TABLE: 'carbon_carbons',
|
|
109
|
-
COLUMN: 'entity_fk',
|
|
110
|
-
CONSTRAINT: 'entity_entity_entity_pk_fk',
|
|
111
|
-
},{
|
|
112
|
-
TABLE: 'carbon_comments',
|
|
113
|
-
COLUMN: 'comment_id',
|
|
114
|
-
CONSTRAINT: 'entity_comments_entity_entity_pk_fk',
|
|
115
|
-
},{
|
|
116
|
-
TABLE: 'carbon_comments',
|
|
117
|
-
COLUMN: 'parent_id',
|
|
118
|
-
CONSTRAINT: 'entity_comments_entity_parent_pk_fk',
|
|
119
|
-
},{
|
|
120
|
-
TABLE: 'carbon_comments',
|
|
121
|
-
COLUMN: 'user_id',
|
|
122
|
-
CONSTRAINT: 'entity_comments_entity_user_pk_fk',
|
|
123
|
-
},{
|
|
124
|
-
TABLE: 'carbon_feature_group_references',
|
|
125
|
-
COLUMN: 'group_entity_id',
|
|
126
|
-
CONSTRAINT: 'carbon_feature_group_references_carbons_entity_pk_fk',
|
|
127
|
-
},{
|
|
128
|
-
TABLE: 'carbon_feature_group_references',
|
|
129
|
-
COLUMN: 'feature_entity_id',
|
|
130
|
-
CONSTRAINT: 'carbon_feature_references_carbons_entity_pk_fk',
|
|
131
|
-
},{
|
|
132
|
-
TABLE: 'carbon_features',
|
|
133
|
-
COLUMN: 'feature_entity_id',
|
|
134
|
-
CONSTRAINT: 'carbon_features_carbons_entity_pk_fk',
|
|
135
|
-
},{
|
|
136
|
-
TABLE: 'carbon_group_references',
|
|
137
|
-
COLUMN: 'group_id',
|
|
138
|
-
CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk',
|
|
139
|
-
},{
|
|
140
|
-
TABLE: 'carbon_group_references',
|
|
141
|
-
COLUMN: 'allowed_to_grant_group_id',
|
|
142
|
-
CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk_2',
|
|
143
|
-
},{
|
|
144
|
-
TABLE: 'carbon_groups',
|
|
145
|
-
COLUMN: 'entity_id',
|
|
146
|
-
CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk',
|
|
147
|
-
},{
|
|
148
|
-
TABLE: 'carbon_groups',
|
|
149
|
-
COLUMN: 'created_by',
|
|
150
|
-
CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk_2',
|
|
151
|
-
},{
|
|
152
|
-
TABLE: 'carbon_location_references',
|
|
153
|
-
COLUMN: 'entity_reference',
|
|
154
|
-
CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk',
|
|
155
|
-
},{
|
|
156
|
-
TABLE: 'carbon_location_references',
|
|
157
|
-
COLUMN: 'location_reference',
|
|
158
|
-
CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk_2',
|
|
159
|
-
},{
|
|
160
|
-
TABLE: 'carbon_locations',
|
|
161
|
-
COLUMN: 'entity_id',
|
|
162
|
-
CONSTRAINT: 'entity_location_entity_entity_pk_fk',
|
|
163
|
-
},{
|
|
164
|
-
TABLE: 'carbon_photos',
|
|
165
|
-
COLUMN: 'photo_id',
|
|
166
|
-
CONSTRAINT: 'entity_photos_entity_entity_pk_fk',
|
|
167
|
-
},{
|
|
168
|
-
TABLE: 'carbon_photos',
|
|
169
|
-
COLUMN: 'parent_id',
|
|
170
|
-
CONSTRAINT: 'photos_entity_entity_pk_fk',
|
|
171
|
-
},{
|
|
172
|
-
TABLE: 'carbon_photos',
|
|
173
|
-
COLUMN: 'user_id',
|
|
174
|
-
CONSTRAINT: 'photos_entity_user_pk_fk',
|
|
175
|
-
},{
|
|
176
|
-
TABLE: 'carbon_user_followers',
|
|
177
|
-
COLUMN: 'follower_table_id',
|
|
178
|
-
CONSTRAINT: 'carbon_user_followers_carbons_entity_pk_fk',
|
|
179
|
-
},{
|
|
180
|
-
TABLE: 'carbon_user_followers',
|
|
181
|
-
COLUMN: 'follows_user_id',
|
|
182
|
-
CONSTRAINT: 'followers_entity_entity_follows_pk_fk',
|
|
183
|
-
},{
|
|
184
|
-
TABLE: 'carbon_user_followers',
|
|
185
|
-
COLUMN: 'user_id',
|
|
186
|
-
CONSTRAINT: 'followers_entity_followers_pk_fk',
|
|
187
|
-
},{
|
|
188
|
-
TABLE: 'carbon_user_groups',
|
|
189
|
-
COLUMN: 'group_id',
|
|
190
|
-
CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk',
|
|
191
|
-
},{
|
|
192
|
-
TABLE: 'carbon_user_groups',
|
|
193
|
-
COLUMN: 'user_id',
|
|
194
|
-
CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk_2',
|
|
195
|
-
},{
|
|
196
|
-
TABLE: 'carbon_user_messages',
|
|
197
|
-
COLUMN: 'from_user_id',
|
|
198
|
-
CONSTRAINT: 'carbon_user_messages_carbon_entity_pk_fk',
|
|
199
|
-
},{
|
|
200
|
-
TABLE: 'carbon_user_messages',
|
|
201
|
-
COLUMN: 'message_id',
|
|
202
|
-
CONSTRAINT: 'messages_entity_entity_pk_fk',
|
|
203
|
-
},{
|
|
204
|
-
TABLE: 'carbon_user_messages',
|
|
205
|
-
COLUMN: 'to_user_id',
|
|
206
|
-
CONSTRAINT: 'messages_entity_user_from_pk_fk',
|
|
207
|
-
},{
|
|
208
|
-
TABLE: 'carbon_user_tasks',
|
|
209
|
-
COLUMN: 'task_id',
|
|
210
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk',
|
|
211
|
-
},{
|
|
212
|
-
TABLE: 'carbon_user_tasks',
|
|
213
|
-
COLUMN: 'user_id',
|
|
214
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_2',
|
|
215
|
-
},{
|
|
216
|
-
TABLE: 'carbon_user_tasks',
|
|
217
|
-
COLUMN: 'from_id',
|
|
218
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_3',
|
|
219
|
-
},{
|
|
220
|
-
TABLE: 'carbon_users',
|
|
221
|
-
COLUMN: 'user_id',
|
|
222
|
-
CONSTRAINT: 'user_entity_entity_pk_fk',
|
|
223
|
-
},],
|
|
224
|
-
},
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface iComments {
|
|
228
|
-
'parent_id'?: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
interface iDefineComments {
|
|
232
|
-
'PARENT_ID': string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export const comments: C6RestfulModel & iDefineComments = {
|
|
236
|
-
TABLE_NAME: 'carbon_comments',
|
|
237
|
-
PARENT_ID: 'carbon_comments.parent_id',
|
|
238
|
-
PRIMARY: [
|
|
239
|
-
'carbon_comments.comment_id',
|
|
240
|
-
],
|
|
241
|
-
PRIMARY_SHORT: [
|
|
242
|
-
'comment_id',
|
|
243
|
-
],
|
|
244
|
-
COLUMNS: {
|
|
245
|
-
'carbon_comments.parent_id': 'parent_id',
|
|
246
|
-
},
|
|
247
|
-
TYPE_VALIDATION: {
|
|
248
|
-
'carbon_comments.parent_id': {
|
|
249
|
-
MYSQL_TYPE: 'binary',
|
|
250
|
-
MAX_LENGTH: '16',
|
|
251
|
-
AUTO_INCREMENT: false,
|
|
252
|
-
SKIP_COLUMN_IN_POST: false
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
REGEX_VALIDATION: {
|
|
256
|
-
},
|
|
257
|
-
TABLE_REFERENCES: {
|
|
258
|
-
'comment_id': [{
|
|
259
|
-
TABLE: 'carbon_carbons',
|
|
260
|
-
COLUMN: 'entity_pk',
|
|
261
|
-
CONSTRAINT: 'entity_comments_entity_entity_pk_fk',
|
|
262
|
-
},],'parent_id': [{
|
|
263
|
-
TABLE: 'carbon_carbons',
|
|
264
|
-
COLUMN: 'entity_pk',
|
|
265
|
-
CONSTRAINT: 'entity_comments_entity_parent_pk_fk',
|
|
266
|
-
},],'user_id': [{
|
|
267
|
-
TABLE: 'carbon_carbons',
|
|
268
|
-
COLUMN: 'entity_pk',
|
|
269
|
-
CONSTRAINT: 'entity_comments_entity_user_pk_fk',
|
|
270
|
-
},],
|
|
271
|
-
},
|
|
272
|
-
TABLE_REFERENCED_BY: {
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export interface iDocumentation {
|
|
278
|
-
'documentation_uri'?: string;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
interface iDefineDocumentation {
|
|
282
|
-
'DOCUMENTATION_URI': string;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export const documentation: C6RestfulModel & iDefineDocumentation = {
|
|
286
|
-
TABLE_NAME: 'carbon_documentation',
|
|
287
|
-
DOCUMENTATION_URI: 'carbon_documentation.documentation_uri',
|
|
288
|
-
PRIMARY: [
|
|
289
|
-
],
|
|
290
|
-
PRIMARY_SHORT: [
|
|
291
|
-
],
|
|
292
|
-
COLUMNS: {
|
|
293
|
-
'carbon_documentation.documentation_uri': 'documentation_uri',
|
|
294
|
-
},
|
|
295
|
-
TYPE_VALIDATION: {
|
|
296
|
-
'carbon_documentation.documentation_uri': {
|
|
297
|
-
MYSQL_TYPE: 'varchar',
|
|
298
|
-
MAX_LENGTH: '255',
|
|
299
|
-
AUTO_INCREMENT: false,
|
|
300
|
-
SKIP_COLUMN_IN_POST: false
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
REGEX_VALIDATION: {
|
|
304
|
-
},
|
|
305
|
-
TABLE_REFERENCES: {
|
|
306
|
-
|
|
307
|
-
},
|
|
308
|
-
TABLE_REFERENCED_BY: {
|
|
309
|
-
|
|
310
|
-
},
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export interface iFeature_Group_References {
|
|
314
|
-
'feature_entity_id'?: string;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
interface iDefineFeature_Group_References {
|
|
318
|
-
'FEATURE_ENTITY_ID': string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export const feature_group_references: C6RestfulModel & iDefineFeature_Group_References = {
|
|
322
|
-
TABLE_NAME: 'carbon_feature_group_references',
|
|
323
|
-
FEATURE_ENTITY_ID: 'carbon_feature_group_references.feature_entity_id',
|
|
324
|
-
PRIMARY: [
|
|
325
|
-
],
|
|
326
|
-
PRIMARY_SHORT: [
|
|
327
|
-
],
|
|
328
|
-
COLUMNS: {
|
|
329
|
-
'carbon_feature_group_references.feature_entity_id': 'feature_entity_id',
|
|
330
|
-
},
|
|
331
|
-
TYPE_VALIDATION: {
|
|
332
|
-
'carbon_feature_group_references.feature_entity_id': {
|
|
333
|
-
MYSQL_TYPE: 'binary',
|
|
334
|
-
MAX_LENGTH: '16',
|
|
335
|
-
AUTO_INCREMENT: false,
|
|
336
|
-
SKIP_COLUMN_IN_POST: true
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
REGEX_VALIDATION: {
|
|
340
|
-
},
|
|
341
|
-
TABLE_REFERENCES: {
|
|
342
|
-
'group_entity_id': [{
|
|
343
|
-
TABLE: 'carbon_carbons',
|
|
344
|
-
COLUMN: 'entity_pk',
|
|
345
|
-
CONSTRAINT: 'carbon_feature_group_references_carbons_entity_pk_fk',
|
|
346
|
-
},],'feature_entity_id': [{
|
|
347
|
-
TABLE: 'carbon_carbons',
|
|
348
|
-
COLUMN: 'entity_pk',
|
|
349
|
-
CONSTRAINT: 'carbon_feature_references_carbons_entity_pk_fk',
|
|
350
|
-
},],
|
|
351
|
-
},
|
|
352
|
-
TABLE_REFERENCED_BY: {
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
export interface iFeatures {
|
|
358
|
-
'feature_entity_id'?: string;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
interface iDefineFeatures {
|
|
362
|
-
'FEATURE_ENTITY_ID': string;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export const features: C6RestfulModel & iDefineFeatures = {
|
|
366
|
-
TABLE_NAME: 'carbon_features',
|
|
367
|
-
FEATURE_ENTITY_ID: 'carbon_features.feature_entity_id',
|
|
368
|
-
PRIMARY: [
|
|
369
|
-
'carbon_features.feature_entity_id',
|
|
370
|
-
],
|
|
371
|
-
PRIMARY_SHORT: [
|
|
372
|
-
'feature_entity_id',
|
|
373
|
-
],
|
|
374
|
-
COLUMNS: {
|
|
375
|
-
'carbon_features.feature_entity_id': 'feature_entity_id',
|
|
376
|
-
},
|
|
377
|
-
TYPE_VALIDATION: {
|
|
378
|
-
'carbon_features.feature_entity_id': {
|
|
379
|
-
MYSQL_TYPE: 'binary',
|
|
380
|
-
MAX_LENGTH: '16',
|
|
381
|
-
AUTO_INCREMENT: false,
|
|
382
|
-
SKIP_COLUMN_IN_POST: false
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
REGEX_VALIDATION: {
|
|
386
|
-
},
|
|
387
|
-
TABLE_REFERENCES: {
|
|
388
|
-
'feature_entity_id': [{
|
|
389
|
-
TABLE: 'carbon_carbons',
|
|
390
|
-
COLUMN: 'entity_pk',
|
|
391
|
-
CONSTRAINT: 'carbon_features_carbons_entity_pk_fk',
|
|
392
|
-
},],
|
|
393
|
-
},
|
|
394
|
-
TABLE_REFERENCED_BY: {
|
|
395
|
-
|
|
396
|
-
},
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export interface iGroup_References {
|
|
400
|
-
'group_id'?: string;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
interface iDefineGroup_References {
|
|
404
|
-
'GROUP_ID': string;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
export const group_references: C6RestfulModel & iDefineGroup_References = {
|
|
408
|
-
TABLE_NAME: 'carbon_group_references',
|
|
409
|
-
GROUP_ID: 'carbon_group_references.group_id',
|
|
410
|
-
PRIMARY: [
|
|
411
|
-
],
|
|
412
|
-
PRIMARY_SHORT: [
|
|
413
|
-
],
|
|
414
|
-
COLUMNS: {
|
|
415
|
-
'carbon_group_references.group_id': 'group_id',
|
|
416
|
-
},
|
|
417
|
-
TYPE_VALIDATION: {
|
|
418
|
-
'carbon_group_references.group_id': {
|
|
419
|
-
MYSQL_TYPE: 'binary',
|
|
420
|
-
MAX_LENGTH: '16',
|
|
421
|
-
AUTO_INCREMENT: false,
|
|
422
|
-
SKIP_COLUMN_IN_POST: true
|
|
423
|
-
},
|
|
424
|
-
},
|
|
425
|
-
REGEX_VALIDATION: {
|
|
426
|
-
},
|
|
427
|
-
TABLE_REFERENCES: {
|
|
428
|
-
'group_id': [{
|
|
429
|
-
TABLE: 'carbon_carbons',
|
|
430
|
-
COLUMN: 'entity_pk',
|
|
431
|
-
CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk',
|
|
432
|
-
},],'allowed_to_grant_group_id': [{
|
|
433
|
-
TABLE: 'carbon_carbons',
|
|
434
|
-
COLUMN: 'entity_pk',
|
|
435
|
-
CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk_2',
|
|
436
|
-
},],
|
|
437
|
-
},
|
|
438
|
-
TABLE_REFERENCED_BY: {
|
|
439
|
-
|
|
440
|
-
},
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export interface iGroups {
|
|
444
|
-
'group_name'?: string;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
interface iDefineGroups {
|
|
448
|
-
'GROUP_NAME': string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export const groups: C6RestfulModel & iDefineGroups = {
|
|
452
|
-
TABLE_NAME: 'carbon_groups',
|
|
453
|
-
GROUP_NAME: 'carbon_groups.group_name',
|
|
454
|
-
PRIMARY: [
|
|
455
|
-
'carbon_groups.entity_id',
|
|
456
|
-
],
|
|
457
|
-
PRIMARY_SHORT: [
|
|
458
|
-
'entity_id',
|
|
459
|
-
],
|
|
460
|
-
COLUMNS: {
|
|
461
|
-
'carbon_groups.group_name': 'group_name',
|
|
462
|
-
},
|
|
463
|
-
TYPE_VALIDATION: {
|
|
464
|
-
'carbon_groups.group_name': {
|
|
465
|
-
MYSQL_TYPE: 'varchar',
|
|
466
|
-
MAX_LENGTH: '20',
|
|
467
|
-
AUTO_INCREMENT: false,
|
|
468
|
-
SKIP_COLUMN_IN_POST: false
|
|
469
|
-
},
|
|
470
|
-
},
|
|
471
|
-
REGEX_VALIDATION: {
|
|
472
|
-
},
|
|
473
|
-
TABLE_REFERENCES: {
|
|
474
|
-
'entity_id': [{
|
|
475
|
-
TABLE: 'carbon_carbons',
|
|
476
|
-
COLUMN: 'entity_pk',
|
|
477
|
-
CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk',
|
|
478
|
-
},],'created_by': [{
|
|
479
|
-
TABLE: 'carbon_carbons',
|
|
480
|
-
COLUMN: 'entity_pk',
|
|
481
|
-
CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk_2',
|
|
482
|
-
},],
|
|
483
|
-
},
|
|
484
|
-
TABLE_REFERENCED_BY: {
|
|
485
|
-
|
|
486
|
-
},
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export interface iHistory_Logs {
|
|
490
|
-
'history_uuid'?: string;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
interface iDefineHistory_Logs {
|
|
494
|
-
'HISTORY_UUID': string;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
export const history_logs: C6RestfulModel & iDefineHistory_Logs = {
|
|
498
|
-
TABLE_NAME: 'carbon_history_logs',
|
|
499
|
-
HISTORY_UUID: 'carbon_history_logs.history_uuid',
|
|
500
|
-
PRIMARY: [
|
|
501
|
-
],
|
|
502
|
-
PRIMARY_SHORT: [
|
|
503
|
-
],
|
|
504
|
-
COLUMNS: {
|
|
505
|
-
'carbon_history_logs.history_uuid': 'history_uuid',
|
|
506
|
-
},
|
|
507
|
-
TYPE_VALIDATION: {
|
|
508
|
-
'carbon_history_logs.history_uuid': {
|
|
509
|
-
MYSQL_TYPE: 'binary',
|
|
510
|
-
MAX_LENGTH: '16',
|
|
511
|
-
AUTO_INCREMENT: false,
|
|
512
|
-
SKIP_COLUMN_IN_POST: false
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
REGEX_VALIDATION: {
|
|
516
|
-
},
|
|
517
|
-
TABLE_REFERENCES: {
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
TABLE_REFERENCED_BY: {
|
|
521
|
-
|
|
522
|
-
},
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export interface iLocation_References {
|
|
526
|
-
'entity_reference'?: string;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
interface iDefineLocation_References {
|
|
530
|
-
'ENTITY_REFERENCE': string;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
export const location_references: C6RestfulModel & iDefineLocation_References = {
|
|
534
|
-
TABLE_NAME: 'carbon_location_references',
|
|
535
|
-
ENTITY_REFERENCE: 'carbon_location_references.entity_reference',
|
|
536
|
-
PRIMARY: [
|
|
537
|
-
],
|
|
538
|
-
PRIMARY_SHORT: [
|
|
539
|
-
],
|
|
540
|
-
COLUMNS: {
|
|
541
|
-
'carbon_location_references.entity_reference': 'entity_reference',
|
|
542
|
-
},
|
|
543
|
-
TYPE_VALIDATION: {
|
|
544
|
-
'carbon_location_references.entity_reference': {
|
|
545
|
-
MYSQL_TYPE: 'binary',
|
|
546
|
-
MAX_LENGTH: '16',
|
|
547
|
-
AUTO_INCREMENT: false,
|
|
548
|
-
SKIP_COLUMN_IN_POST: false
|
|
549
|
-
},
|
|
550
|
-
},
|
|
551
|
-
REGEX_VALIDATION: {
|
|
552
|
-
},
|
|
553
|
-
TABLE_REFERENCES: {
|
|
554
|
-
'entity_reference': [{
|
|
555
|
-
TABLE: 'carbon_carbons',
|
|
556
|
-
COLUMN: 'entity_pk',
|
|
557
|
-
CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk',
|
|
558
|
-
},],'location_reference': [{
|
|
559
|
-
TABLE: 'carbon_carbons',
|
|
560
|
-
COLUMN: 'entity_pk',
|
|
561
|
-
CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk_2',
|
|
562
|
-
},],
|
|
563
|
-
},
|
|
564
|
-
TABLE_REFERENCED_BY: {
|
|
565
|
-
|
|
566
|
-
},
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface iLocations {
|
|
570
|
-
'entity_id'?: string;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
interface iDefineLocations {
|
|
574
|
-
'ENTITY_ID': string;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
export const locations: C6RestfulModel & iDefineLocations = {
|
|
578
|
-
TABLE_NAME: 'carbon_locations',
|
|
579
|
-
ENTITY_ID: 'carbon_locations.entity_id',
|
|
580
|
-
PRIMARY: [
|
|
581
|
-
'carbon_locations.entity_id',
|
|
582
|
-
],
|
|
583
|
-
PRIMARY_SHORT: [
|
|
584
|
-
'entity_id',
|
|
585
|
-
],
|
|
586
|
-
COLUMNS: {
|
|
587
|
-
'carbon_locations.entity_id': 'entity_id',
|
|
588
|
-
},
|
|
589
|
-
TYPE_VALIDATION: {
|
|
590
|
-
'carbon_locations.entity_id': {
|
|
591
|
-
MYSQL_TYPE: 'binary',
|
|
592
|
-
MAX_LENGTH: '16',
|
|
593
|
-
AUTO_INCREMENT: false,
|
|
594
|
-
SKIP_COLUMN_IN_POST: false
|
|
595
|
-
},
|
|
596
|
-
},
|
|
597
|
-
REGEX_VALIDATION: {
|
|
598
|
-
},
|
|
599
|
-
TABLE_REFERENCES: {
|
|
600
|
-
'entity_id': [{
|
|
601
|
-
TABLE: 'carbon_carbons',
|
|
602
|
-
COLUMN: 'entity_pk',
|
|
603
|
-
CONSTRAINT: 'entity_location_entity_entity_pk_fk',
|
|
604
|
-
},],
|
|
605
|
-
},
|
|
606
|
-
TABLE_REFERENCED_BY: {
|
|
607
|
-
|
|
608
|
-
},
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
export interface iPhotos {
|
|
612
|
-
'parent_id'?: string;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
interface iDefinePhotos {
|
|
616
|
-
'PARENT_ID': string;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export const photos: C6RestfulModel & iDefinePhotos = {
|
|
620
|
-
TABLE_NAME: 'carbon_photos',
|
|
621
|
-
PARENT_ID: 'carbon_photos.parent_id',
|
|
622
|
-
PRIMARY: [
|
|
623
|
-
'carbon_photos.parent_id',
|
|
624
|
-
],
|
|
625
|
-
PRIMARY_SHORT: [
|
|
626
|
-
'parent_id',
|
|
627
|
-
],
|
|
628
|
-
COLUMNS: {
|
|
629
|
-
'carbon_photos.parent_id': 'parent_id',
|
|
630
|
-
},
|
|
631
|
-
TYPE_VALIDATION: {
|
|
632
|
-
'carbon_photos.parent_id': {
|
|
633
|
-
MYSQL_TYPE: 'binary',
|
|
634
|
-
MAX_LENGTH: '16',
|
|
635
|
-
AUTO_INCREMENT: false,
|
|
636
|
-
SKIP_COLUMN_IN_POST: false
|
|
637
|
-
},
|
|
638
|
-
},
|
|
639
|
-
REGEX_VALIDATION: {
|
|
640
|
-
},
|
|
641
|
-
TABLE_REFERENCES: {
|
|
642
|
-
'photo_id': [{
|
|
643
|
-
TABLE: 'carbon_carbons',
|
|
644
|
-
COLUMN: 'entity_pk',
|
|
645
|
-
CONSTRAINT: 'entity_photos_entity_entity_pk_fk',
|
|
646
|
-
},],'parent_id': [{
|
|
647
|
-
TABLE: 'carbon_carbons',
|
|
648
|
-
COLUMN: 'entity_pk',
|
|
649
|
-
CONSTRAINT: 'photos_entity_entity_pk_fk',
|
|
650
|
-
},],'user_id': [{
|
|
651
|
-
TABLE: 'carbon_carbons',
|
|
652
|
-
COLUMN: 'entity_pk',
|
|
653
|
-
CONSTRAINT: 'photos_entity_user_pk_fk',
|
|
654
|
-
},],
|
|
655
|
-
},
|
|
656
|
-
TABLE_REFERENCED_BY: {
|
|
657
|
-
|
|
658
|
-
},
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
export interface iReports {
|
|
662
|
-
'log_level'?: string;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
interface iDefineReports {
|
|
666
|
-
'LOG_LEVEL': string;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
export const reports: C6RestfulModel & iDefineReports = {
|
|
670
|
-
TABLE_NAME: 'carbon_reports',
|
|
671
|
-
LOG_LEVEL: 'carbon_reports.log_level',
|
|
672
|
-
PRIMARY: [
|
|
673
|
-
],
|
|
674
|
-
PRIMARY_SHORT: [
|
|
675
|
-
],
|
|
676
|
-
COLUMNS: {
|
|
677
|
-
'carbon_reports.log_level': 'log_level',
|
|
678
|
-
},
|
|
679
|
-
TYPE_VALIDATION: {
|
|
680
|
-
'carbon_reports.log_level': {
|
|
681
|
-
MYSQL_TYPE: 'varchar',
|
|
682
|
-
MAX_LENGTH: '20',
|
|
683
|
-
AUTO_INCREMENT: false,
|
|
684
|
-
SKIP_COLUMN_IN_POST: true
|
|
685
|
-
},
|
|
686
|
-
},
|
|
687
|
-
REGEX_VALIDATION: {
|
|
688
|
-
},
|
|
689
|
-
TABLE_REFERENCES: {
|
|
690
|
-
|
|
691
|
-
},
|
|
692
|
-
TABLE_REFERENCED_BY: {
|
|
693
|
-
|
|
694
|
-
},
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
export interface iUser_Followers {
|
|
698
|
-
'follower_table_id'?: string;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
interface iDefineUser_Followers {
|
|
702
|
-
'FOLLOWER_TABLE_ID': string;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export const user_followers: C6RestfulModel & iDefineUser_Followers = {
|
|
706
|
-
TABLE_NAME: 'carbon_user_followers',
|
|
707
|
-
FOLLOWER_TABLE_ID: 'carbon_user_followers.follower_table_id',
|
|
708
|
-
PRIMARY: [
|
|
709
|
-
'carbon_user_followers.follower_table_id',
|
|
710
|
-
],
|
|
711
|
-
PRIMARY_SHORT: [
|
|
712
|
-
'follower_table_id',
|
|
713
|
-
],
|
|
714
|
-
COLUMNS: {
|
|
715
|
-
'carbon_user_followers.follower_table_id': 'follower_table_id',
|
|
716
|
-
},
|
|
717
|
-
TYPE_VALIDATION: {
|
|
718
|
-
'carbon_user_followers.follower_table_id': {
|
|
719
|
-
MYSQL_TYPE: 'binary',
|
|
720
|
-
MAX_LENGTH: '16',
|
|
721
|
-
AUTO_INCREMENT: false,
|
|
722
|
-
SKIP_COLUMN_IN_POST: false
|
|
723
|
-
},
|
|
724
|
-
},
|
|
725
|
-
REGEX_VALIDATION: {
|
|
726
|
-
},
|
|
727
|
-
TABLE_REFERENCES: {
|
|
728
|
-
'follower_table_id': [{
|
|
729
|
-
TABLE: 'carbon_carbons',
|
|
730
|
-
COLUMN: 'entity_pk',
|
|
731
|
-
CONSTRAINT: 'carbon_user_followers_carbons_entity_pk_fk',
|
|
732
|
-
},],'follows_user_id': [{
|
|
733
|
-
TABLE: 'carbon_carbons',
|
|
734
|
-
COLUMN: 'entity_pk',
|
|
735
|
-
CONSTRAINT: 'followers_entity_entity_follows_pk_fk',
|
|
736
|
-
},],'user_id': [{
|
|
737
|
-
TABLE: 'carbon_carbons',
|
|
738
|
-
COLUMN: 'entity_pk',
|
|
739
|
-
CONSTRAINT: 'followers_entity_followers_pk_fk',
|
|
740
|
-
},],
|
|
741
|
-
},
|
|
742
|
-
TABLE_REFERENCED_BY: {
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
export interface iUser_Groups {
|
|
748
|
-
'group_id'?: string;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
interface iDefineUser_Groups {
|
|
752
|
-
'GROUP_ID': string;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
export const user_groups: C6RestfulModel & iDefineUser_Groups = {
|
|
756
|
-
TABLE_NAME: 'carbon_user_groups',
|
|
757
|
-
GROUP_ID: 'carbon_user_groups.group_id',
|
|
758
|
-
PRIMARY: [
|
|
759
|
-
],
|
|
760
|
-
PRIMARY_SHORT: [
|
|
761
|
-
],
|
|
762
|
-
COLUMNS: {
|
|
763
|
-
'carbon_user_groups.group_id': 'group_id',
|
|
764
|
-
},
|
|
765
|
-
TYPE_VALIDATION: {
|
|
766
|
-
'carbon_user_groups.group_id': {
|
|
767
|
-
MYSQL_TYPE: 'binary',
|
|
768
|
-
MAX_LENGTH: '16',
|
|
769
|
-
AUTO_INCREMENT: false,
|
|
770
|
-
SKIP_COLUMN_IN_POST: true
|
|
771
|
-
},
|
|
772
|
-
},
|
|
773
|
-
REGEX_VALIDATION: {
|
|
774
|
-
},
|
|
775
|
-
TABLE_REFERENCES: {
|
|
776
|
-
'group_id': [{
|
|
777
|
-
TABLE: 'carbon_carbons',
|
|
778
|
-
COLUMN: 'entity_pk',
|
|
779
|
-
CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk',
|
|
780
|
-
},],'user_id': [{
|
|
781
|
-
TABLE: 'carbon_carbons',
|
|
782
|
-
COLUMN: 'entity_pk',
|
|
783
|
-
CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk_2',
|
|
784
|
-
},],
|
|
785
|
-
},
|
|
786
|
-
TABLE_REFERENCED_BY: {
|
|
787
|
-
|
|
788
|
-
},
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
export interface iUser_Messages {
|
|
792
|
-
'message_id'?: string;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
interface iDefineUser_Messages {
|
|
796
|
-
'MESSAGE_ID': string;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
export const user_messages: C6RestfulModel & iDefineUser_Messages = {
|
|
800
|
-
TABLE_NAME: 'carbon_user_messages',
|
|
801
|
-
MESSAGE_ID: 'carbon_user_messages.message_id',
|
|
802
|
-
PRIMARY: [
|
|
803
|
-
'carbon_user_messages.message_id',
|
|
804
|
-
],
|
|
805
|
-
PRIMARY_SHORT: [
|
|
806
|
-
'message_id',
|
|
807
|
-
],
|
|
808
|
-
COLUMNS: {
|
|
809
|
-
'carbon_user_messages.message_id': 'message_id',
|
|
810
|
-
},
|
|
811
|
-
TYPE_VALIDATION: {
|
|
812
|
-
'carbon_user_messages.message_id': {
|
|
813
|
-
MYSQL_TYPE: 'binary',
|
|
814
|
-
MAX_LENGTH: '16',
|
|
815
|
-
AUTO_INCREMENT: false,
|
|
816
|
-
SKIP_COLUMN_IN_POST: false
|
|
817
|
-
},
|
|
818
|
-
},
|
|
819
|
-
REGEX_VALIDATION: {
|
|
820
|
-
},
|
|
821
|
-
TABLE_REFERENCES: {
|
|
822
|
-
'from_user_id': [{
|
|
823
|
-
TABLE: 'carbon_carbons',
|
|
824
|
-
COLUMN: 'entity_pk',
|
|
825
|
-
CONSTRAINT: 'carbon_user_messages_carbon_entity_pk_fk',
|
|
826
|
-
},],'message_id': [{
|
|
827
|
-
TABLE: 'carbon_carbons',
|
|
828
|
-
COLUMN: 'entity_pk',
|
|
829
|
-
CONSTRAINT: 'messages_entity_entity_pk_fk',
|
|
830
|
-
},],'to_user_id': [{
|
|
831
|
-
TABLE: 'carbon_carbons',
|
|
832
|
-
COLUMN: 'entity_pk',
|
|
833
|
-
CONSTRAINT: 'messages_entity_user_from_pk_fk',
|
|
834
|
-
},],
|
|
835
|
-
},
|
|
836
|
-
TABLE_REFERENCED_BY: {
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
export interface iUser_Sessions {
|
|
842
|
-
'user_id'?: string;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
interface iDefineUser_Sessions {
|
|
846
|
-
'USER_ID': string;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export const user_sessions: C6RestfulModel & iDefineUser_Sessions = {
|
|
850
|
-
TABLE_NAME: 'carbon_user_sessions',
|
|
851
|
-
USER_ID: 'carbon_user_sessions.user_id',
|
|
852
|
-
PRIMARY: [
|
|
853
|
-
'carbon_user_sessions.session_id',
|
|
854
|
-
],
|
|
855
|
-
PRIMARY_SHORT: [
|
|
856
|
-
'session_id',
|
|
857
|
-
],
|
|
858
|
-
COLUMNS: {
|
|
859
|
-
'carbon_user_sessions.user_id': 'user_id',
|
|
860
|
-
},
|
|
861
|
-
TYPE_VALIDATION: {
|
|
862
|
-
'carbon_user_sessions.user_id': {
|
|
863
|
-
MYSQL_TYPE: 'binary',
|
|
864
|
-
MAX_LENGTH: '16',
|
|
865
|
-
AUTO_INCREMENT: false,
|
|
866
|
-
SKIP_COLUMN_IN_POST: false
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
REGEX_VALIDATION: {
|
|
870
|
-
},
|
|
871
|
-
TABLE_REFERENCES: {
|
|
872
|
-
|
|
873
|
-
},
|
|
874
|
-
TABLE_REFERENCED_BY: {
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
export interface iUser_Tasks {
|
|
880
|
-
'task_id'?: string;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
interface iDefineUser_Tasks {
|
|
884
|
-
'TASK_ID': string;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
export const user_tasks: C6RestfulModel & iDefineUser_Tasks = {
|
|
888
|
-
TABLE_NAME: 'carbon_user_tasks',
|
|
889
|
-
TASK_ID: 'carbon_user_tasks.task_id',
|
|
890
|
-
PRIMARY: [
|
|
891
|
-
'carbon_user_tasks.task_id',
|
|
892
|
-
],
|
|
893
|
-
PRIMARY_SHORT: [
|
|
894
|
-
'task_id',
|
|
895
|
-
],
|
|
896
|
-
COLUMNS: {
|
|
897
|
-
'carbon_user_tasks.task_id': 'task_id',
|
|
898
|
-
},
|
|
899
|
-
TYPE_VALIDATION: {
|
|
900
|
-
'carbon_user_tasks.task_id': {
|
|
901
|
-
MYSQL_TYPE: 'binary',
|
|
902
|
-
MAX_LENGTH: '16',
|
|
903
|
-
AUTO_INCREMENT: false,
|
|
904
|
-
SKIP_COLUMN_IN_POST: false
|
|
905
|
-
},
|
|
906
|
-
},
|
|
907
|
-
REGEX_VALIDATION: {
|
|
908
|
-
},
|
|
909
|
-
TABLE_REFERENCES: {
|
|
910
|
-
'task_id': [{
|
|
911
|
-
TABLE: 'carbon_carbons',
|
|
912
|
-
COLUMN: 'entity_pk',
|
|
913
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk',
|
|
914
|
-
},],'user_id': [{
|
|
915
|
-
TABLE: 'carbon_carbons',
|
|
916
|
-
COLUMN: 'entity_pk',
|
|
917
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_2',
|
|
918
|
-
},],'from_id': [{
|
|
919
|
-
TABLE: 'carbon_carbons',
|
|
920
|
-
COLUMN: 'entity_pk',
|
|
921
|
-
CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_3',
|
|
922
|
-
},],
|
|
923
|
-
},
|
|
924
|
-
TABLE_REFERENCED_BY: {
|
|
925
|
-
|
|
926
|
-
},
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
export interface iUsers {
|
|
930
|
-
'user_username'?: string;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
interface iDefineUsers {
|
|
934
|
-
'USER_USERNAME': string;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
export const users: C6RestfulModel & iDefineUsers = {
|
|
938
|
-
TABLE_NAME: 'carbon_users',
|
|
939
|
-
USER_USERNAME: 'carbon_users.user_username',
|
|
940
|
-
PRIMARY: [
|
|
941
|
-
'carbon_users.user_id',
|
|
942
|
-
],
|
|
943
|
-
PRIMARY_SHORT: [
|
|
944
|
-
'user_id',
|
|
945
|
-
],
|
|
946
|
-
COLUMNS: {
|
|
947
|
-
'carbon_users.user_username': 'user_username',
|
|
948
|
-
},
|
|
949
|
-
TYPE_VALIDATION: {
|
|
950
|
-
'carbon_users.user_username': {
|
|
951
|
-
MYSQL_TYPE: 'varchar',
|
|
952
|
-
MAX_LENGTH: '100',
|
|
953
|
-
AUTO_INCREMENT: false,
|
|
954
|
-
SKIP_COLUMN_IN_POST: false
|
|
955
|
-
},
|
|
956
|
-
},
|
|
957
|
-
REGEX_VALIDATION: {
|
|
958
|
-
},
|
|
959
|
-
TABLE_REFERENCES: {
|
|
960
|
-
'user_id': [{
|
|
961
|
-
TABLE: 'carbon_carbons',
|
|
962
|
-
COLUMN: 'entity_pk',
|
|
963
|
-
CONSTRAINT: 'user_entity_entity_pk_fk',
|
|
964
|
-
},],
|
|
965
|
-
},
|
|
966
|
-
TABLE_REFERENCED_BY: {
|
|
967
|
-
|
|
968
|
-
},
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
export interface iWp_Commentmeta {
|
|
972
|
-
'meta_id'?: number;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
interface iDefineWp_Commentmeta {
|
|
976
|
-
'META_ID': string;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
export const wp_commentmeta: C6RestfulModel & iDefineWp_Commentmeta = {
|
|
980
|
-
TABLE_NAME: 'carbon_wp_commentmeta',
|
|
981
|
-
META_ID: 'carbon_wp_commentmeta.meta_id',
|
|
982
|
-
PRIMARY: [
|
|
983
|
-
'carbon_wp_commentmeta.meta_id',
|
|
984
|
-
],
|
|
985
|
-
PRIMARY_SHORT: [
|
|
986
|
-
'meta_id',
|
|
987
|
-
],
|
|
988
|
-
COLUMNS: {
|
|
989
|
-
'carbon_wp_commentmeta.meta_id': 'meta_id',
|
|
990
|
-
},
|
|
991
|
-
TYPE_VALIDATION: {
|
|
992
|
-
'carbon_wp_commentmeta.meta_id': {
|
|
993
|
-
MYSQL_TYPE: 'bigint',
|
|
994
|
-
MAX_LENGTH: '',
|
|
995
|
-
AUTO_INCREMENT: false,
|
|
996
|
-
SKIP_COLUMN_IN_POST: true
|
|
997
|
-
},
|
|
998
|
-
},
|
|
999
|
-
REGEX_VALIDATION: {
|
|
1000
|
-
},
|
|
1001
|
-
TABLE_REFERENCES: {
|
|
1002
|
-
|
|
1003
|
-
},
|
|
1004
|
-
TABLE_REFERENCED_BY: {
|
|
1005
|
-
|
|
1006
|
-
},
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
export interface iWp_Comments {
|
|
1010
|
-
'comment_ID'?: number;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
interface iDefineWp_Comments {
|
|
1014
|
-
'COMMENT_ID': string;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
export const wp_comments: C6RestfulModel & iDefineWp_Comments = {
|
|
1018
|
-
TABLE_NAME: 'carbon_wp_comments',
|
|
1019
|
-
COMMENT_ID: 'carbon_wp_comments.comment_ID',
|
|
1020
|
-
PRIMARY: [
|
|
1021
|
-
'carbon_wp_comments.comment_ID',
|
|
1022
|
-
],
|
|
1023
|
-
PRIMARY_SHORT: [
|
|
1024
|
-
'comment_ID',
|
|
1025
|
-
],
|
|
1026
|
-
COLUMNS: {
|
|
1027
|
-
'carbon_wp_comments.comment_ID': 'comment_ID',
|
|
1028
|
-
},
|
|
1029
|
-
TYPE_VALIDATION: {
|
|
1030
|
-
'carbon_wp_comments.comment_ID': {
|
|
1031
|
-
MYSQL_TYPE: 'bigint',
|
|
1032
|
-
MAX_LENGTH: '',
|
|
1033
|
-
AUTO_INCREMENT: false,
|
|
1034
|
-
SKIP_COLUMN_IN_POST: true
|
|
1035
|
-
},
|
|
1036
|
-
},
|
|
1037
|
-
REGEX_VALIDATION: {
|
|
1038
|
-
},
|
|
1039
|
-
TABLE_REFERENCES: {
|
|
1040
|
-
|
|
1041
|
-
},
|
|
1042
|
-
TABLE_REFERENCED_BY: {
|
|
1043
|
-
|
|
1044
|
-
},
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
export interface iWp_Links {
|
|
1048
|
-
'link_id'?: number;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
interface iDefineWp_Links {
|
|
1052
|
-
'LINK_ID': string;
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
export const wp_links: C6RestfulModel & iDefineWp_Links = {
|
|
1056
|
-
TABLE_NAME: 'carbon_wp_links',
|
|
1057
|
-
LINK_ID: 'carbon_wp_links.link_id',
|
|
1058
|
-
PRIMARY: [
|
|
1059
|
-
'carbon_wp_links.link_id',
|
|
1060
|
-
],
|
|
1061
|
-
PRIMARY_SHORT: [
|
|
1062
|
-
'link_id',
|
|
1063
|
-
],
|
|
1064
|
-
COLUMNS: {
|
|
1065
|
-
'carbon_wp_links.link_id': 'link_id',
|
|
1066
|
-
},
|
|
1067
|
-
TYPE_VALIDATION: {
|
|
1068
|
-
'carbon_wp_links.link_id': {
|
|
1069
|
-
MYSQL_TYPE: 'bigint',
|
|
1070
|
-
MAX_LENGTH: '',
|
|
1071
|
-
AUTO_INCREMENT: false,
|
|
1072
|
-
SKIP_COLUMN_IN_POST: true
|
|
1073
|
-
},
|
|
1074
|
-
},
|
|
1075
|
-
REGEX_VALIDATION: {
|
|
1076
|
-
},
|
|
1077
|
-
TABLE_REFERENCES: {
|
|
1078
|
-
|
|
1079
|
-
},
|
|
1080
|
-
TABLE_REFERENCED_BY: {
|
|
1081
|
-
|
|
1082
|
-
},
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export interface iWp_Options {
|
|
1086
|
-
'option_id'?: number;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
interface iDefineWp_Options {
|
|
1090
|
-
'OPTION_ID': string;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
export const wp_options: C6RestfulModel & iDefineWp_Options = {
|
|
1094
|
-
TABLE_NAME: 'carbon_wp_options',
|
|
1095
|
-
OPTION_ID: 'carbon_wp_options.option_id',
|
|
1096
|
-
PRIMARY: [
|
|
1097
|
-
'carbon_wp_options.option_id',
|
|
1098
|
-
],
|
|
1099
|
-
PRIMARY_SHORT: [
|
|
1100
|
-
'option_id',
|
|
1101
|
-
],
|
|
1102
|
-
COLUMNS: {
|
|
1103
|
-
'carbon_wp_options.option_id': 'option_id',
|
|
1104
|
-
},
|
|
1105
|
-
TYPE_VALIDATION: {
|
|
1106
|
-
'carbon_wp_options.option_id': {
|
|
1107
|
-
MYSQL_TYPE: 'bigint',
|
|
1108
|
-
MAX_LENGTH: '',
|
|
1109
|
-
AUTO_INCREMENT: false,
|
|
1110
|
-
SKIP_COLUMN_IN_POST: true
|
|
1111
|
-
},
|
|
1112
|
-
},
|
|
1113
|
-
REGEX_VALIDATION: {
|
|
1114
|
-
},
|
|
1115
|
-
TABLE_REFERENCES: {
|
|
1116
|
-
|
|
1117
|
-
},
|
|
1118
|
-
TABLE_REFERENCED_BY: {
|
|
1119
|
-
|
|
1120
|
-
},
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
export interface iWp_Postmeta {
|
|
1124
|
-
'meta_id'?: number;
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
interface iDefineWp_Postmeta {
|
|
1128
|
-
'META_ID': string;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
export const wp_postmeta: C6RestfulModel & iDefineWp_Postmeta = {
|
|
1132
|
-
TABLE_NAME: 'carbon_wp_postmeta',
|
|
1133
|
-
META_ID: 'carbon_wp_postmeta.meta_id',
|
|
1134
|
-
PRIMARY: [
|
|
1135
|
-
'carbon_wp_postmeta.meta_id',
|
|
1136
|
-
],
|
|
1137
|
-
PRIMARY_SHORT: [
|
|
1138
|
-
'meta_id',
|
|
1139
|
-
],
|
|
1140
|
-
COLUMNS: {
|
|
1141
|
-
'carbon_wp_postmeta.meta_id': 'meta_id',
|
|
1142
|
-
},
|
|
1143
|
-
TYPE_VALIDATION: {
|
|
1144
|
-
'carbon_wp_postmeta.meta_id': {
|
|
1145
|
-
MYSQL_TYPE: 'bigint',
|
|
1146
|
-
MAX_LENGTH: '',
|
|
1147
|
-
AUTO_INCREMENT: false,
|
|
1148
|
-
SKIP_COLUMN_IN_POST: true
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
REGEX_VALIDATION: {
|
|
1152
|
-
},
|
|
1153
|
-
TABLE_REFERENCES: {
|
|
1154
|
-
|
|
1155
|
-
},
|
|
1156
|
-
TABLE_REFERENCED_BY: {
|
|
1157
|
-
|
|
1158
|
-
},
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
export interface iWp_Posts {
|
|
1162
|
-
'ID'?: number;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
interface iDefineWp_Posts {
|
|
1166
|
-
'ID': string;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
export const wp_posts: C6RestfulModel & iDefineWp_Posts = {
|
|
1170
|
-
TABLE_NAME: 'carbon_wp_posts',
|
|
1171
|
-
ID: 'carbon_wp_posts.ID',
|
|
1172
|
-
PRIMARY: [
|
|
1173
|
-
'carbon_wp_posts.ID',
|
|
1174
|
-
],
|
|
1175
|
-
PRIMARY_SHORT: [
|
|
1176
|
-
'ID',
|
|
1177
|
-
],
|
|
1178
|
-
COLUMNS: {
|
|
1179
|
-
'carbon_wp_posts.ID': 'ID',
|
|
1180
|
-
},
|
|
1181
|
-
TYPE_VALIDATION: {
|
|
1182
|
-
'carbon_wp_posts.ID': {
|
|
1183
|
-
MYSQL_TYPE: 'bigint',
|
|
1184
|
-
MAX_LENGTH: '',
|
|
1185
|
-
AUTO_INCREMENT: false,
|
|
1186
|
-
SKIP_COLUMN_IN_POST: true
|
|
1187
|
-
},
|
|
1188
|
-
},
|
|
1189
|
-
REGEX_VALIDATION: {
|
|
1190
|
-
},
|
|
1191
|
-
TABLE_REFERENCES: {
|
|
1192
|
-
|
|
1193
|
-
},
|
|
1194
|
-
TABLE_REFERENCED_BY: {
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
export interface iWp_Term_Relationships {
|
|
1200
|
-
'object_id'?: number;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
interface iDefineWp_Term_Relationships {
|
|
1204
|
-
'OBJECT_ID': string;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
export const wp_term_relationships: C6RestfulModel & iDefineWp_Term_Relationships = {
|
|
1208
|
-
TABLE_NAME: 'carbon_wp_term_relationships',
|
|
1209
|
-
OBJECT_ID: 'carbon_wp_term_relationships.object_id',
|
|
1210
|
-
PRIMARY: [
|
|
1211
|
-
'carbon_wp_term_relationships.object_id',
|
|
1212
|
-
'carbon_wp_term_relationships.term_taxonomy_id',
|
|
1213
|
-
],
|
|
1214
|
-
PRIMARY_SHORT: [
|
|
1215
|
-
'object_id',
|
|
1216
|
-
'term_taxonomy_id',
|
|
1217
|
-
],
|
|
1218
|
-
COLUMNS: {
|
|
1219
|
-
'carbon_wp_term_relationships.object_id': 'object_id',
|
|
1220
|
-
},
|
|
1221
|
-
TYPE_VALIDATION: {
|
|
1222
|
-
'carbon_wp_term_relationships.object_id': {
|
|
1223
|
-
MYSQL_TYPE: 'bigint',
|
|
1224
|
-
MAX_LENGTH: '',
|
|
1225
|
-
AUTO_INCREMENT: false,
|
|
1226
|
-
SKIP_COLUMN_IN_POST: true
|
|
1227
|
-
},
|
|
1228
|
-
},
|
|
1229
|
-
REGEX_VALIDATION: {
|
|
1230
|
-
},
|
|
1231
|
-
TABLE_REFERENCES: {
|
|
1232
|
-
|
|
1233
|
-
},
|
|
1234
|
-
TABLE_REFERENCED_BY: {
|
|
1235
|
-
|
|
1236
|
-
},
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
export interface iWp_Term_Taxonomy {
|
|
1240
|
-
'term_taxonomy_id'?: number;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
interface iDefineWp_Term_Taxonomy {
|
|
1244
|
-
'TERM_TAXONOMY_ID': string;
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
export const wp_term_taxonomy: C6RestfulModel & iDefineWp_Term_Taxonomy = {
|
|
1248
|
-
TABLE_NAME: 'carbon_wp_term_taxonomy',
|
|
1249
|
-
TERM_TAXONOMY_ID: 'carbon_wp_term_taxonomy.term_taxonomy_id',
|
|
1250
|
-
PRIMARY: [
|
|
1251
|
-
'carbon_wp_term_taxonomy.term_taxonomy_id',
|
|
1252
|
-
],
|
|
1253
|
-
PRIMARY_SHORT: [
|
|
1254
|
-
'term_taxonomy_id',
|
|
1255
|
-
],
|
|
1256
|
-
COLUMNS: {
|
|
1257
|
-
'carbon_wp_term_taxonomy.term_taxonomy_id': 'term_taxonomy_id',
|
|
1258
|
-
},
|
|
1259
|
-
TYPE_VALIDATION: {
|
|
1260
|
-
'carbon_wp_term_taxonomy.term_taxonomy_id': {
|
|
1261
|
-
MYSQL_TYPE: 'bigint',
|
|
1262
|
-
MAX_LENGTH: '',
|
|
1263
|
-
AUTO_INCREMENT: false,
|
|
1264
|
-
SKIP_COLUMN_IN_POST: true
|
|
1265
|
-
},
|
|
1266
|
-
},
|
|
1267
|
-
REGEX_VALIDATION: {
|
|
1268
|
-
},
|
|
1269
|
-
TABLE_REFERENCES: {
|
|
1270
|
-
|
|
1271
|
-
},
|
|
1272
|
-
TABLE_REFERENCED_BY: {
|
|
1273
|
-
|
|
1274
|
-
},
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
export interface iWp_Termmeta {
|
|
1278
|
-
'meta_id'?: number;
|
|
1279
|
-
}
|
|
1280
|
-
|
|
1281
|
-
interface iDefineWp_Termmeta {
|
|
1282
|
-
'META_ID': string;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
export const wp_termmeta: C6RestfulModel & iDefineWp_Termmeta = {
|
|
1286
|
-
TABLE_NAME: 'carbon_wp_termmeta',
|
|
1287
|
-
META_ID: 'carbon_wp_termmeta.meta_id',
|
|
1288
|
-
PRIMARY: [
|
|
1289
|
-
'carbon_wp_termmeta.meta_id',
|
|
1290
|
-
],
|
|
1291
|
-
PRIMARY_SHORT: [
|
|
1292
|
-
'meta_id',
|
|
1293
|
-
],
|
|
1294
|
-
COLUMNS: {
|
|
1295
|
-
'carbon_wp_termmeta.meta_id': 'meta_id',
|
|
1296
|
-
},
|
|
1297
|
-
TYPE_VALIDATION: {
|
|
1298
|
-
'carbon_wp_termmeta.meta_id': {
|
|
1299
|
-
MYSQL_TYPE: 'bigint',
|
|
1300
|
-
MAX_LENGTH: '',
|
|
1301
|
-
AUTO_INCREMENT: false,
|
|
1302
|
-
SKIP_COLUMN_IN_POST: true
|
|
1303
|
-
},
|
|
1304
|
-
},
|
|
1305
|
-
REGEX_VALIDATION: {
|
|
1306
|
-
},
|
|
1307
|
-
TABLE_REFERENCES: {
|
|
1308
|
-
|
|
1309
|
-
},
|
|
1310
|
-
TABLE_REFERENCED_BY: {
|
|
1311
|
-
|
|
1312
|
-
},
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
export interface iWp_Terms {
|
|
1316
|
-
'term_id'?: number;
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
interface iDefineWp_Terms {
|
|
1320
|
-
'TERM_ID': string;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
export const wp_terms: C6RestfulModel & iDefineWp_Terms = {
|
|
1324
|
-
TABLE_NAME: 'carbon_wp_terms',
|
|
1325
|
-
TERM_ID: 'carbon_wp_terms.term_id',
|
|
1326
|
-
PRIMARY: [
|
|
1327
|
-
'carbon_wp_terms.term_id',
|
|
1328
|
-
],
|
|
1329
|
-
PRIMARY_SHORT: [
|
|
1330
|
-
'term_id',
|
|
1331
|
-
],
|
|
1332
|
-
COLUMNS: {
|
|
1333
|
-
'carbon_wp_terms.term_id': 'term_id',
|
|
1334
|
-
},
|
|
1335
|
-
TYPE_VALIDATION: {
|
|
1336
|
-
'carbon_wp_terms.term_id': {
|
|
1337
|
-
MYSQL_TYPE: 'bigint',
|
|
1338
|
-
MAX_LENGTH: '',
|
|
1339
|
-
AUTO_INCREMENT: false,
|
|
1340
|
-
SKIP_COLUMN_IN_POST: true
|
|
1341
|
-
},
|
|
1342
|
-
},
|
|
1343
|
-
REGEX_VALIDATION: {
|
|
1344
|
-
},
|
|
1345
|
-
TABLE_REFERENCES: {
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
TABLE_REFERENCED_BY: {
|
|
1349
|
-
|
|
1350
|
-
},
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
export interface iWp_Usermeta {
|
|
1354
|
-
'umeta_id'?: number;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
interface iDefineWp_Usermeta {
|
|
1358
|
-
'UMETA_ID': string;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
export const wp_usermeta: C6RestfulModel & iDefineWp_Usermeta = {
|
|
1362
|
-
TABLE_NAME: 'carbon_wp_usermeta',
|
|
1363
|
-
UMETA_ID: 'carbon_wp_usermeta.umeta_id',
|
|
1364
|
-
PRIMARY: [
|
|
1365
|
-
'carbon_wp_usermeta.umeta_id',
|
|
1366
|
-
],
|
|
1367
|
-
PRIMARY_SHORT: [
|
|
1368
|
-
'umeta_id',
|
|
1369
|
-
],
|
|
1370
|
-
COLUMNS: {
|
|
1371
|
-
'carbon_wp_usermeta.umeta_id': 'umeta_id',
|
|
1372
|
-
},
|
|
1373
|
-
TYPE_VALIDATION: {
|
|
1374
|
-
'carbon_wp_usermeta.umeta_id': {
|
|
1375
|
-
MYSQL_TYPE: 'bigint',
|
|
1376
|
-
MAX_LENGTH: '',
|
|
1377
|
-
AUTO_INCREMENT: false,
|
|
1378
|
-
SKIP_COLUMN_IN_POST: true
|
|
1379
|
-
},
|
|
1380
|
-
},
|
|
1381
|
-
REGEX_VALIDATION: {
|
|
1382
|
-
},
|
|
1383
|
-
TABLE_REFERENCES: {
|
|
1384
|
-
|
|
1385
|
-
},
|
|
1386
|
-
TABLE_REFERENCED_BY: {
|
|
1387
|
-
|
|
1388
|
-
},
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
export interface iWp_Users {
|
|
1392
|
-
'ID'?: number;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
interface iDefineWp_Users {
|
|
1396
|
-
'ID': string;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
export const wp_users: C6RestfulModel & iDefineWp_Users = {
|
|
1400
|
-
TABLE_NAME: 'carbon_wp_users',
|
|
1401
|
-
ID: 'carbon_wp_users.ID',
|
|
1402
|
-
PRIMARY: [
|
|
1403
|
-
'carbon_wp_users.ID',
|
|
1404
|
-
],
|
|
1405
|
-
PRIMARY_SHORT: [
|
|
1406
|
-
'ID',
|
|
1407
|
-
],
|
|
1408
|
-
COLUMNS: {
|
|
1409
|
-
'carbon_wp_users.ID': 'ID',
|
|
1410
|
-
},
|
|
1411
|
-
TYPE_VALIDATION: {
|
|
1412
|
-
'carbon_wp_users.ID': {
|
|
1413
|
-
MYSQL_TYPE: 'bigint',
|
|
1414
|
-
MAX_LENGTH: '',
|
|
1415
|
-
AUTO_INCREMENT: false,
|
|
1416
|
-
SKIP_COLUMN_IN_POST: true
|
|
1417
|
-
},
|
|
1418
|
-
},
|
|
1419
|
-
REGEX_VALIDATION: {
|
|
1420
|
-
},
|
|
1421
|
-
TABLE_REFERENCES: {
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1424
|
-
TABLE_REFERENCED_BY: {
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
export const TABLES = {
|
|
1430
|
-
carbons: carbons,
|
|
1431
|
-
comments: comments,
|
|
1432
|
-
documentation: documentation,
|
|
1433
|
-
feature_group_references: feature_group_references,
|
|
1434
|
-
features: features,
|
|
1435
|
-
group_references: group_references,
|
|
1436
|
-
groups: groups,
|
|
1437
|
-
history_logs: history_logs,
|
|
1438
|
-
location_references: location_references,
|
|
1439
|
-
locations: locations,
|
|
1440
|
-
photos: photos,
|
|
1441
|
-
reports: reports,
|
|
1442
|
-
user_followers: user_followers,
|
|
1443
|
-
user_groups: user_groups,
|
|
1444
|
-
user_messages: user_messages,
|
|
1445
|
-
user_sessions: user_sessions,
|
|
1446
|
-
user_tasks: user_tasks,
|
|
1447
|
-
users: users,
|
|
1448
|
-
wp_commentmeta: wp_commentmeta,
|
|
1449
|
-
wp_comments: wp_comments,
|
|
1450
|
-
wp_links: wp_links,
|
|
1451
|
-
wp_options: wp_options,
|
|
1452
|
-
wp_postmeta: wp_postmeta,
|
|
1453
|
-
wp_posts: wp_posts,
|
|
1454
|
-
wp_term_relationships: wp_term_relationships,
|
|
1455
|
-
wp_term_taxonomy: wp_term_taxonomy,
|
|
1456
|
-
wp_termmeta: wp_termmeta,
|
|
1457
|
-
wp_terms: wp_terms,
|
|
1458
|
-
wp_usermeta: wp_usermeta,
|
|
1459
|
-
wp_users: wp_users,
|
|
1460
|
-
};
|
|
1461
|
-
|
|
1462
|
-
export const C6 : { TABLES: { [key: string]: (C6RestfulModel & { [key: string]: any }) } }
|
|
1463
|
-
& { [key: string]: any } = {
|
|
1464
|
-
...C6Constants,
|
|
1465
|
-
TABLES: TABLES,
|
|
1466
|
-
...TABLES
|
|
1467
|
-
};
|
|
1468
|
-
|
|
1469
|
-
export const COLUMNS = {
|
|
1470
|
-
'carbon_carbons.entity_pk': 'entity_pk',
|
|
1471
|
-
'carbon_comments.parent_id': 'parent_id',
|
|
1472
|
-
'carbon_documentation.documentation_uri': 'documentation_uri',
|
|
1473
|
-
'carbon_feature_group_references.feature_entity_id': 'feature_entity_id',
|
|
1474
|
-
'carbon_features.feature_entity_id': 'feature_entity_id',
|
|
1475
|
-
'carbon_group_references.group_id': 'group_id',
|
|
1476
|
-
'carbon_groups.group_name': 'group_name',
|
|
1477
|
-
'carbon_history_logs.history_uuid': 'history_uuid',
|
|
1478
|
-
'carbon_location_references.entity_reference': 'entity_reference',
|
|
1479
|
-
'carbon_locations.entity_id': 'entity_id',
|
|
1480
|
-
'carbon_photos.parent_id': 'parent_id',
|
|
1481
|
-
'carbon_reports.log_level': 'log_level',
|
|
1482
|
-
'carbon_user_followers.follower_table_id': 'follower_table_id',
|
|
1483
|
-
'carbon_user_groups.group_id': 'group_id',
|
|
1484
|
-
'carbon_user_messages.message_id': 'message_id',
|
|
1485
|
-
'carbon_user_sessions.user_id': 'user_id',
|
|
1486
|
-
'carbon_user_tasks.task_id': 'task_id',
|
|
1487
|
-
'carbon_users.user_username': 'user_username',
|
|
1488
|
-
'carbon_wp_commentmeta.meta_id': 'meta_id',
|
|
1489
|
-
'carbon_wp_comments.comment_ID': 'comment_ID',
|
|
1490
|
-
'carbon_wp_links.link_id': 'link_id',
|
|
1491
|
-
'carbon_wp_options.option_id': 'option_id',
|
|
1492
|
-
'carbon_wp_postmeta.meta_id': 'meta_id',
|
|
1493
|
-
'carbon_wp_posts.ID': 'ID',
|
|
1494
|
-
'carbon_wp_term_relationships.object_id': 'object_id',
|
|
1495
|
-
'carbon_wp_term_taxonomy.term_taxonomy_id': 'term_taxonomy_id',
|
|
1496
|
-
'carbon_wp_termmeta.meta_id': 'meta_id',
|
|
1497
|
-
'carbon_wp_terms.term_id': 'term_id',
|
|
1498
|
-
'carbon_wp_usermeta.umeta_id': 'umeta_id',
|
|
1499
|
-
'carbon_wp_users.ID': 'ID',
|
|
1500
|
-
|
|
1501
|
-
};
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
export type RestTableInterfaces = iCarbons
|
|
1505
|
-
| iComments
|
|
1506
|
-
| iDocumentation
|
|
1507
|
-
| iFeature_Group_References
|
|
1508
|
-
| iFeatures
|
|
1509
|
-
| iGroup_References
|
|
1510
|
-
| iGroups
|
|
1511
|
-
| iHistory_Logs
|
|
1512
|
-
| iLocation_References
|
|
1513
|
-
| iLocations
|
|
1514
|
-
| iPhotos
|
|
1515
|
-
| iReports
|
|
1516
|
-
| iUser_Followers
|
|
1517
|
-
| iUser_Groups
|
|
1518
|
-
| iUser_Messages
|
|
1519
|
-
| iUser_Sessions
|
|
1520
|
-
| iUser_Tasks
|
|
1521
|
-
| iUsers
|
|
1522
|
-
| iWp_Commentmeta
|
|
1523
|
-
| iWp_Comments
|
|
1524
|
-
| iWp_Links
|
|
1525
|
-
| iWp_Options
|
|
1526
|
-
| iWp_Postmeta
|
|
1527
|
-
| iWp_Posts
|
|
1528
|
-
| iWp_Term_Relationships
|
|
1529
|
-
| iWp_Term_Taxonomy
|
|
1530
|
-
| iWp_Termmeta
|
|
1531
|
-
| iWp_Terms
|
|
1532
|
-
| iWp_Usermeta
|
|
1533
|
-
| iWp_Users;
|
|
1534
|
-
|
|
1535
|
-
export type tStatefulApiData<T> = T[] | undefined | null;
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
// this refers to the value types of the keys above, aka values in the state
|
|
1539
|
-
export interface iRestfulObjectArrayTypes {
|
|
1540
|
-
carbons: tStatefulApiData<iCarbons>,
|
|
1541
|
-
comments: tStatefulApiData<iComments>,
|
|
1542
|
-
documentation: tStatefulApiData<iDocumentation>,
|
|
1543
|
-
feature_group_references: tStatefulApiData<iFeature_Group_References>,
|
|
1544
|
-
features: tStatefulApiData<iFeatures>,
|
|
1545
|
-
group_references: tStatefulApiData<iGroup_References>,
|
|
1546
|
-
groups: tStatefulApiData<iGroups>,
|
|
1547
|
-
history_logs: tStatefulApiData<iHistory_Logs>,
|
|
1548
|
-
location_references: tStatefulApiData<iLocation_References>,
|
|
1549
|
-
locations: tStatefulApiData<iLocations>,
|
|
1550
|
-
photos: tStatefulApiData<iPhotos>,
|
|
1551
|
-
reports: tStatefulApiData<iReports>,
|
|
1552
|
-
user_followers: tStatefulApiData<iUser_Followers>,
|
|
1553
|
-
user_groups: tStatefulApiData<iUser_Groups>,
|
|
1554
|
-
user_messages: tStatefulApiData<iUser_Messages>,
|
|
1555
|
-
user_sessions: tStatefulApiData<iUser_Sessions>,
|
|
1556
|
-
user_tasks: tStatefulApiData<iUser_Tasks>,
|
|
1557
|
-
users: tStatefulApiData<iUsers>,
|
|
1558
|
-
wp_commentmeta: tStatefulApiData<iWp_Commentmeta>,
|
|
1559
|
-
wp_comments: tStatefulApiData<iWp_Comments>,
|
|
1560
|
-
wp_links: tStatefulApiData<iWp_Links>,
|
|
1561
|
-
wp_options: tStatefulApiData<iWp_Options>,
|
|
1562
|
-
wp_postmeta: tStatefulApiData<iWp_Postmeta>,
|
|
1563
|
-
wp_posts: tStatefulApiData<iWp_Posts>,
|
|
1564
|
-
wp_term_relationships: tStatefulApiData<iWp_Term_Relationships>,
|
|
1565
|
-
wp_term_taxonomy: tStatefulApiData<iWp_Term_Taxonomy>,
|
|
1566
|
-
wp_termmeta: tStatefulApiData<iWp_Termmeta>,
|
|
1567
|
-
wp_terms: tStatefulApiData<iWp_Terms>,
|
|
1568
|
-
wp_usermeta: tStatefulApiData<iWp_Usermeta>,
|
|
1569
|
-
wp_users: tStatefulApiData<iWp_Users>,
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
|
|
1573
|
-
carbons: undefined,
|
|
1574
|
-
comments: undefined,
|
|
1575
|
-
documentation: undefined,
|
|
1576
|
-
feature_group_references: undefined,
|
|
1577
|
-
features: undefined,
|
|
1578
|
-
group_references: undefined,
|
|
1579
|
-
groups: undefined,
|
|
1580
|
-
history_logs: undefined,
|
|
1581
|
-
location_references: undefined,
|
|
1582
|
-
locations: undefined,
|
|
1583
|
-
photos: undefined,
|
|
1584
|
-
reports: undefined,
|
|
1585
|
-
user_followers: undefined,
|
|
1586
|
-
user_groups: undefined,
|
|
1587
|
-
user_messages: undefined,
|
|
1588
|
-
user_sessions: undefined,
|
|
1589
|
-
user_tasks: undefined,
|
|
1590
|
-
users: undefined,
|
|
1591
|
-
wp_commentmeta: undefined,
|
|
1592
|
-
wp_comments: undefined,
|
|
1593
|
-
wp_links: undefined,
|
|
1594
|
-
wp_options: undefined,
|
|
1595
|
-
wp_postmeta: undefined,
|
|
1596
|
-
wp_posts: undefined,
|
|
1597
|
-
wp_term_relationships: undefined,
|
|
1598
|
-
wp_term_taxonomy: undefined,
|
|
1599
|
-
wp_termmeta: undefined,
|
|
1600
|
-
wp_terms: undefined,
|
|
1601
|
-
wp_usermeta: undefined,
|
|
1602
|
-
wp_users: undefined,
|
|
1603
|
-
};
|
|
1604
|
-
|
|
1605
|
-
export type tRestfulObjectArrayValues = iRestfulObjectArrayTypes[keyof iRestfulObjectArrayTypes];
|
|
1606
|
-
|