@carbonorm/carbonreact 1.0.7 → 1.0.9

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.
Files changed (50) hide show
  1. package/package.json +3 -2
  2. package/src/CarbonReact.tsx +136 -0
  3. package/src/components/Alert/Alert.tsx +210 -0
  4. package/src/components/Errors/AccessDenied.tsx +32 -0
  5. package/src/components/Errors/BackendThrowable.tsx +44 -0
  6. package/src/components/Errors/ErrorHttpCode.tsx +31 -0
  7. package/src/components/Errors/Localhost.tsx +38 -0
  8. package/src/components/Errors/PageNotFound.tsx +16 -0
  9. package/src/components/Errors/style.module.css +108 -0
  10. package/src/components/Errors/style.module.css.d.ts +34 -0
  11. package/src/components/Errors/style.module.css.map +1 -0
  12. package/src/components/Errors/style.module.scss +111 -0
  13. package/src/components/Errors/style.module.scss.d.ts +34 -0
  14. package/src/components/Errors/style.module.scss.json +1 -0
  15. package/src/components/Loading/Loading.tsx +37 -0
  16. package/src/components/Nest/Nest.tsx +241 -0
  17. package/src/components/Popup/Popup.tsx +55 -0
  18. package/src/custom.d.ts +47 -0
  19. package/src/hoc/GlobalHistory.tsx +11 -0
  20. package/src/hoc/addValidSQL.tsx +6 -0
  21. package/src/hoc/axiosInstance.tsx +494 -0
  22. package/src/hoc/changed.tsx +58 -0
  23. package/src/hoc/deleteRestfulObjectArrays.tsx +25 -0
  24. package/src/hoc/getStyles.tsx +44 -0
  25. package/src/hoc/hexToRgb.tsx +15 -0
  26. package/src/hoc/isEdgeBrowser.tsx +7 -0
  27. package/src/hoc/parseMultipleJson.tsx +49 -0
  28. package/src/hoc/scrollIntoView.tsx +6 -0
  29. package/src/hoc/setUrl.tsx +49 -0
  30. package/src/hoc/updateRestfulObjectArrays.tsx +92 -0
  31. package/src/hoc/uploadImage.tsx +99 -0
  32. package/src/hoc/windowDimensions.tsx +24 -0
  33. package/src/index.ts +53 -0
  34. package/src/style.module.css +261 -0
  35. package/src/style.module.css.d.ts +44 -0
  36. package/src/style.module.css.json +1 -0
  37. package/src/style.module.css.map +1 -0
  38. package/src/style.module.scss +269 -0
  39. package/src/style.module.scss.d.ts +44 -0
  40. package/src/variables/C6.tsx +3317 -0
  41. package/{dist/CarbonReact.umd.css → src/variables/bootstrap.module.css} +3065 -3561
  42. package/src/variables/bootstrap.module.css.d.ts +7736 -0
  43. package/src/variables/bootstrap.module.css.json +1 -0
  44. package/src/variables/bootstrap.module.css.map +1 -0
  45. package/src/variables/bootstrap.module.scss +37 -0
  46. package/src/variables/bootstrap.module.scss.d.ts +7736 -0
  47. package/src/variables/isProduction.tsx +5 -0
  48. package/dist/CarbonReact.umd.css.map +0 -1
  49. package/dist/CarbonReact.umd.js +0 -4653
  50. package/dist/CarbonReact.umd.js.map +0 -1
@@ -0,0 +1,3317 @@
1
+
2
+ export interface stringMap {
3
+ [key: string]: string;
4
+ }
5
+
6
+ export interface stringNumberMap {
7
+ [key: string]: string | number;
8
+ }
9
+
10
+ export interface RegExpMap {
11
+ [key: string]: RegExp | RegExpMap;
12
+ }
13
+
14
+ export interface complexMap {
15
+ [key: string]: stringMap | stringNumberMap | stringMap[] | RegExpMap;
16
+ }
17
+
18
+ export interface iTypeValidation {
19
+ MYSQL_TYPE: string,
20
+ MAX_LENGTH: string,
21
+ AUTO_INCREMENT: boolean,
22
+ SKIP_COLUMN_IN_POST: boolean
23
+ }
24
+
25
+ export type RestTableNames = 'carbon_carbons'
26
+ | 'carbon_comments'
27
+ | 'carbon_documentation'
28
+ | 'carbon_feature_group_references'
29
+ | 'carbon_features'
30
+ | 'carbon_group_references'
31
+ | 'carbon_groups'
32
+ | 'carbon_history_logs'
33
+ | 'carbon_location_references'
34
+ | 'carbon_locations'
35
+ | 'carbon_photos'
36
+ | 'carbon_reports'
37
+ | 'carbon_sessions'
38
+ | 'carbon_user_followers'
39
+ | 'carbon_user_groups'
40
+ | 'carbon_user_messages'
41
+ | 'carbon_user_sessions'
42
+ | 'carbon_user_tasks'
43
+ | 'carbon_users'
44
+ | 'carbon_wp_commentmeta'
45
+ | 'carbon_wp_comments'
46
+ | 'carbon_wp_links'
47
+ | 'carbon_wp_options'
48
+ | 'carbon_wp_postmeta'
49
+ | 'carbon_wp_posts'
50
+ | 'carbon_wp_term_relationships'
51
+ | 'carbon_wp_term_taxonomy'
52
+ | 'carbon_wp_termmeta'
53
+ | 'carbon_wp_terms'
54
+ | 'carbon_wp_usermeta'
55
+ | 'carbon_wp_users';
56
+
57
+ export type RestShortTableNames = 'carbons'
58
+ | 'comments'
59
+ | 'documentation'
60
+ | 'feature_group_references'
61
+ | 'features'
62
+ | 'group_references'
63
+ | 'groups'
64
+ | 'history_logs'
65
+ | 'location_references'
66
+ | 'locations'
67
+ | 'photos'
68
+ | 'reports'
69
+ | 'sessions'
70
+ | 'user_followers'
71
+ | 'user_groups'
72
+ | 'user_messages'
73
+ | 'user_sessions'
74
+ | 'user_tasks'
75
+ | 'users'
76
+ | 'wp_commentmeta'
77
+ | 'wp_comments'
78
+ | 'wp_links'
79
+ | 'wp_options'
80
+ | 'wp_postmeta'
81
+ | 'wp_posts'
82
+ | 'wp_term_relationships'
83
+ | 'wp_term_taxonomy'
84
+ | 'wp_termmeta'
85
+ | 'wp_terms'
86
+ | 'wp_usermeta'
87
+ | 'wp_users';
88
+
89
+ export interface C6RestfulModel {
90
+ TABLE_NAME: RestShortTableNames,
91
+ PRIMARY: string[],
92
+ COLUMNS: stringMap,
93
+ REGEX_VALIDATION: RegExpMap,
94
+ TYPE_VALIDATION: {[key: string]: iTypeValidation},
95
+ }
96
+
97
+
98
+
99
+ export interface iCarbons {
100
+ 'entity_pk'?: string;
101
+ 'entity_fk'?: string;
102
+ 'entity_tag'?: string;
103
+ }
104
+
105
+ interface iDefineCarbons {
106
+ 'ENTITY_PK': string;
107
+ 'ENTITY_FK': string;
108
+ 'ENTITY_TAG': string;
109
+ }
110
+
111
+ export const carbons : C6RestfulModel & iDefineCarbons = {
112
+ TABLE_NAME:'carbons',
113
+ ENTITY_PK: 'carbon_carbons.entity_pk',
114
+ ENTITY_FK: 'carbon_carbons.entity_fk',
115
+ ENTITY_TAG: 'carbon_carbons.entity_tag',
116
+ PRIMARY: [
117
+ 'carbon_carbons.entity_pk',
118
+ ],
119
+ COLUMNS: {
120
+ 'carbon_carbons.entity_pk':'entity_pk',
121
+ 'carbon_carbons.entity_fk':'entity_fk',
122
+ 'carbon_carbons.entity_tag':'entity_tag',
123
+ },
124
+ TYPE_VALIDATION: {
125
+ 'carbon_carbons.entity_pk': {
126
+ MYSQL_TYPE: 'binary',
127
+ MAX_LENGTH: '16',
128
+ AUTO_INCREMENT: false,
129
+ SKIP_COLUMN_IN_POST: false
130
+ },
131
+ 'carbon_carbons.entity_fk': {
132
+ MYSQL_TYPE: 'binary',
133
+ MAX_LENGTH: '16',
134
+ AUTO_INCREMENT: false,
135
+ SKIP_COLUMN_IN_POST: true
136
+ },
137
+ 'carbon_carbons.entity_tag': {
138
+ MYSQL_TYPE: 'varchar',
139
+ MAX_LENGTH: '100',
140
+ AUTO_INCREMENT: false,
141
+ SKIP_COLUMN_IN_POST: true
142
+ },
143
+ },
144
+ REGEX_VALIDATION: {
145
+ }
146
+
147
+ }
148
+
149
+
150
+
151
+ export interface iComments {
152
+ 'parent_id'?: string;
153
+ 'comment_id'?: string;
154
+ 'user_id'?: string;
155
+ 'comment'?: string;
156
+ }
157
+
158
+ interface iDefineComments {
159
+ 'PARENT_ID': string;
160
+ 'COMMENT_ID': string;
161
+ 'USER_ID': string;
162
+ 'COMMENT': string;
163
+ }
164
+
165
+ export const comments : C6RestfulModel & iDefineComments = {
166
+ TABLE_NAME:'comments',
167
+ PARENT_ID: 'carbon_comments.parent_id',
168
+ COMMENT_ID: 'carbon_comments.comment_id',
169
+ USER_ID: 'carbon_comments.user_id',
170
+ COMMENT: 'carbon_comments.comment',
171
+ PRIMARY: [
172
+ 'carbon_comments.comment_id',
173
+ ],
174
+ COLUMNS: {
175
+ 'carbon_comments.parent_id':'parent_id',
176
+ 'carbon_comments.comment_id':'comment_id',
177
+ 'carbon_comments.user_id':'user_id',
178
+ 'carbon_comments.comment':'comment',
179
+ },
180
+ TYPE_VALIDATION: {
181
+ 'carbon_comments.parent_id': {
182
+ MYSQL_TYPE: 'binary',
183
+ MAX_LENGTH: '16',
184
+ AUTO_INCREMENT: false,
185
+ SKIP_COLUMN_IN_POST: false
186
+ },
187
+ 'carbon_comments.comment_id': {
188
+ MYSQL_TYPE: 'binary',
189
+ MAX_LENGTH: '16',
190
+ AUTO_INCREMENT: false,
191
+ SKIP_COLUMN_IN_POST: false
192
+ },
193
+ 'carbon_comments.user_id': {
194
+ MYSQL_TYPE: 'binary',
195
+ MAX_LENGTH: '16',
196
+ AUTO_INCREMENT: false,
197
+ SKIP_COLUMN_IN_POST: false
198
+ },
199
+ 'carbon_comments.comment': {
200
+ MYSQL_TYPE: 'blob',
201
+ MAX_LENGTH: '',
202
+ AUTO_INCREMENT: false,
203
+ SKIP_COLUMN_IN_POST: false
204
+ },
205
+ },
206
+ REGEX_VALIDATION: {
207
+ }
208
+
209
+ }
210
+
211
+
212
+
213
+ export interface iDocumentation {
214
+ 'documentation_uri'?: string;
215
+ 'documentation_data'?: string;
216
+ 'documentation_version'?: string;
217
+ 'documentation_active'?: number;
218
+ }
219
+
220
+ interface iDefineDocumentation {
221
+ 'DOCUMENTATION_URI': string;
222
+ 'DOCUMENTATION_DATA': string;
223
+ 'DOCUMENTATION_VERSION': string;
224
+ 'DOCUMENTATION_ACTIVE': string;
225
+ }
226
+
227
+ export const documentation : C6RestfulModel & iDefineDocumentation = {
228
+ TABLE_NAME:'documentation',
229
+ DOCUMENTATION_URI: 'carbon_documentation.documentation_uri',
230
+ DOCUMENTATION_DATA: 'carbon_documentation.documentation_data',
231
+ DOCUMENTATION_VERSION: 'carbon_documentation.documentation_version',
232
+ DOCUMENTATION_ACTIVE: 'carbon_documentation.documentation_active',
233
+ PRIMARY: [
234
+ ],
235
+ COLUMNS: {
236
+ 'carbon_documentation.documentation_uri':'documentation_uri',
237
+ 'carbon_documentation.documentation_data':'documentation_data',
238
+ 'carbon_documentation.documentation_version':'documentation_version',
239
+ 'carbon_documentation.documentation_active':'documentation_active',
240
+ },
241
+ TYPE_VALIDATION: {
242
+ 'carbon_documentation.documentation_uri': {
243
+ MYSQL_TYPE: 'varchar',
244
+ MAX_LENGTH: '255',
245
+ AUTO_INCREMENT: false,
246
+ SKIP_COLUMN_IN_POST: false
247
+ },
248
+ 'carbon_documentation.documentation_data': {
249
+ MYSQL_TYPE: 'longblob',
250
+ MAX_LENGTH: '',
251
+ AUTO_INCREMENT: false,
252
+ SKIP_COLUMN_IN_POST: false
253
+ },
254
+ 'carbon_documentation.documentation_version': {
255
+ MYSQL_TYPE: 'varchar',
256
+ MAX_LENGTH: '40',
257
+ AUTO_INCREMENT: false,
258
+ SKIP_COLUMN_IN_POST: false
259
+ },
260
+ 'carbon_documentation.documentation_active': {
261
+ MYSQL_TYPE: 'tinyint',
262
+ MAX_LENGTH: '',
263
+ AUTO_INCREMENT: false,
264
+ SKIP_COLUMN_IN_POST: false
265
+ },
266
+ },
267
+ REGEX_VALIDATION: {
268
+ }
269
+
270
+ }
271
+
272
+
273
+
274
+ export interface iFeature_Group_References {
275
+ 'feature_entity_id'?: string;
276
+ 'group_entity_id'?: string;
277
+ }
278
+
279
+ interface iDefineFeature_Group_References {
280
+ 'FEATURE_ENTITY_ID': string;
281
+ 'GROUP_ENTITY_ID': string;
282
+ }
283
+
284
+ export const feature_group_references : C6RestfulModel & iDefineFeature_Group_References = {
285
+ TABLE_NAME:'feature_group_references',
286
+ FEATURE_ENTITY_ID: 'carbon_feature_group_references.feature_entity_id',
287
+ GROUP_ENTITY_ID: 'carbon_feature_group_references.group_entity_id',
288
+ PRIMARY: [
289
+ ],
290
+ COLUMNS: {
291
+ 'carbon_feature_group_references.feature_entity_id':'feature_entity_id',
292
+ 'carbon_feature_group_references.group_entity_id':'group_entity_id',
293
+ },
294
+ TYPE_VALIDATION: {
295
+ 'carbon_feature_group_references.feature_entity_id': {
296
+ MYSQL_TYPE: 'binary',
297
+ MAX_LENGTH: '16',
298
+ AUTO_INCREMENT: false,
299
+ SKIP_COLUMN_IN_POST: true
300
+ },
301
+ 'carbon_feature_group_references.group_entity_id': {
302
+ MYSQL_TYPE: 'binary',
303
+ MAX_LENGTH: '16',
304
+ AUTO_INCREMENT: false,
305
+ SKIP_COLUMN_IN_POST: true
306
+ },
307
+ },
308
+ REGEX_VALIDATION: {
309
+ }
310
+
311
+ }
312
+
313
+
314
+
315
+ export interface iFeatures {
316
+ 'feature_entity_id'?: string;
317
+ 'feature_code'?: string;
318
+ 'feature_creation_date'?: string;
319
+ }
320
+
321
+ interface iDefineFeatures {
322
+ 'FEATURE_ENTITY_ID': string;
323
+ 'FEATURE_CODE': string;
324
+ 'FEATURE_CREATION_DATE': string;
325
+ }
326
+
327
+ export const features : C6RestfulModel & iDefineFeatures = {
328
+ TABLE_NAME:'features',
329
+ FEATURE_ENTITY_ID: 'carbon_features.feature_entity_id',
330
+ FEATURE_CODE: 'carbon_features.feature_code',
331
+ FEATURE_CREATION_DATE: 'carbon_features.feature_creation_date',
332
+ PRIMARY: [
333
+ 'carbon_features.feature_entity_id',
334
+ ],
335
+ COLUMNS: {
336
+ 'carbon_features.feature_entity_id':'feature_entity_id',
337
+ 'carbon_features.feature_code':'feature_code',
338
+ 'carbon_features.feature_creation_date':'feature_creation_date',
339
+ },
340
+ TYPE_VALIDATION: {
341
+ 'carbon_features.feature_entity_id': {
342
+ MYSQL_TYPE: 'binary',
343
+ MAX_LENGTH: '16',
344
+ AUTO_INCREMENT: false,
345
+ SKIP_COLUMN_IN_POST: false
346
+ },
347
+ 'carbon_features.feature_code': {
348
+ MYSQL_TYPE: 'varchar',
349
+ MAX_LENGTH: '30',
350
+ AUTO_INCREMENT: false,
351
+ SKIP_COLUMN_IN_POST: false
352
+ },
353
+ 'carbon_features.feature_creation_date': {
354
+ MYSQL_TYPE: 'datetime',
355
+ MAX_LENGTH: '',
356
+ AUTO_INCREMENT: false,
357
+ SKIP_COLUMN_IN_POST: true
358
+ },
359
+ },
360
+ REGEX_VALIDATION: {
361
+ }
362
+
363
+ }
364
+
365
+
366
+
367
+ export interface iGroup_References {
368
+ 'group_id'?: string;
369
+ 'allowed_to_grant_group_id'?: string;
370
+ }
371
+
372
+ interface iDefineGroup_References {
373
+ 'GROUP_ID': string;
374
+ 'ALLOWED_TO_GRANT_GROUP_ID': string;
375
+ }
376
+
377
+ export const group_references : C6RestfulModel & iDefineGroup_References = {
378
+ TABLE_NAME:'group_references',
379
+ GROUP_ID: 'carbon_group_references.group_id',
380
+ ALLOWED_TO_GRANT_GROUP_ID: 'carbon_group_references.allowed_to_grant_group_id',
381
+ PRIMARY: [
382
+ ],
383
+ COLUMNS: {
384
+ 'carbon_group_references.group_id':'group_id',
385
+ 'carbon_group_references.allowed_to_grant_group_id':'allowed_to_grant_group_id',
386
+ },
387
+ TYPE_VALIDATION: {
388
+ 'carbon_group_references.group_id': {
389
+ MYSQL_TYPE: 'binary',
390
+ MAX_LENGTH: '16',
391
+ AUTO_INCREMENT: false,
392
+ SKIP_COLUMN_IN_POST: true
393
+ },
394
+ 'carbon_group_references.allowed_to_grant_group_id': {
395
+ MYSQL_TYPE: 'binary',
396
+ MAX_LENGTH: '16',
397
+ AUTO_INCREMENT: false,
398
+ SKIP_COLUMN_IN_POST: true
399
+ },
400
+ },
401
+ REGEX_VALIDATION: {
402
+ }
403
+
404
+ }
405
+
406
+
407
+
408
+ export interface iGroups {
409
+ 'group_name'?: string;
410
+ 'entity_id'?: string;
411
+ 'created_by'?: string;
412
+ 'creation_date'?: string;
413
+ }
414
+
415
+ interface iDefineGroups {
416
+ 'GROUP_NAME': string;
417
+ 'ENTITY_ID': string;
418
+ 'CREATED_BY': string;
419
+ 'CREATION_DATE': string;
420
+ }
421
+
422
+ export const groups : C6RestfulModel & iDefineGroups = {
423
+ TABLE_NAME:'groups',
424
+ GROUP_NAME: 'carbon_groups.group_name',
425
+ ENTITY_ID: 'carbon_groups.entity_id',
426
+ CREATED_BY: 'carbon_groups.created_by',
427
+ CREATION_DATE: 'carbon_groups.creation_date',
428
+ PRIMARY: [
429
+ 'carbon_groups.entity_id',
430
+ ],
431
+ COLUMNS: {
432
+ 'carbon_groups.group_name':'group_name',
433
+ 'carbon_groups.entity_id':'entity_id',
434
+ 'carbon_groups.created_by':'created_by',
435
+ 'carbon_groups.creation_date':'creation_date',
436
+ },
437
+ TYPE_VALIDATION: {
438
+ 'carbon_groups.group_name': {
439
+ MYSQL_TYPE: 'varchar',
440
+ MAX_LENGTH: '20',
441
+ AUTO_INCREMENT: false,
442
+ SKIP_COLUMN_IN_POST: false
443
+ },
444
+ 'carbon_groups.entity_id': {
445
+ MYSQL_TYPE: 'binary',
446
+ MAX_LENGTH: '16',
447
+ AUTO_INCREMENT: false,
448
+ SKIP_COLUMN_IN_POST: false
449
+ },
450
+ 'carbon_groups.created_by': {
451
+ MYSQL_TYPE: 'binary',
452
+ MAX_LENGTH: '16',
453
+ AUTO_INCREMENT: false,
454
+ SKIP_COLUMN_IN_POST: false
455
+ },
456
+ 'carbon_groups.creation_date': {
457
+ MYSQL_TYPE: 'datetime',
458
+ MAX_LENGTH: '',
459
+ AUTO_INCREMENT: false,
460
+ SKIP_COLUMN_IN_POST: true
461
+ },
462
+ },
463
+ REGEX_VALIDATION: {
464
+ }
465
+
466
+ }
467
+
468
+
469
+
470
+ export interface iHistory_Logs {
471
+ 'history_uuid'?: string;
472
+ 'history_table'?: string;
473
+ 'history_type'?: string;
474
+ 'history_data'?: string;
475
+ 'history_original_query'?: string;
476
+ 'history_time'?: string;
477
+ }
478
+
479
+ interface iDefineHistory_Logs {
480
+ 'HISTORY_UUID': string;
481
+ 'HISTORY_TABLE': string;
482
+ 'HISTORY_TYPE': string;
483
+ 'HISTORY_DATA': string;
484
+ 'HISTORY_ORIGINAL_QUERY': string;
485
+ 'HISTORY_TIME': string;
486
+ }
487
+
488
+ export const history_logs : C6RestfulModel & iDefineHistory_Logs = {
489
+ TABLE_NAME:'history_logs',
490
+ HISTORY_UUID: 'carbon_history_logs.history_uuid',
491
+ HISTORY_TABLE: 'carbon_history_logs.history_table',
492
+ HISTORY_TYPE: 'carbon_history_logs.history_type',
493
+ HISTORY_DATA: 'carbon_history_logs.history_data',
494
+ HISTORY_ORIGINAL_QUERY: 'carbon_history_logs.history_original_query',
495
+ HISTORY_TIME: 'carbon_history_logs.history_time',
496
+ PRIMARY: [
497
+ ],
498
+ COLUMNS: {
499
+ 'carbon_history_logs.history_uuid':'history_uuid',
500
+ 'carbon_history_logs.history_table':'history_table',
501
+ 'carbon_history_logs.history_type':'history_type',
502
+ 'carbon_history_logs.history_data':'history_data',
503
+ 'carbon_history_logs.history_original_query':'history_original_query',
504
+ 'carbon_history_logs.history_time':'history_time',
505
+ },
506
+ TYPE_VALIDATION: {
507
+ 'carbon_history_logs.history_uuid': {
508
+ MYSQL_TYPE: 'binary',
509
+ MAX_LENGTH: '16',
510
+ AUTO_INCREMENT: false,
511
+ SKIP_COLUMN_IN_POST: false
512
+ },
513
+ 'carbon_history_logs.history_table': {
514
+ MYSQL_TYPE: 'varchar',
515
+ MAX_LENGTH: '255',
516
+ AUTO_INCREMENT: false,
517
+ SKIP_COLUMN_IN_POST: true
518
+ },
519
+ 'carbon_history_logs.history_type': {
520
+ MYSQL_TYPE: 'varchar',
521
+ MAX_LENGTH: '20',
522
+ AUTO_INCREMENT: false,
523
+ SKIP_COLUMN_IN_POST: true
524
+ },
525
+ 'carbon_history_logs.history_data': {
526
+ MYSQL_TYPE: 'json',
527
+ MAX_LENGTH: '',
528
+ AUTO_INCREMENT: false,
529
+ SKIP_COLUMN_IN_POST: true
530
+ },
531
+ 'carbon_history_logs.history_original_query': {
532
+ MYSQL_TYPE: 'varchar',
533
+ MAX_LENGTH: '1024',
534
+ AUTO_INCREMENT: false,
535
+ SKIP_COLUMN_IN_POST: true
536
+ },
537
+ 'carbon_history_logs.history_time': {
538
+ MYSQL_TYPE: 'datetime',
539
+ MAX_LENGTH: '',
540
+ AUTO_INCREMENT: false,
541
+ SKIP_COLUMN_IN_POST: true
542
+ },
543
+ },
544
+ REGEX_VALIDATION: {
545
+ }
546
+
547
+ }
548
+
549
+
550
+
551
+ export interface iLocation_References {
552
+ 'entity_reference'?: string;
553
+ 'location_reference'?: string;
554
+ 'location_time'?: string;
555
+ }
556
+
557
+ interface iDefineLocation_References {
558
+ 'ENTITY_REFERENCE': string;
559
+ 'LOCATION_REFERENCE': string;
560
+ 'LOCATION_TIME': string;
561
+ }
562
+
563
+ export const location_references : C6RestfulModel & iDefineLocation_References = {
564
+ TABLE_NAME:'location_references',
565
+ ENTITY_REFERENCE: 'carbon_location_references.entity_reference',
566
+ LOCATION_REFERENCE: 'carbon_location_references.location_reference',
567
+ LOCATION_TIME: 'carbon_location_references.location_time',
568
+ PRIMARY: [
569
+ ],
570
+ COLUMNS: {
571
+ 'carbon_location_references.entity_reference':'entity_reference',
572
+ 'carbon_location_references.location_reference':'location_reference',
573
+ 'carbon_location_references.location_time':'location_time',
574
+ },
575
+ TYPE_VALIDATION: {
576
+ 'carbon_location_references.entity_reference': {
577
+ MYSQL_TYPE: 'binary',
578
+ MAX_LENGTH: '16',
579
+ AUTO_INCREMENT: false,
580
+ SKIP_COLUMN_IN_POST: false
581
+ },
582
+ 'carbon_location_references.location_reference': {
583
+ MYSQL_TYPE: 'binary',
584
+ MAX_LENGTH: '16',
585
+ AUTO_INCREMENT: false,
586
+ SKIP_COLUMN_IN_POST: false
587
+ },
588
+ 'carbon_location_references.location_time': {
589
+ MYSQL_TYPE: 'datetime',
590
+ MAX_LENGTH: '',
591
+ AUTO_INCREMENT: false,
592
+ SKIP_COLUMN_IN_POST: true
593
+ },
594
+ },
595
+ REGEX_VALIDATION: {
596
+ }
597
+
598
+ }
599
+
600
+
601
+
602
+ export interface iLocations {
603
+ 'entity_id'?: string;
604
+ 'latitude'?: string;
605
+ 'longitude'?: string;
606
+ 'street'?: string;
607
+ 'city'?: string;
608
+ 'state'?: string;
609
+ 'elevation'?: string;
610
+ 'zip'?: number;
611
+ }
612
+
613
+ interface iDefineLocations {
614
+ 'ENTITY_ID': string;
615
+ 'LATITUDE': string;
616
+ 'LONGITUDE': string;
617
+ 'STREET': string;
618
+ 'CITY': string;
619
+ 'STATE': string;
620
+ 'ELEVATION': string;
621
+ 'ZIP': string;
622
+ }
623
+
624
+ export const locations : C6RestfulModel & iDefineLocations = {
625
+ TABLE_NAME:'locations',
626
+ ENTITY_ID: 'carbon_locations.entity_id',
627
+ LATITUDE: 'carbon_locations.latitude',
628
+ LONGITUDE: 'carbon_locations.longitude',
629
+ STREET: 'carbon_locations.street',
630
+ CITY: 'carbon_locations.city',
631
+ STATE: 'carbon_locations.state',
632
+ ELEVATION: 'carbon_locations.elevation',
633
+ ZIP: 'carbon_locations.zip',
634
+ PRIMARY: [
635
+ 'carbon_locations.entity_id',
636
+ ],
637
+ COLUMNS: {
638
+ 'carbon_locations.entity_id':'entity_id',
639
+ 'carbon_locations.latitude':'latitude',
640
+ 'carbon_locations.longitude':'longitude',
641
+ 'carbon_locations.street':'street',
642
+ 'carbon_locations.city':'city',
643
+ 'carbon_locations.state':'state',
644
+ 'carbon_locations.elevation':'elevation',
645
+ 'carbon_locations.zip':'zip',
646
+ },
647
+ TYPE_VALIDATION: {
648
+ 'carbon_locations.entity_id': {
649
+ MYSQL_TYPE: 'binary',
650
+ MAX_LENGTH: '16',
651
+ AUTO_INCREMENT: false,
652
+ SKIP_COLUMN_IN_POST: false
653
+ },
654
+ 'carbon_locations.latitude': {
655
+ MYSQL_TYPE: 'varchar',
656
+ MAX_LENGTH: '225',
657
+ AUTO_INCREMENT: false,
658
+ SKIP_COLUMN_IN_POST: true
659
+ },
660
+ 'carbon_locations.longitude': {
661
+ MYSQL_TYPE: 'varchar',
662
+ MAX_LENGTH: '225',
663
+ AUTO_INCREMENT: false,
664
+ SKIP_COLUMN_IN_POST: true
665
+ },
666
+ 'carbon_locations.street': {
667
+ MYSQL_TYPE: 'varchar',
668
+ MAX_LENGTH: '225',
669
+ AUTO_INCREMENT: false,
670
+ SKIP_COLUMN_IN_POST: true
671
+ },
672
+ 'carbon_locations.city': {
673
+ MYSQL_TYPE: 'varchar',
674
+ MAX_LENGTH: '40',
675
+ AUTO_INCREMENT: false,
676
+ SKIP_COLUMN_IN_POST: true
677
+ },
678
+ 'carbon_locations.state': {
679
+ MYSQL_TYPE: 'varchar',
680
+ MAX_LENGTH: '10',
681
+ AUTO_INCREMENT: false,
682
+ SKIP_COLUMN_IN_POST: true
683
+ },
684
+ 'carbon_locations.elevation': {
685
+ MYSQL_TYPE: 'varchar',
686
+ MAX_LENGTH: '40',
687
+ AUTO_INCREMENT: false,
688
+ SKIP_COLUMN_IN_POST: true
689
+ },
690
+ 'carbon_locations.zip': {
691
+ MYSQL_TYPE: 'int',
692
+ MAX_LENGTH: '',
693
+ AUTO_INCREMENT: false,
694
+ SKIP_COLUMN_IN_POST: true
695
+ },
696
+ },
697
+ REGEX_VALIDATION: {
698
+ }
699
+
700
+ }
701
+
702
+
703
+
704
+ export interface iPhotos {
705
+ 'parent_id'?: string;
706
+ 'photo_id'?: string;
707
+ 'user_id'?: string;
708
+ 'photo_path'?: string;
709
+ 'photo_description'?: string;
710
+ }
711
+
712
+ interface iDefinePhotos {
713
+ 'PARENT_ID': string;
714
+ 'PHOTO_ID': string;
715
+ 'USER_ID': string;
716
+ 'PHOTO_PATH': string;
717
+ 'PHOTO_DESCRIPTION': string;
718
+ }
719
+
720
+ export const photos : C6RestfulModel & iDefinePhotos = {
721
+ TABLE_NAME:'photos',
722
+ PARENT_ID: 'carbon_photos.parent_id',
723
+ PHOTO_ID: 'carbon_photos.photo_id',
724
+ USER_ID: 'carbon_photos.user_id',
725
+ PHOTO_PATH: 'carbon_photos.photo_path',
726
+ PHOTO_DESCRIPTION: 'carbon_photos.photo_description',
727
+ PRIMARY: [
728
+ 'carbon_photos.parent_id',
729
+ ],
730
+ COLUMNS: {
731
+ 'carbon_photos.parent_id':'parent_id',
732
+ 'carbon_photos.photo_id':'photo_id',
733
+ 'carbon_photos.user_id':'user_id',
734
+ 'carbon_photos.photo_path':'photo_path',
735
+ 'carbon_photos.photo_description':'photo_description',
736
+ },
737
+ TYPE_VALIDATION: {
738
+ 'carbon_photos.parent_id': {
739
+ MYSQL_TYPE: 'binary',
740
+ MAX_LENGTH: '16',
741
+ AUTO_INCREMENT: false,
742
+ SKIP_COLUMN_IN_POST: false
743
+ },
744
+ 'carbon_photos.photo_id': {
745
+ MYSQL_TYPE: 'binary',
746
+ MAX_LENGTH: '16',
747
+ AUTO_INCREMENT: false,
748
+ SKIP_COLUMN_IN_POST: false
749
+ },
750
+ 'carbon_photos.user_id': {
751
+ MYSQL_TYPE: 'binary',
752
+ MAX_LENGTH: '16',
753
+ AUTO_INCREMENT: false,
754
+ SKIP_COLUMN_IN_POST: false
755
+ },
756
+ 'carbon_photos.photo_path': {
757
+ MYSQL_TYPE: 'varchar',
758
+ MAX_LENGTH: '225',
759
+ AUTO_INCREMENT: false,
760
+ SKIP_COLUMN_IN_POST: false
761
+ },
762
+ 'carbon_photos.photo_description': {
763
+ MYSQL_TYPE: 'text',
764
+ MAX_LENGTH: '',
765
+ AUTO_INCREMENT: false,
766
+ SKIP_COLUMN_IN_POST: false
767
+ },
768
+ },
769
+ REGEX_VALIDATION: {
770
+ }
771
+
772
+ }
773
+
774
+
775
+
776
+ export interface iReports {
777
+ 'log_level'?: string;
778
+ 'report'?: string;
779
+ 'date'?: string;
780
+ 'call_trace'?: string;
781
+ }
782
+
783
+ interface iDefineReports {
784
+ 'LOG_LEVEL': string;
785
+ 'REPORT': string;
786
+ 'DATE': string;
787
+ 'CALL_TRACE': string;
788
+ }
789
+
790
+ export const reports : C6RestfulModel & iDefineReports = {
791
+ TABLE_NAME:'reports',
792
+ LOG_LEVEL: 'carbon_reports.log_level',
793
+ REPORT: 'carbon_reports.report',
794
+ DATE: 'carbon_reports.date',
795
+ CALL_TRACE: 'carbon_reports.call_trace',
796
+ PRIMARY: [
797
+ ],
798
+ COLUMNS: {
799
+ 'carbon_reports.log_level':'log_level',
800
+ 'carbon_reports.report':'report',
801
+ 'carbon_reports.date':'date',
802
+ 'carbon_reports.call_trace':'call_trace',
803
+ },
804
+ TYPE_VALIDATION: {
805
+ 'carbon_reports.log_level': {
806
+ MYSQL_TYPE: 'varchar',
807
+ MAX_LENGTH: '20',
808
+ AUTO_INCREMENT: false,
809
+ SKIP_COLUMN_IN_POST: true
810
+ },
811
+ 'carbon_reports.report': {
812
+ MYSQL_TYPE: 'text',
813
+ MAX_LENGTH: '',
814
+ AUTO_INCREMENT: false,
815
+ SKIP_COLUMN_IN_POST: false
816
+ },
817
+ 'carbon_reports.date': {
818
+ MYSQL_TYPE: 'datetime',
819
+ MAX_LENGTH: '',
820
+ AUTO_INCREMENT: false,
821
+ SKIP_COLUMN_IN_POST: true
822
+ },
823
+ 'carbon_reports.call_trace': {
824
+ MYSQL_TYPE: 'text',
825
+ MAX_LENGTH: '',
826
+ AUTO_INCREMENT: false,
827
+ SKIP_COLUMN_IN_POST: false
828
+ },
829
+ },
830
+ REGEX_VALIDATION: {
831
+ }
832
+
833
+ }
834
+
835
+
836
+
837
+ export interface iSessions {
838
+ 'user_id'?: string;
839
+ 'user_ip'?: string;
840
+ 'session_id'?: string;
841
+ 'session_expires'?: string;
842
+ 'session_data'?: string;
843
+ 'user_online_status'?: number;
844
+ }
845
+
846
+ interface iDefineSessions {
847
+ 'USER_ID': string;
848
+ 'USER_IP': string;
849
+ 'SESSION_ID': string;
850
+ 'SESSION_EXPIRES': string;
851
+ 'SESSION_DATA': string;
852
+ 'USER_ONLINE_STATUS': string;
853
+ }
854
+
855
+ export const sessions : C6RestfulModel & iDefineSessions = {
856
+ TABLE_NAME:'sessions',
857
+ USER_ID: 'carbon_sessions.user_id',
858
+ USER_IP: 'carbon_sessions.user_ip',
859
+ SESSION_ID: 'carbon_sessions.session_id',
860
+ SESSION_EXPIRES: 'carbon_sessions.session_expires',
861
+ SESSION_DATA: 'carbon_sessions.session_data',
862
+ USER_ONLINE_STATUS: 'carbon_sessions.user_online_status',
863
+ PRIMARY: [
864
+ 'carbon_sessions.session_id',
865
+ ],
866
+ COLUMNS: {
867
+ 'carbon_sessions.user_id':'user_id',
868
+ 'carbon_sessions.user_ip':'user_ip',
869
+ 'carbon_sessions.session_id':'session_id',
870
+ 'carbon_sessions.session_expires':'session_expires',
871
+ 'carbon_sessions.session_data':'session_data',
872
+ 'carbon_sessions.user_online_status':'user_online_status',
873
+ },
874
+ TYPE_VALIDATION: {
875
+ 'carbon_sessions.user_id': {
876
+ MYSQL_TYPE: 'binary',
877
+ MAX_LENGTH: '16',
878
+ AUTO_INCREMENT: false,
879
+ SKIP_COLUMN_IN_POST: false
880
+ },
881
+ 'carbon_sessions.user_ip': {
882
+ MYSQL_TYPE: 'varchar',
883
+ MAX_LENGTH: '20',
884
+ AUTO_INCREMENT: false,
885
+ SKIP_COLUMN_IN_POST: true
886
+ },
887
+ 'carbon_sessions.session_id': {
888
+ MYSQL_TYPE: 'varchar',
889
+ MAX_LENGTH: '255',
890
+ AUTO_INCREMENT: false,
891
+ SKIP_COLUMN_IN_POST: false
892
+ },
893
+ 'carbon_sessions.session_expires': {
894
+ MYSQL_TYPE: 'datetime',
895
+ MAX_LENGTH: '',
896
+ AUTO_INCREMENT: false,
897
+ SKIP_COLUMN_IN_POST: false
898
+ },
899
+ 'carbon_sessions.session_data': {
900
+ MYSQL_TYPE: 'text',
901
+ MAX_LENGTH: '',
902
+ AUTO_INCREMENT: false,
903
+ SKIP_COLUMN_IN_POST: false
904
+ },
905
+ 'carbon_sessions.user_online_status': {
906
+ MYSQL_TYPE: 'tinyint',
907
+ MAX_LENGTH: '',
908
+ AUTO_INCREMENT: false,
909
+ SKIP_COLUMN_IN_POST: true
910
+ },
911
+ },
912
+ REGEX_VALIDATION: {
913
+ }
914
+
915
+ }
916
+
917
+
918
+
919
+ export interface iUser_Followers {
920
+ 'follower_table_id'?: string;
921
+ 'follows_user_id'?: string;
922
+ 'user_id'?: string;
923
+ }
924
+
925
+ interface iDefineUser_Followers {
926
+ 'FOLLOWER_TABLE_ID': string;
927
+ 'FOLLOWS_USER_ID': string;
928
+ 'USER_ID': string;
929
+ }
930
+
931
+ export const user_followers : C6RestfulModel & iDefineUser_Followers = {
932
+ TABLE_NAME:'user_followers',
933
+ FOLLOWER_TABLE_ID: 'carbon_user_followers.follower_table_id',
934
+ FOLLOWS_USER_ID: 'carbon_user_followers.follows_user_id',
935
+ USER_ID: 'carbon_user_followers.user_id',
936
+ PRIMARY: [
937
+ 'carbon_user_followers.follower_table_id',
938
+ ],
939
+ COLUMNS: {
940
+ 'carbon_user_followers.follower_table_id':'follower_table_id',
941
+ 'carbon_user_followers.follows_user_id':'follows_user_id',
942
+ 'carbon_user_followers.user_id':'user_id',
943
+ },
944
+ TYPE_VALIDATION: {
945
+ 'carbon_user_followers.follower_table_id': {
946
+ MYSQL_TYPE: 'binary',
947
+ MAX_LENGTH: '16',
948
+ AUTO_INCREMENT: false,
949
+ SKIP_COLUMN_IN_POST: false
950
+ },
951
+ 'carbon_user_followers.follows_user_id': {
952
+ MYSQL_TYPE: 'binary',
953
+ MAX_LENGTH: '16',
954
+ AUTO_INCREMENT: false,
955
+ SKIP_COLUMN_IN_POST: false
956
+ },
957
+ 'carbon_user_followers.user_id': {
958
+ MYSQL_TYPE: 'binary',
959
+ MAX_LENGTH: '16',
960
+ AUTO_INCREMENT: false,
961
+ SKIP_COLUMN_IN_POST: false
962
+ },
963
+ },
964
+ REGEX_VALIDATION: {
965
+ }
966
+
967
+ }
968
+
969
+
970
+
971
+ export interface iUser_Groups {
972
+ 'group_id'?: string;
973
+ 'user_id'?: string;
974
+ }
975
+
976
+ interface iDefineUser_Groups {
977
+ 'GROUP_ID': string;
978
+ 'USER_ID': string;
979
+ }
980
+
981
+ export const user_groups : C6RestfulModel & iDefineUser_Groups = {
982
+ TABLE_NAME:'user_groups',
983
+ GROUP_ID: 'carbon_user_groups.group_id',
984
+ USER_ID: 'carbon_user_groups.user_id',
985
+ PRIMARY: [
986
+ ],
987
+ COLUMNS: {
988
+ 'carbon_user_groups.group_id':'group_id',
989
+ 'carbon_user_groups.user_id':'user_id',
990
+ },
991
+ TYPE_VALIDATION: {
992
+ 'carbon_user_groups.group_id': {
993
+ MYSQL_TYPE: 'binary',
994
+ MAX_LENGTH: '16',
995
+ AUTO_INCREMENT: false,
996
+ SKIP_COLUMN_IN_POST: true
997
+ },
998
+ 'carbon_user_groups.user_id': {
999
+ MYSQL_TYPE: 'binary',
1000
+ MAX_LENGTH: '16',
1001
+ AUTO_INCREMENT: false,
1002
+ SKIP_COLUMN_IN_POST: true
1003
+ },
1004
+ },
1005
+ REGEX_VALIDATION: {
1006
+ }
1007
+
1008
+ }
1009
+
1010
+
1011
+
1012
+ export interface iUser_Messages {
1013
+ 'message_id'?: string;
1014
+ 'from_user_id'?: string;
1015
+ 'to_user_id'?: string;
1016
+ 'message'?: string;
1017
+ 'message_read'?: number;
1018
+ 'creation_date'?: string;
1019
+ }
1020
+
1021
+ interface iDefineUser_Messages {
1022
+ 'MESSAGE_ID': string;
1023
+ 'FROM_USER_ID': string;
1024
+ 'TO_USER_ID': string;
1025
+ 'MESSAGE': string;
1026
+ 'MESSAGE_READ': string;
1027
+ 'CREATION_DATE': string;
1028
+ }
1029
+
1030
+ export const user_messages : C6RestfulModel & iDefineUser_Messages = {
1031
+ TABLE_NAME:'user_messages',
1032
+ MESSAGE_ID: 'carbon_user_messages.message_id',
1033
+ FROM_USER_ID: 'carbon_user_messages.from_user_id',
1034
+ TO_USER_ID: 'carbon_user_messages.to_user_id',
1035
+ MESSAGE: 'carbon_user_messages.message',
1036
+ MESSAGE_READ: 'carbon_user_messages.message_read',
1037
+ CREATION_DATE: 'carbon_user_messages.creation_date',
1038
+ PRIMARY: [
1039
+ 'carbon_user_messages.message_id',
1040
+ ],
1041
+ COLUMNS: {
1042
+ 'carbon_user_messages.message_id':'message_id',
1043
+ 'carbon_user_messages.from_user_id':'from_user_id',
1044
+ 'carbon_user_messages.to_user_id':'to_user_id',
1045
+ 'carbon_user_messages.message':'message',
1046
+ 'carbon_user_messages.message_read':'message_read',
1047
+ 'carbon_user_messages.creation_date':'creation_date',
1048
+ },
1049
+ TYPE_VALIDATION: {
1050
+ 'carbon_user_messages.message_id': {
1051
+ MYSQL_TYPE: 'binary',
1052
+ MAX_LENGTH: '16',
1053
+ AUTO_INCREMENT: false,
1054
+ SKIP_COLUMN_IN_POST: false
1055
+ },
1056
+ 'carbon_user_messages.from_user_id': {
1057
+ MYSQL_TYPE: 'binary',
1058
+ MAX_LENGTH: '16',
1059
+ AUTO_INCREMENT: false,
1060
+ SKIP_COLUMN_IN_POST: false
1061
+ },
1062
+ 'carbon_user_messages.to_user_id': {
1063
+ MYSQL_TYPE: 'binary',
1064
+ MAX_LENGTH: '16',
1065
+ AUTO_INCREMENT: false,
1066
+ SKIP_COLUMN_IN_POST: false
1067
+ },
1068
+ 'carbon_user_messages.message': {
1069
+ MYSQL_TYPE: 'text',
1070
+ MAX_LENGTH: '',
1071
+ AUTO_INCREMENT: false,
1072
+ SKIP_COLUMN_IN_POST: false
1073
+ },
1074
+ 'carbon_user_messages.message_read': {
1075
+ MYSQL_TYPE: 'tinyint',
1076
+ MAX_LENGTH: '',
1077
+ AUTO_INCREMENT: false,
1078
+ SKIP_COLUMN_IN_POST: true
1079
+ },
1080
+ 'carbon_user_messages.creation_date': {
1081
+ MYSQL_TYPE: 'datetime',
1082
+ MAX_LENGTH: '',
1083
+ AUTO_INCREMENT: false,
1084
+ SKIP_COLUMN_IN_POST: true
1085
+ },
1086
+ },
1087
+ REGEX_VALIDATION: {
1088
+ }
1089
+
1090
+ }
1091
+
1092
+
1093
+
1094
+ export interface iUser_Sessions {
1095
+ 'user_id'?: string;
1096
+ 'user_ip'?: string;
1097
+ 'session_id'?: string;
1098
+ 'session_expires'?: string;
1099
+ 'session_data'?: string;
1100
+ 'user_online_status'?: number;
1101
+ }
1102
+
1103
+ interface iDefineUser_Sessions {
1104
+ 'USER_ID': string;
1105
+ 'USER_IP': string;
1106
+ 'SESSION_ID': string;
1107
+ 'SESSION_EXPIRES': string;
1108
+ 'SESSION_DATA': string;
1109
+ 'USER_ONLINE_STATUS': string;
1110
+ }
1111
+
1112
+ export const user_sessions : C6RestfulModel & iDefineUser_Sessions = {
1113
+ TABLE_NAME:'user_sessions',
1114
+ USER_ID: 'carbon_user_sessions.user_id',
1115
+ USER_IP: 'carbon_user_sessions.user_ip',
1116
+ SESSION_ID: 'carbon_user_sessions.session_id',
1117
+ SESSION_EXPIRES: 'carbon_user_sessions.session_expires',
1118
+ SESSION_DATA: 'carbon_user_sessions.session_data',
1119
+ USER_ONLINE_STATUS: 'carbon_user_sessions.user_online_status',
1120
+ PRIMARY: [
1121
+ 'carbon_user_sessions.session_id',
1122
+ ],
1123
+ COLUMNS: {
1124
+ 'carbon_user_sessions.user_id':'user_id',
1125
+ 'carbon_user_sessions.user_ip':'user_ip',
1126
+ 'carbon_user_sessions.session_id':'session_id',
1127
+ 'carbon_user_sessions.session_expires':'session_expires',
1128
+ 'carbon_user_sessions.session_data':'session_data',
1129
+ 'carbon_user_sessions.user_online_status':'user_online_status',
1130
+ },
1131
+ TYPE_VALIDATION: {
1132
+ 'carbon_user_sessions.user_id': {
1133
+ MYSQL_TYPE: 'binary',
1134
+ MAX_LENGTH: '16',
1135
+ AUTO_INCREMENT: false,
1136
+ SKIP_COLUMN_IN_POST: false
1137
+ },
1138
+ 'carbon_user_sessions.user_ip': {
1139
+ MYSQL_TYPE: 'binary',
1140
+ MAX_LENGTH: '16',
1141
+ AUTO_INCREMENT: false,
1142
+ SKIP_COLUMN_IN_POST: true
1143
+ },
1144
+ 'carbon_user_sessions.session_id': {
1145
+ MYSQL_TYPE: 'varchar',
1146
+ MAX_LENGTH: '255',
1147
+ AUTO_INCREMENT: false,
1148
+ SKIP_COLUMN_IN_POST: false
1149
+ },
1150
+ 'carbon_user_sessions.session_expires': {
1151
+ MYSQL_TYPE: 'datetime',
1152
+ MAX_LENGTH: '',
1153
+ AUTO_INCREMENT: false,
1154
+ SKIP_COLUMN_IN_POST: false
1155
+ },
1156
+ 'carbon_user_sessions.session_data': {
1157
+ MYSQL_TYPE: 'text',
1158
+ MAX_LENGTH: '',
1159
+ AUTO_INCREMENT: false,
1160
+ SKIP_COLUMN_IN_POST: false
1161
+ },
1162
+ 'carbon_user_sessions.user_online_status': {
1163
+ MYSQL_TYPE: 'tinyint',
1164
+ MAX_LENGTH: '',
1165
+ AUTO_INCREMENT: false,
1166
+ SKIP_COLUMN_IN_POST: true
1167
+ },
1168
+ },
1169
+ REGEX_VALIDATION: {
1170
+ }
1171
+
1172
+ }
1173
+
1174
+
1175
+
1176
+ export interface iUser_Tasks {
1177
+ 'task_id'?: string;
1178
+ 'user_id'?: string;
1179
+ 'from_id'?: string;
1180
+ 'task_name'?: string;
1181
+ 'task_description'?: string;
1182
+ 'percent_complete'?: number;
1183
+ 'start_date'?: string;
1184
+ 'end_date'?: string;
1185
+ }
1186
+
1187
+ interface iDefineUser_Tasks {
1188
+ 'TASK_ID': string;
1189
+ 'USER_ID': string;
1190
+ 'FROM_ID': string;
1191
+ 'TASK_NAME': string;
1192
+ 'TASK_DESCRIPTION': string;
1193
+ 'PERCENT_COMPLETE': string;
1194
+ 'START_DATE': string;
1195
+ 'END_DATE': string;
1196
+ }
1197
+
1198
+ export const user_tasks : C6RestfulModel & iDefineUser_Tasks = {
1199
+ TABLE_NAME:'user_tasks',
1200
+ TASK_ID: 'carbon_user_tasks.task_id',
1201
+ USER_ID: 'carbon_user_tasks.user_id',
1202
+ FROM_ID: 'carbon_user_tasks.from_id',
1203
+ TASK_NAME: 'carbon_user_tasks.task_name',
1204
+ TASK_DESCRIPTION: 'carbon_user_tasks.task_description',
1205
+ PERCENT_COMPLETE: 'carbon_user_tasks.percent_complete',
1206
+ START_DATE: 'carbon_user_tasks.start_date',
1207
+ END_DATE: 'carbon_user_tasks.end_date',
1208
+ PRIMARY: [
1209
+ 'carbon_user_tasks.task_id',
1210
+ ],
1211
+ COLUMNS: {
1212
+ 'carbon_user_tasks.task_id':'task_id',
1213
+ 'carbon_user_tasks.user_id':'user_id',
1214
+ 'carbon_user_tasks.from_id':'from_id',
1215
+ 'carbon_user_tasks.task_name':'task_name',
1216
+ 'carbon_user_tasks.task_description':'task_description',
1217
+ 'carbon_user_tasks.percent_complete':'percent_complete',
1218
+ 'carbon_user_tasks.start_date':'start_date',
1219
+ 'carbon_user_tasks.end_date':'end_date',
1220
+ },
1221
+ TYPE_VALIDATION: {
1222
+ 'carbon_user_tasks.task_id': {
1223
+ MYSQL_TYPE: 'binary',
1224
+ MAX_LENGTH: '16',
1225
+ AUTO_INCREMENT: false,
1226
+ SKIP_COLUMN_IN_POST: false
1227
+ },
1228
+ 'carbon_user_tasks.user_id': {
1229
+ MYSQL_TYPE: 'binary',
1230
+ MAX_LENGTH: '16',
1231
+ AUTO_INCREMENT: false,
1232
+ SKIP_COLUMN_IN_POST: false
1233
+ },
1234
+ 'carbon_user_tasks.from_id': {
1235
+ MYSQL_TYPE: 'binary',
1236
+ MAX_LENGTH: '16',
1237
+ AUTO_INCREMENT: false,
1238
+ SKIP_COLUMN_IN_POST: true
1239
+ },
1240
+ 'carbon_user_tasks.task_name': {
1241
+ MYSQL_TYPE: 'varchar',
1242
+ MAX_LENGTH: '40',
1243
+ AUTO_INCREMENT: false,
1244
+ SKIP_COLUMN_IN_POST: false
1245
+ },
1246
+ 'carbon_user_tasks.task_description': {
1247
+ MYSQL_TYPE: 'varchar',
1248
+ MAX_LENGTH: '225',
1249
+ AUTO_INCREMENT: false,
1250
+ SKIP_COLUMN_IN_POST: true
1251
+ },
1252
+ 'carbon_user_tasks.percent_complete': {
1253
+ MYSQL_TYPE: 'int',
1254
+ MAX_LENGTH: '',
1255
+ AUTO_INCREMENT: false,
1256
+ SKIP_COLUMN_IN_POST: true
1257
+ },
1258
+ 'carbon_user_tasks.start_date': {
1259
+ MYSQL_TYPE: 'datetime',
1260
+ MAX_LENGTH: '',
1261
+ AUTO_INCREMENT: false,
1262
+ SKIP_COLUMN_IN_POST: true
1263
+ },
1264
+ 'carbon_user_tasks.end_date': {
1265
+ MYSQL_TYPE: 'datetime',
1266
+ MAX_LENGTH: '',
1267
+ AUTO_INCREMENT: false,
1268
+ SKIP_COLUMN_IN_POST: true
1269
+ },
1270
+ },
1271
+ REGEX_VALIDATION: {
1272
+ }
1273
+
1274
+ }
1275
+
1276
+
1277
+
1278
+ export interface iUsers {
1279
+ 'user_username'?: string;
1280
+ 'user_password'?: string;
1281
+ 'user_id'?: string;
1282
+ 'user_type'?: string;
1283
+ 'user_sport'?: string;
1284
+ 'user_session_id'?: string;
1285
+ 'user_facebook_id'?: string;
1286
+ 'user_first_name'?: string;
1287
+ 'user_last_name'?: string;
1288
+ 'user_profile_pic'?: string;
1289
+ 'user_profile_uri'?: string;
1290
+ 'user_cover_photo'?: string;
1291
+ 'user_birthday'?: string;
1292
+ 'user_gender'?: string;
1293
+ 'user_about_me'?: string;
1294
+ 'user_rank'?: number;
1295
+ 'user_email'?: string;
1296
+ 'user_email_code'?: string;
1297
+ 'user_email_confirmed'?: number;
1298
+ 'user_generated_string'?: string;
1299
+ 'user_membership'?: number;
1300
+ 'user_deactivated'?: number;
1301
+ 'user_last_login'?: string;
1302
+ 'user_ip'?: string;
1303
+ 'user_education_history'?: string;
1304
+ 'user_location'?: string;
1305
+ 'user_creation_date'?: string;
1306
+ }
1307
+
1308
+ interface iDefineUsers {
1309
+ 'USER_USERNAME': string;
1310
+ 'USER_PASSWORD': string;
1311
+ 'USER_ID': string;
1312
+ 'USER_TYPE': string;
1313
+ 'USER_SPORT': string;
1314
+ 'USER_SESSION_ID': string;
1315
+ 'USER_FACEBOOK_ID': string;
1316
+ 'USER_FIRST_NAME': string;
1317
+ 'USER_LAST_NAME': string;
1318
+ 'USER_PROFILE_PIC': string;
1319
+ 'USER_PROFILE_URI': string;
1320
+ 'USER_COVER_PHOTO': string;
1321
+ 'USER_BIRTHDAY': string;
1322
+ 'USER_GENDER': string;
1323
+ 'USER_ABOUT_ME': string;
1324
+ 'USER_RANK': string;
1325
+ 'USER_EMAIL': string;
1326
+ 'USER_EMAIL_CODE': string;
1327
+ 'USER_EMAIL_CONFIRMED': string;
1328
+ 'USER_GENERATED_STRING': string;
1329
+ 'USER_MEMBERSHIP': string;
1330
+ 'USER_DEACTIVATED': string;
1331
+ 'USER_LAST_LOGIN': string;
1332
+ 'USER_IP': string;
1333
+ 'USER_EDUCATION_HISTORY': string;
1334
+ 'USER_LOCATION': string;
1335
+ 'USER_CREATION_DATE': string;
1336
+ }
1337
+
1338
+ export const users : C6RestfulModel & iDefineUsers = {
1339
+ TABLE_NAME:'users',
1340
+ USER_USERNAME: 'carbon_users.user_username',
1341
+ USER_PASSWORD: 'carbon_users.user_password',
1342
+ USER_ID: 'carbon_users.user_id',
1343
+ USER_TYPE: 'carbon_users.user_type',
1344
+ USER_SPORT: 'carbon_users.user_sport',
1345
+ USER_SESSION_ID: 'carbon_users.user_session_id',
1346
+ USER_FACEBOOK_ID: 'carbon_users.user_facebook_id',
1347
+ USER_FIRST_NAME: 'carbon_users.user_first_name',
1348
+ USER_LAST_NAME: 'carbon_users.user_last_name',
1349
+ USER_PROFILE_PIC: 'carbon_users.user_profile_pic',
1350
+ USER_PROFILE_URI: 'carbon_users.user_profile_uri',
1351
+ USER_COVER_PHOTO: 'carbon_users.user_cover_photo',
1352
+ USER_BIRTHDAY: 'carbon_users.user_birthday',
1353
+ USER_GENDER: 'carbon_users.user_gender',
1354
+ USER_ABOUT_ME: 'carbon_users.user_about_me',
1355
+ USER_RANK: 'carbon_users.user_rank',
1356
+ USER_EMAIL: 'carbon_users.user_email',
1357
+ USER_EMAIL_CODE: 'carbon_users.user_email_code',
1358
+ USER_EMAIL_CONFIRMED: 'carbon_users.user_email_confirmed',
1359
+ USER_GENERATED_STRING: 'carbon_users.user_generated_string',
1360
+ USER_MEMBERSHIP: 'carbon_users.user_membership',
1361
+ USER_DEACTIVATED: 'carbon_users.user_deactivated',
1362
+ USER_LAST_LOGIN: 'carbon_users.user_last_login',
1363
+ USER_IP: 'carbon_users.user_ip',
1364
+ USER_EDUCATION_HISTORY: 'carbon_users.user_education_history',
1365
+ USER_LOCATION: 'carbon_users.user_location',
1366
+ USER_CREATION_DATE: 'carbon_users.user_creation_date',
1367
+ PRIMARY: [
1368
+ 'carbon_users.user_id',
1369
+ ],
1370
+ COLUMNS: {
1371
+ 'carbon_users.user_username':'user_username',
1372
+ 'carbon_users.user_password':'user_password',
1373
+ 'carbon_users.user_id':'user_id',
1374
+ 'carbon_users.user_type':'user_type',
1375
+ 'carbon_users.user_sport':'user_sport',
1376
+ 'carbon_users.user_session_id':'user_session_id',
1377
+ 'carbon_users.user_facebook_id':'user_facebook_id',
1378
+ 'carbon_users.user_first_name':'user_first_name',
1379
+ 'carbon_users.user_last_name':'user_last_name',
1380
+ 'carbon_users.user_profile_pic':'user_profile_pic',
1381
+ 'carbon_users.user_profile_uri':'user_profile_uri',
1382
+ 'carbon_users.user_cover_photo':'user_cover_photo',
1383
+ 'carbon_users.user_birthday':'user_birthday',
1384
+ 'carbon_users.user_gender':'user_gender',
1385
+ 'carbon_users.user_about_me':'user_about_me',
1386
+ 'carbon_users.user_rank':'user_rank',
1387
+ 'carbon_users.user_email':'user_email',
1388
+ 'carbon_users.user_email_code':'user_email_code',
1389
+ 'carbon_users.user_email_confirmed':'user_email_confirmed',
1390
+ 'carbon_users.user_generated_string':'user_generated_string',
1391
+ 'carbon_users.user_membership':'user_membership',
1392
+ 'carbon_users.user_deactivated':'user_deactivated',
1393
+ 'carbon_users.user_last_login':'user_last_login',
1394
+ 'carbon_users.user_ip':'user_ip',
1395
+ 'carbon_users.user_education_history':'user_education_history',
1396
+ 'carbon_users.user_location':'user_location',
1397
+ 'carbon_users.user_creation_date':'user_creation_date',
1398
+ },
1399
+ TYPE_VALIDATION: {
1400
+ 'carbon_users.user_username': {
1401
+ MYSQL_TYPE: 'varchar',
1402
+ MAX_LENGTH: '100',
1403
+ AUTO_INCREMENT: false,
1404
+ SKIP_COLUMN_IN_POST: false
1405
+ },
1406
+ 'carbon_users.user_password': {
1407
+ MYSQL_TYPE: 'varchar',
1408
+ MAX_LENGTH: '225',
1409
+ AUTO_INCREMENT: false,
1410
+ SKIP_COLUMN_IN_POST: false
1411
+ },
1412
+ 'carbon_users.user_id': {
1413
+ MYSQL_TYPE: 'binary',
1414
+ MAX_LENGTH: '16',
1415
+ AUTO_INCREMENT: false,
1416
+ SKIP_COLUMN_IN_POST: false
1417
+ },
1418
+ 'carbon_users.user_type': {
1419
+ MYSQL_TYPE: 'varchar',
1420
+ MAX_LENGTH: '20',
1421
+ AUTO_INCREMENT: false,
1422
+ SKIP_COLUMN_IN_POST: true
1423
+ },
1424
+ 'carbon_users.user_sport': {
1425
+ MYSQL_TYPE: 'varchar',
1426
+ MAX_LENGTH: '20',
1427
+ AUTO_INCREMENT: false,
1428
+ SKIP_COLUMN_IN_POST: true
1429
+ },
1430
+ 'carbon_users.user_session_id': {
1431
+ MYSQL_TYPE: 'varchar',
1432
+ MAX_LENGTH: '225',
1433
+ AUTO_INCREMENT: false,
1434
+ SKIP_COLUMN_IN_POST: true
1435
+ },
1436
+ 'carbon_users.user_facebook_id': {
1437
+ MYSQL_TYPE: 'varchar',
1438
+ MAX_LENGTH: '225',
1439
+ AUTO_INCREMENT: false,
1440
+ SKIP_COLUMN_IN_POST: true
1441
+ },
1442
+ 'carbon_users.user_first_name': {
1443
+ MYSQL_TYPE: 'varchar',
1444
+ MAX_LENGTH: '25',
1445
+ AUTO_INCREMENT: false,
1446
+ SKIP_COLUMN_IN_POST: false
1447
+ },
1448
+ 'carbon_users.user_last_name': {
1449
+ MYSQL_TYPE: 'varchar',
1450
+ MAX_LENGTH: '25',
1451
+ AUTO_INCREMENT: false,
1452
+ SKIP_COLUMN_IN_POST: false
1453
+ },
1454
+ 'carbon_users.user_profile_pic': {
1455
+ MYSQL_TYPE: 'varchar',
1456
+ MAX_LENGTH: '225',
1457
+ AUTO_INCREMENT: false,
1458
+ SKIP_COLUMN_IN_POST: true
1459
+ },
1460
+ 'carbon_users.user_profile_uri': {
1461
+ MYSQL_TYPE: 'varchar',
1462
+ MAX_LENGTH: '225',
1463
+ AUTO_INCREMENT: false,
1464
+ SKIP_COLUMN_IN_POST: true
1465
+ },
1466
+ 'carbon_users.user_cover_photo': {
1467
+ MYSQL_TYPE: 'varchar',
1468
+ MAX_LENGTH: '225',
1469
+ AUTO_INCREMENT: false,
1470
+ SKIP_COLUMN_IN_POST: true
1471
+ },
1472
+ 'carbon_users.user_birthday': {
1473
+ MYSQL_TYPE: 'varchar',
1474
+ MAX_LENGTH: '9',
1475
+ AUTO_INCREMENT: false,
1476
+ SKIP_COLUMN_IN_POST: true
1477
+ },
1478
+ 'carbon_users.user_gender': {
1479
+ MYSQL_TYPE: 'varchar',
1480
+ MAX_LENGTH: '25',
1481
+ AUTO_INCREMENT: false,
1482
+ SKIP_COLUMN_IN_POST: true
1483
+ },
1484
+ 'carbon_users.user_about_me': {
1485
+ MYSQL_TYPE: 'varchar',
1486
+ MAX_LENGTH: '225',
1487
+ AUTO_INCREMENT: false,
1488
+ SKIP_COLUMN_IN_POST: true
1489
+ },
1490
+ 'carbon_users.user_rank': {
1491
+ MYSQL_TYPE: 'int',
1492
+ MAX_LENGTH: '',
1493
+ AUTO_INCREMENT: false,
1494
+ SKIP_COLUMN_IN_POST: true
1495
+ },
1496
+ 'carbon_users.user_email': {
1497
+ MYSQL_TYPE: 'varchar',
1498
+ MAX_LENGTH: '50',
1499
+ AUTO_INCREMENT: false,
1500
+ SKIP_COLUMN_IN_POST: false
1501
+ },
1502
+ 'carbon_users.user_email_code': {
1503
+ MYSQL_TYPE: 'varchar',
1504
+ MAX_LENGTH: '225',
1505
+ AUTO_INCREMENT: false,
1506
+ SKIP_COLUMN_IN_POST: true
1507
+ },
1508
+ 'carbon_users.user_email_confirmed': {
1509
+ MYSQL_TYPE: 'tinyint',
1510
+ MAX_LENGTH: '',
1511
+ AUTO_INCREMENT: false,
1512
+ SKIP_COLUMN_IN_POST: true
1513
+ },
1514
+ 'carbon_users.user_generated_string': {
1515
+ MYSQL_TYPE: 'varchar',
1516
+ MAX_LENGTH: '200',
1517
+ AUTO_INCREMENT: false,
1518
+ SKIP_COLUMN_IN_POST: true
1519
+ },
1520
+ 'carbon_users.user_membership': {
1521
+ MYSQL_TYPE: 'int',
1522
+ MAX_LENGTH: '',
1523
+ AUTO_INCREMENT: false,
1524
+ SKIP_COLUMN_IN_POST: true
1525
+ },
1526
+ 'carbon_users.user_deactivated': {
1527
+ MYSQL_TYPE: 'tinyint',
1528
+ MAX_LENGTH: '',
1529
+ AUTO_INCREMENT: false,
1530
+ SKIP_COLUMN_IN_POST: true
1531
+ },
1532
+ 'carbon_users.user_last_login': {
1533
+ MYSQL_TYPE: 'datetime',
1534
+ MAX_LENGTH: '',
1535
+ AUTO_INCREMENT: false,
1536
+ SKIP_COLUMN_IN_POST: true
1537
+ },
1538
+ 'carbon_users.user_ip': {
1539
+ MYSQL_TYPE: 'varchar',
1540
+ MAX_LENGTH: '20',
1541
+ AUTO_INCREMENT: false,
1542
+ SKIP_COLUMN_IN_POST: false
1543
+ },
1544
+ 'carbon_users.user_education_history': {
1545
+ MYSQL_TYPE: 'varchar',
1546
+ MAX_LENGTH: '200',
1547
+ AUTO_INCREMENT: false,
1548
+ SKIP_COLUMN_IN_POST: true
1549
+ },
1550
+ 'carbon_users.user_location': {
1551
+ MYSQL_TYPE: 'varchar',
1552
+ MAX_LENGTH: '20',
1553
+ AUTO_INCREMENT: false,
1554
+ SKIP_COLUMN_IN_POST: true
1555
+ },
1556
+ 'carbon_users.user_creation_date': {
1557
+ MYSQL_TYPE: 'datetime',
1558
+ MAX_LENGTH: '',
1559
+ AUTO_INCREMENT: false,
1560
+ SKIP_COLUMN_IN_POST: true
1561
+ },
1562
+ },
1563
+ REGEX_VALIDATION: {
1564
+ }
1565
+
1566
+ }
1567
+
1568
+
1569
+
1570
+ export interface iWp_Commentmeta {
1571
+ 'meta_id'?: number;
1572
+ 'comment_id'?: number;
1573
+ 'meta_key'?: string;
1574
+ 'meta_value'?: string;
1575
+ }
1576
+
1577
+ interface iDefineWp_Commentmeta {
1578
+ 'META_ID': string;
1579
+ 'COMMENT_ID': string;
1580
+ 'META_KEY': string;
1581
+ 'META_VALUE': string;
1582
+ }
1583
+
1584
+ export const wp_commentmeta : C6RestfulModel & iDefineWp_Commentmeta = {
1585
+ TABLE_NAME:'wp_commentmeta',
1586
+ META_ID: 'carbon_wp_commentmeta.meta_id',
1587
+ COMMENT_ID: 'carbon_wp_commentmeta.comment_id',
1588
+ META_KEY: 'carbon_wp_commentmeta.meta_key',
1589
+ META_VALUE: 'carbon_wp_commentmeta.meta_value',
1590
+ PRIMARY: [
1591
+ 'carbon_wp_commentmeta.meta_id',
1592
+ ],
1593
+ COLUMNS: {
1594
+ 'carbon_wp_commentmeta.meta_id':'meta_id',
1595
+ 'carbon_wp_commentmeta.comment_id':'comment_id',
1596
+ 'carbon_wp_commentmeta.meta_key':'meta_key',
1597
+ 'carbon_wp_commentmeta.meta_value':'meta_value',
1598
+ },
1599
+ TYPE_VALIDATION: {
1600
+ 'carbon_wp_commentmeta.meta_id': {
1601
+ MYSQL_TYPE: 'bigint unsigned',
1602
+ MAX_LENGTH: '',
1603
+ AUTO_INCREMENT: true,
1604
+ SKIP_COLUMN_IN_POST: true
1605
+ },
1606
+ 'carbon_wp_commentmeta.comment_id': {
1607
+ MYSQL_TYPE: 'bigint unsigned',
1608
+ MAX_LENGTH: '',
1609
+ AUTO_INCREMENT: false,
1610
+ SKIP_COLUMN_IN_POST: true
1611
+ },
1612
+ 'carbon_wp_commentmeta.meta_key': {
1613
+ MYSQL_TYPE: 'varchar',
1614
+ MAX_LENGTH: '255',
1615
+ AUTO_INCREMENT: false,
1616
+ SKIP_COLUMN_IN_POST: true
1617
+ },
1618
+ 'carbon_wp_commentmeta.meta_value': {
1619
+ MYSQL_TYPE: 'longtext',
1620
+ MAX_LENGTH: '',
1621
+ AUTO_INCREMENT: false,
1622
+ SKIP_COLUMN_IN_POST: false
1623
+ },
1624
+ },
1625
+ REGEX_VALIDATION: {
1626
+ }
1627
+
1628
+ }
1629
+
1630
+
1631
+
1632
+ export interface iWp_Comments {
1633
+ 'comment_ID'?: number;
1634
+ 'comment_post_ID'?: number;
1635
+ 'comment_author'?: string;
1636
+ 'comment_author_email'?: string;
1637
+ 'comment_author_url'?: string;
1638
+ 'comment_author_IP'?: string;
1639
+ 'comment_date'?: string;
1640
+ 'comment_date_gmt'?: string;
1641
+ 'comment_content'?: string;
1642
+ 'comment_karma'?: number;
1643
+ 'comment_approved'?: string;
1644
+ 'comment_agent'?: string;
1645
+ 'comment_type'?: string;
1646
+ 'comment_parent'?: number;
1647
+ 'user_id'?: number;
1648
+ }
1649
+
1650
+ interface iDefineWp_Comments {
1651
+ 'COMMENT_ID': string;
1652
+ 'COMMENT_POST_ID': string;
1653
+ 'COMMENT_AUTHOR': string;
1654
+ 'COMMENT_AUTHOR_EMAIL': string;
1655
+ 'COMMENT_AUTHOR_URL': string;
1656
+ 'COMMENT_AUTHOR_IP': string;
1657
+ 'COMMENT_DATE': string;
1658
+ 'COMMENT_DATE_GMT': string;
1659
+ 'COMMENT_CONTENT': string;
1660
+ 'COMMENT_KARMA': string;
1661
+ 'COMMENT_APPROVED': string;
1662
+ 'COMMENT_AGENT': string;
1663
+ 'COMMENT_TYPE': string;
1664
+ 'COMMENT_PARENT': string;
1665
+ 'USER_ID': string;
1666
+ }
1667
+
1668
+ export const wp_comments : C6RestfulModel & iDefineWp_Comments = {
1669
+ TABLE_NAME:'wp_comments',
1670
+ COMMENT_ID: 'carbon_wp_comments.comment_ID',
1671
+ COMMENT_POST_ID: 'carbon_wp_comments.comment_post_ID',
1672
+ COMMENT_AUTHOR: 'carbon_wp_comments.comment_author',
1673
+ COMMENT_AUTHOR_EMAIL: 'carbon_wp_comments.comment_author_email',
1674
+ COMMENT_AUTHOR_URL: 'carbon_wp_comments.comment_author_url',
1675
+ COMMENT_AUTHOR_IP: 'carbon_wp_comments.comment_author_IP',
1676
+ COMMENT_DATE: 'carbon_wp_comments.comment_date',
1677
+ COMMENT_DATE_GMT: 'carbon_wp_comments.comment_date_gmt',
1678
+ COMMENT_CONTENT: 'carbon_wp_comments.comment_content',
1679
+ COMMENT_KARMA: 'carbon_wp_comments.comment_karma',
1680
+ COMMENT_APPROVED: 'carbon_wp_comments.comment_approved',
1681
+ COMMENT_AGENT: 'carbon_wp_comments.comment_agent',
1682
+ COMMENT_TYPE: 'carbon_wp_comments.comment_type',
1683
+ COMMENT_PARENT: 'carbon_wp_comments.comment_parent',
1684
+ USER_ID: 'carbon_wp_comments.user_id',
1685
+ PRIMARY: [
1686
+ 'carbon_wp_comments.comment_ID',
1687
+ ],
1688
+ COLUMNS: {
1689
+ 'carbon_wp_comments.comment_ID':'comment_ID',
1690
+ 'carbon_wp_comments.comment_post_ID':'comment_post_ID',
1691
+ 'carbon_wp_comments.comment_author':'comment_author',
1692
+ 'carbon_wp_comments.comment_author_email':'comment_author_email',
1693
+ 'carbon_wp_comments.comment_author_url':'comment_author_url',
1694
+ 'carbon_wp_comments.comment_author_IP':'comment_author_IP',
1695
+ 'carbon_wp_comments.comment_date':'comment_date',
1696
+ 'carbon_wp_comments.comment_date_gmt':'comment_date_gmt',
1697
+ 'carbon_wp_comments.comment_content':'comment_content',
1698
+ 'carbon_wp_comments.comment_karma':'comment_karma',
1699
+ 'carbon_wp_comments.comment_approved':'comment_approved',
1700
+ 'carbon_wp_comments.comment_agent':'comment_agent',
1701
+ 'carbon_wp_comments.comment_type':'comment_type',
1702
+ 'carbon_wp_comments.comment_parent':'comment_parent',
1703
+ 'carbon_wp_comments.user_id':'user_id',
1704
+ },
1705
+ TYPE_VALIDATION: {
1706
+ 'carbon_wp_comments.comment_ID': {
1707
+ MYSQL_TYPE: 'bigint unsigned',
1708
+ MAX_LENGTH: '',
1709
+ AUTO_INCREMENT: true,
1710
+ SKIP_COLUMN_IN_POST: true
1711
+ },
1712
+ 'carbon_wp_comments.comment_post_ID': {
1713
+ MYSQL_TYPE: 'bigint unsigned',
1714
+ MAX_LENGTH: '',
1715
+ AUTO_INCREMENT: false,
1716
+ SKIP_COLUMN_IN_POST: true
1717
+ },
1718
+ 'carbon_wp_comments.comment_author': {
1719
+ MYSQL_TYPE: 'tinytext',
1720
+ MAX_LENGTH: '',
1721
+ AUTO_INCREMENT: false,
1722
+ SKIP_COLUMN_IN_POST: false
1723
+ },
1724
+ 'carbon_wp_comments.comment_author_email': {
1725
+ MYSQL_TYPE: 'varchar',
1726
+ MAX_LENGTH: '100',
1727
+ AUTO_INCREMENT: false,
1728
+ SKIP_COLUMN_IN_POST: true
1729
+ },
1730
+ 'carbon_wp_comments.comment_author_url': {
1731
+ MYSQL_TYPE: 'varchar',
1732
+ MAX_LENGTH: '200',
1733
+ AUTO_INCREMENT: false,
1734
+ SKIP_COLUMN_IN_POST: true
1735
+ },
1736
+ 'carbon_wp_comments.comment_author_IP': {
1737
+ MYSQL_TYPE: 'varchar',
1738
+ MAX_LENGTH: '100',
1739
+ AUTO_INCREMENT: false,
1740
+ SKIP_COLUMN_IN_POST: true
1741
+ },
1742
+ 'carbon_wp_comments.comment_date': {
1743
+ MYSQL_TYPE: 'datetime',
1744
+ MAX_LENGTH: '',
1745
+ AUTO_INCREMENT: false,
1746
+ SKIP_COLUMN_IN_POST: true
1747
+ },
1748
+ 'carbon_wp_comments.comment_date_gmt': {
1749
+ MYSQL_TYPE: 'datetime',
1750
+ MAX_LENGTH: '',
1751
+ AUTO_INCREMENT: false,
1752
+ SKIP_COLUMN_IN_POST: true
1753
+ },
1754
+ 'carbon_wp_comments.comment_content': {
1755
+ MYSQL_TYPE: 'text',
1756
+ MAX_LENGTH: '',
1757
+ AUTO_INCREMENT: false,
1758
+ SKIP_COLUMN_IN_POST: false
1759
+ },
1760
+ 'carbon_wp_comments.comment_karma': {
1761
+ MYSQL_TYPE: 'int',
1762
+ MAX_LENGTH: '',
1763
+ AUTO_INCREMENT: false,
1764
+ SKIP_COLUMN_IN_POST: true
1765
+ },
1766
+ 'carbon_wp_comments.comment_approved': {
1767
+ MYSQL_TYPE: 'varchar',
1768
+ MAX_LENGTH: '20',
1769
+ AUTO_INCREMENT: false,
1770
+ SKIP_COLUMN_IN_POST: true
1771
+ },
1772
+ 'carbon_wp_comments.comment_agent': {
1773
+ MYSQL_TYPE: 'varchar',
1774
+ MAX_LENGTH: '255',
1775
+ AUTO_INCREMENT: false,
1776
+ SKIP_COLUMN_IN_POST: true
1777
+ },
1778
+ 'carbon_wp_comments.comment_type': {
1779
+ MYSQL_TYPE: 'varchar',
1780
+ MAX_LENGTH: '20',
1781
+ AUTO_INCREMENT: false,
1782
+ SKIP_COLUMN_IN_POST: true
1783
+ },
1784
+ 'carbon_wp_comments.comment_parent': {
1785
+ MYSQL_TYPE: 'bigint unsigned',
1786
+ MAX_LENGTH: '',
1787
+ AUTO_INCREMENT: false,
1788
+ SKIP_COLUMN_IN_POST: true
1789
+ },
1790
+ 'carbon_wp_comments.user_id': {
1791
+ MYSQL_TYPE: 'bigint unsigned',
1792
+ MAX_LENGTH: '',
1793
+ AUTO_INCREMENT: false,
1794
+ SKIP_COLUMN_IN_POST: true
1795
+ },
1796
+ },
1797
+ REGEX_VALIDATION: {
1798
+ }
1799
+
1800
+ }
1801
+
1802
+
1803
+
1804
+ export interface iWp_Links {
1805
+ 'link_id'?: number;
1806
+ 'link_url'?: string;
1807
+ 'link_name'?: string;
1808
+ 'link_image'?: string;
1809
+ 'link_target'?: string;
1810
+ 'link_description'?: string;
1811
+ 'link_visible'?: string;
1812
+ 'link_owner'?: number;
1813
+ 'link_rating'?: number;
1814
+ 'link_updated'?: string;
1815
+ 'link_rel'?: string;
1816
+ 'link_notes'?: string;
1817
+ 'link_rss'?: string;
1818
+ }
1819
+
1820
+ interface iDefineWp_Links {
1821
+ 'LINK_ID': string;
1822
+ 'LINK_URL': string;
1823
+ 'LINK_NAME': string;
1824
+ 'LINK_IMAGE': string;
1825
+ 'LINK_TARGET': string;
1826
+ 'LINK_DESCRIPTION': string;
1827
+ 'LINK_VISIBLE': string;
1828
+ 'LINK_OWNER': string;
1829
+ 'LINK_RATING': string;
1830
+ 'LINK_UPDATED': string;
1831
+ 'LINK_REL': string;
1832
+ 'LINK_NOTES': string;
1833
+ 'LINK_RSS': string;
1834
+ }
1835
+
1836
+ export const wp_links : C6RestfulModel & iDefineWp_Links = {
1837
+ TABLE_NAME:'wp_links',
1838
+ LINK_ID: 'carbon_wp_links.link_id',
1839
+ LINK_URL: 'carbon_wp_links.link_url',
1840
+ LINK_NAME: 'carbon_wp_links.link_name',
1841
+ LINK_IMAGE: 'carbon_wp_links.link_image',
1842
+ LINK_TARGET: 'carbon_wp_links.link_target',
1843
+ LINK_DESCRIPTION: 'carbon_wp_links.link_description',
1844
+ LINK_VISIBLE: 'carbon_wp_links.link_visible',
1845
+ LINK_OWNER: 'carbon_wp_links.link_owner',
1846
+ LINK_RATING: 'carbon_wp_links.link_rating',
1847
+ LINK_UPDATED: 'carbon_wp_links.link_updated',
1848
+ LINK_REL: 'carbon_wp_links.link_rel',
1849
+ LINK_NOTES: 'carbon_wp_links.link_notes',
1850
+ LINK_RSS: 'carbon_wp_links.link_rss',
1851
+ PRIMARY: [
1852
+ 'carbon_wp_links.link_id',
1853
+ ],
1854
+ COLUMNS: {
1855
+ 'carbon_wp_links.link_id':'link_id',
1856
+ 'carbon_wp_links.link_url':'link_url',
1857
+ 'carbon_wp_links.link_name':'link_name',
1858
+ 'carbon_wp_links.link_image':'link_image',
1859
+ 'carbon_wp_links.link_target':'link_target',
1860
+ 'carbon_wp_links.link_description':'link_description',
1861
+ 'carbon_wp_links.link_visible':'link_visible',
1862
+ 'carbon_wp_links.link_owner':'link_owner',
1863
+ 'carbon_wp_links.link_rating':'link_rating',
1864
+ 'carbon_wp_links.link_updated':'link_updated',
1865
+ 'carbon_wp_links.link_rel':'link_rel',
1866
+ 'carbon_wp_links.link_notes':'link_notes',
1867
+ 'carbon_wp_links.link_rss':'link_rss',
1868
+ },
1869
+ TYPE_VALIDATION: {
1870
+ 'carbon_wp_links.link_id': {
1871
+ MYSQL_TYPE: 'bigint unsigned',
1872
+ MAX_LENGTH: '',
1873
+ AUTO_INCREMENT: true,
1874
+ SKIP_COLUMN_IN_POST: true
1875
+ },
1876
+ 'carbon_wp_links.link_url': {
1877
+ MYSQL_TYPE: 'varchar',
1878
+ MAX_LENGTH: '255',
1879
+ AUTO_INCREMENT: false,
1880
+ SKIP_COLUMN_IN_POST: true
1881
+ },
1882
+ 'carbon_wp_links.link_name': {
1883
+ MYSQL_TYPE: 'varchar',
1884
+ MAX_LENGTH: '255',
1885
+ AUTO_INCREMENT: false,
1886
+ SKIP_COLUMN_IN_POST: true
1887
+ },
1888
+ 'carbon_wp_links.link_image': {
1889
+ MYSQL_TYPE: 'varchar',
1890
+ MAX_LENGTH: '255',
1891
+ AUTO_INCREMENT: false,
1892
+ SKIP_COLUMN_IN_POST: true
1893
+ },
1894
+ 'carbon_wp_links.link_target': {
1895
+ MYSQL_TYPE: 'varchar',
1896
+ MAX_LENGTH: '25',
1897
+ AUTO_INCREMENT: false,
1898
+ SKIP_COLUMN_IN_POST: true
1899
+ },
1900
+ 'carbon_wp_links.link_description': {
1901
+ MYSQL_TYPE: 'varchar',
1902
+ MAX_LENGTH: '255',
1903
+ AUTO_INCREMENT: false,
1904
+ SKIP_COLUMN_IN_POST: true
1905
+ },
1906
+ 'carbon_wp_links.link_visible': {
1907
+ MYSQL_TYPE: 'varchar',
1908
+ MAX_LENGTH: '20',
1909
+ AUTO_INCREMENT: false,
1910
+ SKIP_COLUMN_IN_POST: true
1911
+ },
1912
+ 'carbon_wp_links.link_owner': {
1913
+ MYSQL_TYPE: 'bigint unsigned',
1914
+ MAX_LENGTH: '',
1915
+ AUTO_INCREMENT: false,
1916
+ SKIP_COLUMN_IN_POST: true
1917
+ },
1918
+ 'carbon_wp_links.link_rating': {
1919
+ MYSQL_TYPE: 'int',
1920
+ MAX_LENGTH: '',
1921
+ AUTO_INCREMENT: false,
1922
+ SKIP_COLUMN_IN_POST: true
1923
+ },
1924
+ 'carbon_wp_links.link_updated': {
1925
+ MYSQL_TYPE: 'datetime',
1926
+ MAX_LENGTH: '',
1927
+ AUTO_INCREMENT: false,
1928
+ SKIP_COLUMN_IN_POST: true
1929
+ },
1930
+ 'carbon_wp_links.link_rel': {
1931
+ MYSQL_TYPE: 'varchar',
1932
+ MAX_LENGTH: '255',
1933
+ AUTO_INCREMENT: false,
1934
+ SKIP_COLUMN_IN_POST: true
1935
+ },
1936
+ 'carbon_wp_links.link_notes': {
1937
+ MYSQL_TYPE: 'mediumtext',
1938
+ MAX_LENGTH: '',
1939
+ AUTO_INCREMENT: false,
1940
+ SKIP_COLUMN_IN_POST: false
1941
+ },
1942
+ 'carbon_wp_links.link_rss': {
1943
+ MYSQL_TYPE: 'varchar',
1944
+ MAX_LENGTH: '255',
1945
+ AUTO_INCREMENT: false,
1946
+ SKIP_COLUMN_IN_POST: true
1947
+ },
1948
+ },
1949
+ REGEX_VALIDATION: {
1950
+ }
1951
+
1952
+ }
1953
+
1954
+
1955
+
1956
+ export interface iWp_Options {
1957
+ 'option_id'?: number;
1958
+ 'option_name'?: string;
1959
+ 'option_value'?: string;
1960
+ 'autoload'?: string;
1961
+ }
1962
+
1963
+ interface iDefineWp_Options {
1964
+ 'OPTION_ID': string;
1965
+ 'OPTION_NAME': string;
1966
+ 'OPTION_VALUE': string;
1967
+ 'AUTOLOAD': string;
1968
+ }
1969
+
1970
+ export const wp_options : C6RestfulModel & iDefineWp_Options = {
1971
+ TABLE_NAME:'wp_options',
1972
+ OPTION_ID: 'carbon_wp_options.option_id',
1973
+ OPTION_NAME: 'carbon_wp_options.option_name',
1974
+ OPTION_VALUE: 'carbon_wp_options.option_value',
1975
+ AUTOLOAD: 'carbon_wp_options.autoload',
1976
+ PRIMARY: [
1977
+ 'carbon_wp_options.option_id',
1978
+ ],
1979
+ COLUMNS: {
1980
+ 'carbon_wp_options.option_id':'option_id',
1981
+ 'carbon_wp_options.option_name':'option_name',
1982
+ 'carbon_wp_options.option_value':'option_value',
1983
+ 'carbon_wp_options.autoload':'autoload',
1984
+ },
1985
+ TYPE_VALIDATION: {
1986
+ 'carbon_wp_options.option_id': {
1987
+ MYSQL_TYPE: 'bigint unsigned',
1988
+ MAX_LENGTH: '',
1989
+ AUTO_INCREMENT: true,
1990
+ SKIP_COLUMN_IN_POST: true
1991
+ },
1992
+ 'carbon_wp_options.option_name': {
1993
+ MYSQL_TYPE: 'varchar',
1994
+ MAX_LENGTH: '191',
1995
+ AUTO_INCREMENT: false,
1996
+ SKIP_COLUMN_IN_POST: true
1997
+ },
1998
+ 'carbon_wp_options.option_value': {
1999
+ MYSQL_TYPE: 'longtext',
2000
+ MAX_LENGTH: '',
2001
+ AUTO_INCREMENT: false,
2002
+ SKIP_COLUMN_IN_POST: false
2003
+ },
2004
+ 'carbon_wp_options.autoload': {
2005
+ MYSQL_TYPE: 'varchar',
2006
+ MAX_LENGTH: '20',
2007
+ AUTO_INCREMENT: false,
2008
+ SKIP_COLUMN_IN_POST: true
2009
+ },
2010
+ },
2011
+ REGEX_VALIDATION: {
2012
+ }
2013
+
2014
+ }
2015
+
2016
+
2017
+
2018
+ export interface iWp_Postmeta {
2019
+ 'meta_id'?: number;
2020
+ 'post_id'?: number;
2021
+ 'meta_key'?: string;
2022
+ 'meta_value'?: string;
2023
+ }
2024
+
2025
+ interface iDefineWp_Postmeta {
2026
+ 'META_ID': string;
2027
+ 'POST_ID': string;
2028
+ 'META_KEY': string;
2029
+ 'META_VALUE': string;
2030
+ }
2031
+
2032
+ export const wp_postmeta : C6RestfulModel & iDefineWp_Postmeta = {
2033
+ TABLE_NAME:'wp_postmeta',
2034
+ META_ID: 'carbon_wp_postmeta.meta_id',
2035
+ POST_ID: 'carbon_wp_postmeta.post_id',
2036
+ META_KEY: 'carbon_wp_postmeta.meta_key',
2037
+ META_VALUE: 'carbon_wp_postmeta.meta_value',
2038
+ PRIMARY: [
2039
+ 'carbon_wp_postmeta.meta_id',
2040
+ ],
2041
+ COLUMNS: {
2042
+ 'carbon_wp_postmeta.meta_id':'meta_id',
2043
+ 'carbon_wp_postmeta.post_id':'post_id',
2044
+ 'carbon_wp_postmeta.meta_key':'meta_key',
2045
+ 'carbon_wp_postmeta.meta_value':'meta_value',
2046
+ },
2047
+ TYPE_VALIDATION: {
2048
+ 'carbon_wp_postmeta.meta_id': {
2049
+ MYSQL_TYPE: 'bigint unsigned',
2050
+ MAX_LENGTH: '',
2051
+ AUTO_INCREMENT: true,
2052
+ SKIP_COLUMN_IN_POST: true
2053
+ },
2054
+ 'carbon_wp_postmeta.post_id': {
2055
+ MYSQL_TYPE: 'bigint unsigned',
2056
+ MAX_LENGTH: '',
2057
+ AUTO_INCREMENT: false,
2058
+ SKIP_COLUMN_IN_POST: true
2059
+ },
2060
+ 'carbon_wp_postmeta.meta_key': {
2061
+ MYSQL_TYPE: 'varchar',
2062
+ MAX_LENGTH: '255',
2063
+ AUTO_INCREMENT: false,
2064
+ SKIP_COLUMN_IN_POST: true
2065
+ },
2066
+ 'carbon_wp_postmeta.meta_value': {
2067
+ MYSQL_TYPE: 'longtext',
2068
+ MAX_LENGTH: '',
2069
+ AUTO_INCREMENT: false,
2070
+ SKIP_COLUMN_IN_POST: false
2071
+ },
2072
+ },
2073
+ REGEX_VALIDATION: {
2074
+ }
2075
+
2076
+ }
2077
+
2078
+
2079
+
2080
+ export interface iWp_Posts {
2081
+ 'ID'?: number;
2082
+ 'post_author'?: number;
2083
+ 'post_date'?: string;
2084
+ 'post_date_gmt'?: string;
2085
+ 'post_content'?: string;
2086
+ 'post_title'?: string;
2087
+ 'post_excerpt'?: string;
2088
+ 'post_status'?: string;
2089
+ 'comment_status'?: string;
2090
+ 'ping_status'?: string;
2091
+ 'post_password'?: string;
2092
+ 'post_name'?: string;
2093
+ 'to_ping'?: string;
2094
+ 'pinged'?: string;
2095
+ 'post_modified'?: string;
2096
+ 'post_modified_gmt'?: string;
2097
+ 'post_content_filtered'?: string;
2098
+ 'post_parent'?: number;
2099
+ 'guid'?: string;
2100
+ 'menu_order'?: number;
2101
+ 'post_type'?: string;
2102
+ 'post_mime_type'?: string;
2103
+ 'comment_count'?: number;
2104
+ }
2105
+
2106
+ interface iDefineWp_Posts {
2107
+ 'ID': string;
2108
+ 'POST_AUTHOR': string;
2109
+ 'POST_DATE': string;
2110
+ 'POST_DATE_GMT': string;
2111
+ 'POST_CONTENT': string;
2112
+ 'POST_TITLE': string;
2113
+ 'POST_EXCERPT': string;
2114
+ 'POST_STATUS': string;
2115
+ 'COMMENT_STATUS': string;
2116
+ 'PING_STATUS': string;
2117
+ 'POST_PASSWORD': string;
2118
+ 'POST_NAME': string;
2119
+ 'TO_PING': string;
2120
+ 'PINGED': string;
2121
+ 'POST_MODIFIED': string;
2122
+ 'POST_MODIFIED_GMT': string;
2123
+ 'POST_CONTENT_FILTERED': string;
2124
+ 'POST_PARENT': string;
2125
+ 'GUID': string;
2126
+ 'MENU_ORDER': string;
2127
+ 'POST_TYPE': string;
2128
+ 'POST_MIME_TYPE': string;
2129
+ 'COMMENT_COUNT': string;
2130
+ }
2131
+
2132
+ export const wp_posts : C6RestfulModel & iDefineWp_Posts = {
2133
+ TABLE_NAME:'wp_posts',
2134
+ ID: 'carbon_wp_posts.ID',
2135
+ POST_AUTHOR: 'carbon_wp_posts.post_author',
2136
+ POST_DATE: 'carbon_wp_posts.post_date',
2137
+ POST_DATE_GMT: 'carbon_wp_posts.post_date_gmt',
2138
+ POST_CONTENT: 'carbon_wp_posts.post_content',
2139
+ POST_TITLE: 'carbon_wp_posts.post_title',
2140
+ POST_EXCERPT: 'carbon_wp_posts.post_excerpt',
2141
+ POST_STATUS: 'carbon_wp_posts.post_status',
2142
+ COMMENT_STATUS: 'carbon_wp_posts.comment_status',
2143
+ PING_STATUS: 'carbon_wp_posts.ping_status',
2144
+ POST_PASSWORD: 'carbon_wp_posts.post_password',
2145
+ POST_NAME: 'carbon_wp_posts.post_name',
2146
+ TO_PING: 'carbon_wp_posts.to_ping',
2147
+ PINGED: 'carbon_wp_posts.pinged',
2148
+ POST_MODIFIED: 'carbon_wp_posts.post_modified',
2149
+ POST_MODIFIED_GMT: 'carbon_wp_posts.post_modified_gmt',
2150
+ POST_CONTENT_FILTERED: 'carbon_wp_posts.post_content_filtered',
2151
+ POST_PARENT: 'carbon_wp_posts.post_parent',
2152
+ GUID: 'carbon_wp_posts.guid',
2153
+ MENU_ORDER: 'carbon_wp_posts.menu_order',
2154
+ POST_TYPE: 'carbon_wp_posts.post_type',
2155
+ POST_MIME_TYPE: 'carbon_wp_posts.post_mime_type',
2156
+ COMMENT_COUNT: 'carbon_wp_posts.comment_count',
2157
+ PRIMARY: [
2158
+ 'carbon_wp_posts.ID',
2159
+ ],
2160
+ COLUMNS: {
2161
+ 'carbon_wp_posts.ID':'ID',
2162
+ 'carbon_wp_posts.post_author':'post_author',
2163
+ 'carbon_wp_posts.post_date':'post_date',
2164
+ 'carbon_wp_posts.post_date_gmt':'post_date_gmt',
2165
+ 'carbon_wp_posts.post_content':'post_content',
2166
+ 'carbon_wp_posts.post_title':'post_title',
2167
+ 'carbon_wp_posts.post_excerpt':'post_excerpt',
2168
+ 'carbon_wp_posts.post_status':'post_status',
2169
+ 'carbon_wp_posts.comment_status':'comment_status',
2170
+ 'carbon_wp_posts.ping_status':'ping_status',
2171
+ 'carbon_wp_posts.post_password':'post_password',
2172
+ 'carbon_wp_posts.post_name':'post_name',
2173
+ 'carbon_wp_posts.to_ping':'to_ping',
2174
+ 'carbon_wp_posts.pinged':'pinged',
2175
+ 'carbon_wp_posts.post_modified':'post_modified',
2176
+ 'carbon_wp_posts.post_modified_gmt':'post_modified_gmt',
2177
+ 'carbon_wp_posts.post_content_filtered':'post_content_filtered',
2178
+ 'carbon_wp_posts.post_parent':'post_parent',
2179
+ 'carbon_wp_posts.guid':'guid',
2180
+ 'carbon_wp_posts.menu_order':'menu_order',
2181
+ 'carbon_wp_posts.post_type':'post_type',
2182
+ 'carbon_wp_posts.post_mime_type':'post_mime_type',
2183
+ 'carbon_wp_posts.comment_count':'comment_count',
2184
+ },
2185
+ TYPE_VALIDATION: {
2186
+ 'carbon_wp_posts.ID': {
2187
+ MYSQL_TYPE: 'bigint unsigned',
2188
+ MAX_LENGTH: '',
2189
+ AUTO_INCREMENT: true,
2190
+ SKIP_COLUMN_IN_POST: true
2191
+ },
2192
+ 'carbon_wp_posts.post_author': {
2193
+ MYSQL_TYPE: 'bigint unsigned',
2194
+ MAX_LENGTH: '',
2195
+ AUTO_INCREMENT: false,
2196
+ SKIP_COLUMN_IN_POST: true
2197
+ },
2198
+ 'carbon_wp_posts.post_date': {
2199
+ MYSQL_TYPE: 'datetime',
2200
+ MAX_LENGTH: '',
2201
+ AUTO_INCREMENT: false,
2202
+ SKIP_COLUMN_IN_POST: true
2203
+ },
2204
+ 'carbon_wp_posts.post_date_gmt': {
2205
+ MYSQL_TYPE: 'datetime',
2206
+ MAX_LENGTH: '',
2207
+ AUTO_INCREMENT: false,
2208
+ SKIP_COLUMN_IN_POST: true
2209
+ },
2210
+ 'carbon_wp_posts.post_content': {
2211
+ MYSQL_TYPE: 'longtext',
2212
+ MAX_LENGTH: '',
2213
+ AUTO_INCREMENT: false,
2214
+ SKIP_COLUMN_IN_POST: false
2215
+ },
2216
+ 'carbon_wp_posts.post_title': {
2217
+ MYSQL_TYPE: 'text',
2218
+ MAX_LENGTH: '',
2219
+ AUTO_INCREMENT: false,
2220
+ SKIP_COLUMN_IN_POST: false
2221
+ },
2222
+ 'carbon_wp_posts.post_excerpt': {
2223
+ MYSQL_TYPE: 'text',
2224
+ MAX_LENGTH: '',
2225
+ AUTO_INCREMENT: false,
2226
+ SKIP_COLUMN_IN_POST: false
2227
+ },
2228
+ 'carbon_wp_posts.post_status': {
2229
+ MYSQL_TYPE: 'varchar',
2230
+ MAX_LENGTH: '20',
2231
+ AUTO_INCREMENT: false,
2232
+ SKIP_COLUMN_IN_POST: true
2233
+ },
2234
+ 'carbon_wp_posts.comment_status': {
2235
+ MYSQL_TYPE: 'varchar',
2236
+ MAX_LENGTH: '20',
2237
+ AUTO_INCREMENT: false,
2238
+ SKIP_COLUMN_IN_POST: true
2239
+ },
2240
+ 'carbon_wp_posts.ping_status': {
2241
+ MYSQL_TYPE: 'varchar',
2242
+ MAX_LENGTH: '20',
2243
+ AUTO_INCREMENT: false,
2244
+ SKIP_COLUMN_IN_POST: true
2245
+ },
2246
+ 'carbon_wp_posts.post_password': {
2247
+ MYSQL_TYPE: 'varchar',
2248
+ MAX_LENGTH: '255',
2249
+ AUTO_INCREMENT: false,
2250
+ SKIP_COLUMN_IN_POST: true
2251
+ },
2252
+ 'carbon_wp_posts.post_name': {
2253
+ MYSQL_TYPE: 'varchar',
2254
+ MAX_LENGTH: '200',
2255
+ AUTO_INCREMENT: false,
2256
+ SKIP_COLUMN_IN_POST: true
2257
+ },
2258
+ 'carbon_wp_posts.to_ping': {
2259
+ MYSQL_TYPE: 'text',
2260
+ MAX_LENGTH: '',
2261
+ AUTO_INCREMENT: false,
2262
+ SKIP_COLUMN_IN_POST: false
2263
+ },
2264
+ 'carbon_wp_posts.pinged': {
2265
+ MYSQL_TYPE: 'text',
2266
+ MAX_LENGTH: '',
2267
+ AUTO_INCREMENT: false,
2268
+ SKIP_COLUMN_IN_POST: false
2269
+ },
2270
+ 'carbon_wp_posts.post_modified': {
2271
+ MYSQL_TYPE: 'datetime',
2272
+ MAX_LENGTH: '',
2273
+ AUTO_INCREMENT: false,
2274
+ SKIP_COLUMN_IN_POST: true
2275
+ },
2276
+ 'carbon_wp_posts.post_modified_gmt': {
2277
+ MYSQL_TYPE: 'datetime',
2278
+ MAX_LENGTH: '',
2279
+ AUTO_INCREMENT: false,
2280
+ SKIP_COLUMN_IN_POST: true
2281
+ },
2282
+ 'carbon_wp_posts.post_content_filtered': {
2283
+ MYSQL_TYPE: 'longtext',
2284
+ MAX_LENGTH: '',
2285
+ AUTO_INCREMENT: false,
2286
+ SKIP_COLUMN_IN_POST: false
2287
+ },
2288
+ 'carbon_wp_posts.post_parent': {
2289
+ MYSQL_TYPE: 'bigint unsigned',
2290
+ MAX_LENGTH: '',
2291
+ AUTO_INCREMENT: false,
2292
+ SKIP_COLUMN_IN_POST: true
2293
+ },
2294
+ 'carbon_wp_posts.guid': {
2295
+ MYSQL_TYPE: 'varchar',
2296
+ MAX_LENGTH: '255',
2297
+ AUTO_INCREMENT: false,
2298
+ SKIP_COLUMN_IN_POST: true
2299
+ },
2300
+ 'carbon_wp_posts.menu_order': {
2301
+ MYSQL_TYPE: 'int',
2302
+ MAX_LENGTH: '',
2303
+ AUTO_INCREMENT: false,
2304
+ SKIP_COLUMN_IN_POST: true
2305
+ },
2306
+ 'carbon_wp_posts.post_type': {
2307
+ MYSQL_TYPE: 'varchar',
2308
+ MAX_LENGTH: '20',
2309
+ AUTO_INCREMENT: false,
2310
+ SKIP_COLUMN_IN_POST: true
2311
+ },
2312
+ 'carbon_wp_posts.post_mime_type': {
2313
+ MYSQL_TYPE: 'varchar',
2314
+ MAX_LENGTH: '100',
2315
+ AUTO_INCREMENT: false,
2316
+ SKIP_COLUMN_IN_POST: true
2317
+ },
2318
+ 'carbon_wp_posts.comment_count': {
2319
+ MYSQL_TYPE: 'bigint',
2320
+ MAX_LENGTH: '',
2321
+ AUTO_INCREMENT: false,
2322
+ SKIP_COLUMN_IN_POST: true
2323
+ },
2324
+ },
2325
+ REGEX_VALIDATION: {
2326
+ }
2327
+
2328
+ }
2329
+
2330
+
2331
+
2332
+ export interface iWp_Term_Relationships {
2333
+ 'object_id'?: number;
2334
+ 'term_taxonomy_id'?: number;
2335
+ 'term_order'?: number;
2336
+ }
2337
+
2338
+ interface iDefineWp_Term_Relationships {
2339
+ 'OBJECT_ID': string;
2340
+ 'TERM_TAXONOMY_ID': string;
2341
+ 'TERM_ORDER': string;
2342
+ }
2343
+
2344
+ export const wp_term_relationships : C6RestfulModel & iDefineWp_Term_Relationships = {
2345
+ TABLE_NAME:'wp_term_relationships',
2346
+ OBJECT_ID: 'carbon_wp_term_relationships.object_id',
2347
+ TERM_TAXONOMY_ID: 'carbon_wp_term_relationships.term_taxonomy_id',
2348
+ TERM_ORDER: 'carbon_wp_term_relationships.term_order',
2349
+ PRIMARY: [
2350
+ 'carbon_wp_term_relationships.object_id',
2351
+ 'carbon_wp_term_relationships.term_taxonomy_id',
2352
+ ],
2353
+ COLUMNS: {
2354
+ 'carbon_wp_term_relationships.object_id':'object_id',
2355
+ 'carbon_wp_term_relationships.term_taxonomy_id':'term_taxonomy_id',
2356
+ 'carbon_wp_term_relationships.term_order':'term_order',
2357
+ },
2358
+ TYPE_VALIDATION: {
2359
+ 'carbon_wp_term_relationships.object_id': {
2360
+ MYSQL_TYPE: 'bigint unsigned',
2361
+ MAX_LENGTH: '',
2362
+ AUTO_INCREMENT: false,
2363
+ SKIP_COLUMN_IN_POST: true
2364
+ },
2365
+ 'carbon_wp_term_relationships.term_taxonomy_id': {
2366
+ MYSQL_TYPE: 'bigint unsigned',
2367
+ MAX_LENGTH: '',
2368
+ AUTO_INCREMENT: false,
2369
+ SKIP_COLUMN_IN_POST: true
2370
+ },
2371
+ 'carbon_wp_term_relationships.term_order': {
2372
+ MYSQL_TYPE: 'int',
2373
+ MAX_LENGTH: '',
2374
+ AUTO_INCREMENT: false,
2375
+ SKIP_COLUMN_IN_POST: true
2376
+ },
2377
+ },
2378
+ REGEX_VALIDATION: {
2379
+ }
2380
+
2381
+ }
2382
+
2383
+
2384
+
2385
+ export interface iWp_Term_Taxonomy {
2386
+ 'term_taxonomy_id'?: number;
2387
+ 'term_id'?: number;
2388
+ 'taxonomy'?: string;
2389
+ 'description'?: string;
2390
+ 'parent'?: number;
2391
+ 'count'?: number;
2392
+ }
2393
+
2394
+ interface iDefineWp_Term_Taxonomy {
2395
+ 'TERM_TAXONOMY_ID': string;
2396
+ 'TERM_ID': string;
2397
+ 'TAXONOMY': string;
2398
+ 'DESCRIPTION': string;
2399
+ 'PARENT': string;
2400
+ 'COUNT': string;
2401
+ }
2402
+
2403
+ export const wp_term_taxonomy : C6RestfulModel & iDefineWp_Term_Taxonomy = {
2404
+ TABLE_NAME:'wp_term_taxonomy',
2405
+ TERM_TAXONOMY_ID: 'carbon_wp_term_taxonomy.term_taxonomy_id',
2406
+ TERM_ID: 'carbon_wp_term_taxonomy.term_id',
2407
+ TAXONOMY: 'carbon_wp_term_taxonomy.taxonomy',
2408
+ DESCRIPTION: 'carbon_wp_term_taxonomy.description',
2409
+ PARENT: 'carbon_wp_term_taxonomy.parent',
2410
+ COUNT: 'carbon_wp_term_taxonomy.count',
2411
+ PRIMARY: [
2412
+ 'carbon_wp_term_taxonomy.term_taxonomy_id',
2413
+ ],
2414
+ COLUMNS: {
2415
+ 'carbon_wp_term_taxonomy.term_taxonomy_id':'term_taxonomy_id',
2416
+ 'carbon_wp_term_taxonomy.term_id':'term_id',
2417
+ 'carbon_wp_term_taxonomy.taxonomy':'taxonomy',
2418
+ 'carbon_wp_term_taxonomy.description':'description',
2419
+ 'carbon_wp_term_taxonomy.parent':'parent',
2420
+ 'carbon_wp_term_taxonomy.count':'count',
2421
+ },
2422
+ TYPE_VALIDATION: {
2423
+ 'carbon_wp_term_taxonomy.term_taxonomy_id': {
2424
+ MYSQL_TYPE: 'bigint unsigned',
2425
+ MAX_LENGTH: '',
2426
+ AUTO_INCREMENT: true,
2427
+ SKIP_COLUMN_IN_POST: true
2428
+ },
2429
+ 'carbon_wp_term_taxonomy.term_id': {
2430
+ MYSQL_TYPE: 'bigint unsigned',
2431
+ MAX_LENGTH: '',
2432
+ AUTO_INCREMENT: false,
2433
+ SKIP_COLUMN_IN_POST: true
2434
+ },
2435
+ 'carbon_wp_term_taxonomy.taxonomy': {
2436
+ MYSQL_TYPE: 'varchar',
2437
+ MAX_LENGTH: '32',
2438
+ AUTO_INCREMENT: false,
2439
+ SKIP_COLUMN_IN_POST: true
2440
+ },
2441
+ 'carbon_wp_term_taxonomy.description': {
2442
+ MYSQL_TYPE: 'longtext',
2443
+ MAX_LENGTH: '',
2444
+ AUTO_INCREMENT: false,
2445
+ SKIP_COLUMN_IN_POST: false
2446
+ },
2447
+ 'carbon_wp_term_taxonomy.parent': {
2448
+ MYSQL_TYPE: 'bigint unsigned',
2449
+ MAX_LENGTH: '',
2450
+ AUTO_INCREMENT: false,
2451
+ SKIP_COLUMN_IN_POST: true
2452
+ },
2453
+ 'carbon_wp_term_taxonomy.count': {
2454
+ MYSQL_TYPE: 'bigint',
2455
+ MAX_LENGTH: '',
2456
+ AUTO_INCREMENT: false,
2457
+ SKIP_COLUMN_IN_POST: true
2458
+ },
2459
+ },
2460
+ REGEX_VALIDATION: {
2461
+ }
2462
+
2463
+ }
2464
+
2465
+
2466
+
2467
+ export interface iWp_Termmeta {
2468
+ 'meta_id'?: number;
2469
+ 'term_id'?: number;
2470
+ 'meta_key'?: string;
2471
+ 'meta_value'?: string;
2472
+ }
2473
+
2474
+ interface iDefineWp_Termmeta {
2475
+ 'META_ID': string;
2476
+ 'TERM_ID': string;
2477
+ 'META_KEY': string;
2478
+ 'META_VALUE': string;
2479
+ }
2480
+
2481
+ export const wp_termmeta : C6RestfulModel & iDefineWp_Termmeta = {
2482
+ TABLE_NAME:'wp_termmeta',
2483
+ META_ID: 'carbon_wp_termmeta.meta_id',
2484
+ TERM_ID: 'carbon_wp_termmeta.term_id',
2485
+ META_KEY: 'carbon_wp_termmeta.meta_key',
2486
+ META_VALUE: 'carbon_wp_termmeta.meta_value',
2487
+ PRIMARY: [
2488
+ 'carbon_wp_termmeta.meta_id',
2489
+ ],
2490
+ COLUMNS: {
2491
+ 'carbon_wp_termmeta.meta_id':'meta_id',
2492
+ 'carbon_wp_termmeta.term_id':'term_id',
2493
+ 'carbon_wp_termmeta.meta_key':'meta_key',
2494
+ 'carbon_wp_termmeta.meta_value':'meta_value',
2495
+ },
2496
+ TYPE_VALIDATION: {
2497
+ 'carbon_wp_termmeta.meta_id': {
2498
+ MYSQL_TYPE: 'bigint unsigned',
2499
+ MAX_LENGTH: '',
2500
+ AUTO_INCREMENT: true,
2501
+ SKIP_COLUMN_IN_POST: true
2502
+ },
2503
+ 'carbon_wp_termmeta.term_id': {
2504
+ MYSQL_TYPE: 'bigint unsigned',
2505
+ MAX_LENGTH: '',
2506
+ AUTO_INCREMENT: false,
2507
+ SKIP_COLUMN_IN_POST: true
2508
+ },
2509
+ 'carbon_wp_termmeta.meta_key': {
2510
+ MYSQL_TYPE: 'varchar',
2511
+ MAX_LENGTH: '255',
2512
+ AUTO_INCREMENT: false,
2513
+ SKIP_COLUMN_IN_POST: true
2514
+ },
2515
+ 'carbon_wp_termmeta.meta_value': {
2516
+ MYSQL_TYPE: 'longtext',
2517
+ MAX_LENGTH: '',
2518
+ AUTO_INCREMENT: false,
2519
+ SKIP_COLUMN_IN_POST: false
2520
+ },
2521
+ },
2522
+ REGEX_VALIDATION: {
2523
+ }
2524
+
2525
+ }
2526
+
2527
+
2528
+
2529
+ export interface iWp_Terms {
2530
+ 'term_id'?: number;
2531
+ 'name'?: string;
2532
+ 'slug'?: string;
2533
+ 'term_group'?: number;
2534
+ }
2535
+
2536
+ interface iDefineWp_Terms {
2537
+ 'TERM_ID': string;
2538
+ 'NAME': string;
2539
+ 'SLUG': string;
2540
+ 'TERM_GROUP': string;
2541
+ }
2542
+
2543
+ export const wp_terms : C6RestfulModel & iDefineWp_Terms = {
2544
+ TABLE_NAME:'wp_terms',
2545
+ TERM_ID: 'carbon_wp_terms.term_id',
2546
+ NAME: 'carbon_wp_terms.name',
2547
+ SLUG: 'carbon_wp_terms.slug',
2548
+ TERM_GROUP: 'carbon_wp_terms.term_group',
2549
+ PRIMARY: [
2550
+ 'carbon_wp_terms.term_id',
2551
+ ],
2552
+ COLUMNS: {
2553
+ 'carbon_wp_terms.term_id':'term_id',
2554
+ 'carbon_wp_terms.name':'name',
2555
+ 'carbon_wp_terms.slug':'slug',
2556
+ 'carbon_wp_terms.term_group':'term_group',
2557
+ },
2558
+ TYPE_VALIDATION: {
2559
+ 'carbon_wp_terms.term_id': {
2560
+ MYSQL_TYPE: 'bigint unsigned',
2561
+ MAX_LENGTH: '',
2562
+ AUTO_INCREMENT: true,
2563
+ SKIP_COLUMN_IN_POST: true
2564
+ },
2565
+ 'carbon_wp_terms.name': {
2566
+ MYSQL_TYPE: 'varchar',
2567
+ MAX_LENGTH: '200',
2568
+ AUTO_INCREMENT: false,
2569
+ SKIP_COLUMN_IN_POST: true
2570
+ },
2571
+ 'carbon_wp_terms.slug': {
2572
+ MYSQL_TYPE: 'varchar',
2573
+ MAX_LENGTH: '200',
2574
+ AUTO_INCREMENT: false,
2575
+ SKIP_COLUMN_IN_POST: true
2576
+ },
2577
+ 'carbon_wp_terms.term_group': {
2578
+ MYSQL_TYPE: 'bigint',
2579
+ MAX_LENGTH: '',
2580
+ AUTO_INCREMENT: false,
2581
+ SKIP_COLUMN_IN_POST: true
2582
+ },
2583
+ },
2584
+ REGEX_VALIDATION: {
2585
+ }
2586
+
2587
+ }
2588
+
2589
+
2590
+
2591
+ export interface iWp_Usermeta {
2592
+ 'umeta_id'?: number;
2593
+ 'user_id'?: number;
2594
+ 'meta_key'?: string;
2595
+ 'meta_value'?: string;
2596
+ }
2597
+
2598
+ interface iDefineWp_Usermeta {
2599
+ 'UMETA_ID': string;
2600
+ 'USER_ID': string;
2601
+ 'META_KEY': string;
2602
+ 'META_VALUE': string;
2603
+ }
2604
+
2605
+ export const wp_usermeta : C6RestfulModel & iDefineWp_Usermeta = {
2606
+ TABLE_NAME:'wp_usermeta',
2607
+ UMETA_ID: 'carbon_wp_usermeta.umeta_id',
2608
+ USER_ID: 'carbon_wp_usermeta.user_id',
2609
+ META_KEY: 'carbon_wp_usermeta.meta_key',
2610
+ META_VALUE: 'carbon_wp_usermeta.meta_value',
2611
+ PRIMARY: [
2612
+ 'carbon_wp_usermeta.umeta_id',
2613
+ ],
2614
+ COLUMNS: {
2615
+ 'carbon_wp_usermeta.umeta_id':'umeta_id',
2616
+ 'carbon_wp_usermeta.user_id':'user_id',
2617
+ 'carbon_wp_usermeta.meta_key':'meta_key',
2618
+ 'carbon_wp_usermeta.meta_value':'meta_value',
2619
+ },
2620
+ TYPE_VALIDATION: {
2621
+ 'carbon_wp_usermeta.umeta_id': {
2622
+ MYSQL_TYPE: 'bigint unsigned',
2623
+ MAX_LENGTH: '',
2624
+ AUTO_INCREMENT: true,
2625
+ SKIP_COLUMN_IN_POST: true
2626
+ },
2627
+ 'carbon_wp_usermeta.user_id': {
2628
+ MYSQL_TYPE: 'bigint unsigned',
2629
+ MAX_LENGTH: '',
2630
+ AUTO_INCREMENT: false,
2631
+ SKIP_COLUMN_IN_POST: true
2632
+ },
2633
+ 'carbon_wp_usermeta.meta_key': {
2634
+ MYSQL_TYPE: 'varchar',
2635
+ MAX_LENGTH: '255',
2636
+ AUTO_INCREMENT: false,
2637
+ SKIP_COLUMN_IN_POST: true
2638
+ },
2639
+ 'carbon_wp_usermeta.meta_value': {
2640
+ MYSQL_TYPE: 'longtext',
2641
+ MAX_LENGTH: '',
2642
+ AUTO_INCREMENT: false,
2643
+ SKIP_COLUMN_IN_POST: false
2644
+ },
2645
+ },
2646
+ REGEX_VALIDATION: {
2647
+ }
2648
+
2649
+ }
2650
+
2651
+
2652
+
2653
+ export interface iWp_Users {
2654
+ 'ID'?: number;
2655
+ 'user_login'?: string;
2656
+ 'user_pass'?: string;
2657
+ 'user_nicename'?: string;
2658
+ 'user_email'?: string;
2659
+ 'user_url'?: string;
2660
+ 'user_registered'?: string;
2661
+ 'user_activation_key'?: string;
2662
+ 'user_status'?: number;
2663
+ 'display_name'?: string;
2664
+ }
2665
+
2666
+ interface iDefineWp_Users {
2667
+ 'ID': string;
2668
+ 'USER_LOGIN': string;
2669
+ 'USER_PASS': string;
2670
+ 'USER_NICENAME': string;
2671
+ 'USER_EMAIL': string;
2672
+ 'USER_URL': string;
2673
+ 'USER_REGISTERED': string;
2674
+ 'USER_ACTIVATION_KEY': string;
2675
+ 'USER_STATUS': string;
2676
+ 'DISPLAY_NAME': string;
2677
+ }
2678
+
2679
+ export const wp_users : C6RestfulModel & iDefineWp_Users = {
2680
+ TABLE_NAME:'wp_users',
2681
+ ID: 'carbon_wp_users.ID',
2682
+ USER_LOGIN: 'carbon_wp_users.user_login',
2683
+ USER_PASS: 'carbon_wp_users.user_pass',
2684
+ USER_NICENAME: 'carbon_wp_users.user_nicename',
2685
+ USER_EMAIL: 'carbon_wp_users.user_email',
2686
+ USER_URL: 'carbon_wp_users.user_url',
2687
+ USER_REGISTERED: 'carbon_wp_users.user_registered',
2688
+ USER_ACTIVATION_KEY: 'carbon_wp_users.user_activation_key',
2689
+ USER_STATUS: 'carbon_wp_users.user_status',
2690
+ DISPLAY_NAME: 'carbon_wp_users.display_name',
2691
+ PRIMARY: [
2692
+ 'carbon_wp_users.ID',
2693
+ ],
2694
+ COLUMNS: {
2695
+ 'carbon_wp_users.ID':'ID',
2696
+ 'carbon_wp_users.user_login':'user_login',
2697
+ 'carbon_wp_users.user_pass':'user_pass',
2698
+ 'carbon_wp_users.user_nicename':'user_nicename',
2699
+ 'carbon_wp_users.user_email':'user_email',
2700
+ 'carbon_wp_users.user_url':'user_url',
2701
+ 'carbon_wp_users.user_registered':'user_registered',
2702
+ 'carbon_wp_users.user_activation_key':'user_activation_key',
2703
+ 'carbon_wp_users.user_status':'user_status',
2704
+ 'carbon_wp_users.display_name':'display_name',
2705
+ },
2706
+ TYPE_VALIDATION: {
2707
+ 'carbon_wp_users.ID': {
2708
+ MYSQL_TYPE: 'bigint unsigned',
2709
+ MAX_LENGTH: '',
2710
+ AUTO_INCREMENT: true,
2711
+ SKIP_COLUMN_IN_POST: true
2712
+ },
2713
+ 'carbon_wp_users.user_login': {
2714
+ MYSQL_TYPE: 'varchar',
2715
+ MAX_LENGTH: '60',
2716
+ AUTO_INCREMENT: false,
2717
+ SKIP_COLUMN_IN_POST: true
2718
+ },
2719
+ 'carbon_wp_users.user_pass': {
2720
+ MYSQL_TYPE: 'varchar',
2721
+ MAX_LENGTH: '255',
2722
+ AUTO_INCREMENT: false,
2723
+ SKIP_COLUMN_IN_POST: true
2724
+ },
2725
+ 'carbon_wp_users.user_nicename': {
2726
+ MYSQL_TYPE: 'varchar',
2727
+ MAX_LENGTH: '50',
2728
+ AUTO_INCREMENT: false,
2729
+ SKIP_COLUMN_IN_POST: true
2730
+ },
2731
+ 'carbon_wp_users.user_email': {
2732
+ MYSQL_TYPE: 'varchar',
2733
+ MAX_LENGTH: '100',
2734
+ AUTO_INCREMENT: false,
2735
+ SKIP_COLUMN_IN_POST: true
2736
+ },
2737
+ 'carbon_wp_users.user_url': {
2738
+ MYSQL_TYPE: 'varchar',
2739
+ MAX_LENGTH: '100',
2740
+ AUTO_INCREMENT: false,
2741
+ SKIP_COLUMN_IN_POST: true
2742
+ },
2743
+ 'carbon_wp_users.user_registered': {
2744
+ MYSQL_TYPE: 'datetime',
2745
+ MAX_LENGTH: '',
2746
+ AUTO_INCREMENT: false,
2747
+ SKIP_COLUMN_IN_POST: true
2748
+ },
2749
+ 'carbon_wp_users.user_activation_key': {
2750
+ MYSQL_TYPE: 'varchar',
2751
+ MAX_LENGTH: '255',
2752
+ AUTO_INCREMENT: false,
2753
+ SKIP_COLUMN_IN_POST: true
2754
+ },
2755
+ 'carbon_wp_users.user_status': {
2756
+ MYSQL_TYPE: 'int',
2757
+ MAX_LENGTH: '',
2758
+ AUTO_INCREMENT: false,
2759
+ SKIP_COLUMN_IN_POST: true
2760
+ },
2761
+ 'carbon_wp_users.display_name': {
2762
+ MYSQL_TYPE: 'varchar',
2763
+ MAX_LENGTH: '250',
2764
+ AUTO_INCREMENT: false,
2765
+ SKIP_COLUMN_IN_POST: true
2766
+ },
2767
+ },
2768
+ REGEX_VALIDATION: {
2769
+ }
2770
+
2771
+ }
2772
+
2773
+
2774
+
2775
+ export const TABLES = {
2776
+
2777
+ carbons: carbons,
2778
+ comments: comments,
2779
+ documentation: documentation,
2780
+ feature_group_references: feature_group_references,
2781
+ features: features,
2782
+ group_references: group_references,
2783
+ groups: groups,
2784
+ history_logs: history_logs,
2785
+ location_references: location_references,
2786
+ locations: locations,
2787
+ photos: photos,
2788
+ reports: reports,
2789
+ sessions: sessions,
2790
+ user_followers: user_followers,
2791
+ user_groups: user_groups,
2792
+ user_messages: user_messages,
2793
+ user_sessions: user_sessions,
2794
+ user_tasks: user_tasks,
2795
+ users: users,
2796
+ wp_commentmeta: wp_commentmeta,
2797
+ wp_comments: wp_comments,
2798
+ wp_links: wp_links,
2799
+ wp_options: wp_options,
2800
+ wp_postmeta: wp_postmeta,
2801
+ wp_posts: wp_posts,
2802
+ wp_term_relationships: wp_term_relationships,
2803
+ wp_term_taxonomy: wp_term_taxonomy,
2804
+ wp_termmeta: wp_termmeta,
2805
+ wp_terms: wp_terms,
2806
+ wp_usermeta: wp_usermeta,
2807
+ wp_users: wp_users,
2808
+ };
2809
+
2810
+ export const C6 = {
2811
+ // try to 1=1 match the Rest abstract class
2812
+ ADDDATE: 'ADDDATE',
2813
+ ADDTIME: 'ADDTIME',
2814
+ AS: 'AS',
2815
+ ASC: 'ASC',
2816
+
2817
+ BETWEEN: 'BETWEEN',
2818
+
2819
+ CONCAT: 'CONCAT',
2820
+ CONVERT_TZ: 'CONVERT_TZ',
2821
+ COUNT: 'COUNT',
2822
+ COUNT_ALL: 'COUNT_ALL',
2823
+ CURRENT_DATE: 'CURRENT_DATE',
2824
+ CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP',
2825
+
2826
+ DAY: 'DAY',
2827
+ DAY_HOUR: 'DAY_HOUR',
2828
+ DAY_MICROSECOND: 'DAY_MICROSECOND',
2829
+ DAY_MINUTE: 'DAY_MINUTE',
2830
+ DAY_SECOND: 'DAY_SECOND',
2831
+ DAYNAME: 'DAYNAME',
2832
+ DAYOFMONTH: 'DAYOFMONTH',
2833
+ DAYOFWEEK: 'DAYOFWEEK',
2834
+ DAYOFYEAR: 'DAYOFYEAR',
2835
+ DATE: 'DATE',
2836
+ DATE_ADD: 'DATE_ADD',
2837
+ DATEDIFF: 'DATEDIFF',
2838
+ DATE_SUB: 'DATE_SUB',
2839
+ DATE_FORMAT: 'DATE_FORMAT',
2840
+ DESC: 'DESC',
2841
+ DISTINCT: 'DISTINCT',
2842
+
2843
+ EXTRACT: 'EXTRACT',
2844
+ EQUAL: '=',
2845
+ EQUAL_NULL_SAFE: '<=>',
2846
+
2847
+ FALSE: 'FALSE',
2848
+ FULL_OUTER: 'FULL_OUTER',
2849
+ FROM_DAYS: 'FROM_DAYS',
2850
+ FROM_UNIXTIME: 'FROM_UNIXTIME',
2851
+
2852
+ GET_FORMAT: 'GET_FORMAT',
2853
+ GREATER_THAN: '>',
2854
+ GROUP_BY: 'GROUP_BY',
2855
+ GROUP_CONCAT: 'GROUP_CONCAT',
2856
+ GREATER_THAN_OR_EQUAL_TO: '>=',
2857
+
2858
+ HAVING: 'HAVING',
2859
+ HEX: 'HEX',
2860
+ HOUR: 'HOUR',
2861
+ HOUR_MICROSECOND: 'HOUR_MICROSECOND',
2862
+ HOUR_SECOND: 'HOUR_SECOND',
2863
+ HOUR_MINUTE: 'HOUR_MINUTE',
2864
+
2865
+ IN: 'IN',
2866
+ IS: 'IS',
2867
+ IS_NOT: 'IS_NOT',
2868
+ INNER: 'INNER',
2869
+ INTERVAL: 'INTERVAL',
2870
+
2871
+ JOIN: 'JOIN',
2872
+
2873
+ LEFT: 'LEFT',
2874
+ LEFT_OUTER: 'LEFT_OUTER',
2875
+ LESS_THAN: '<',
2876
+ LESS_THAN_OR_EQUAL_TO: '<=',
2877
+ LIKE: 'LIKE',
2878
+ LIMIT: 'LIMIT',
2879
+ LOCALTIME: 'LOCALTIME',
2880
+ LOCALTIMESTAMP: 'LOCALTIMESTAMP',
2881
+
2882
+ MAKEDATE: 'MAKEDATE',
2883
+ MAKETIME: 'MAKETIME',
2884
+ MONTHNAME: 'MONTHNAME',
2885
+ MICROSECOND: 'MICROSECOND',
2886
+ MINUTE: 'MINUTE',
2887
+ MINUTE_MICROSECOND: 'MINUTE_MICROSECOND',
2888
+ MINUTE_SECOND: 'MINUTE_SECOND',
2889
+ MIN: 'MIN',
2890
+ MAX: 'MAX',
2891
+ MONTH: 'MONTH',
2892
+
2893
+ NOT_LIKE: 'NOT_LIKE',
2894
+ NOT_EQUAL: '<>',
2895
+ NOT_IN: 'NOT_IN',
2896
+ NOW: 'NOW',
2897
+ NULL: 'NULL',
2898
+
2899
+ ORDER: 'ORDER',
2900
+
2901
+ PAGE: 'PAGE',
2902
+ PAGINATION: 'PAGINATION',
2903
+ RIGHT_OUTER: 'RIGHT_OUTER',
2904
+
2905
+ SECOND: 'SECOND',
2906
+ SECOND_MICROSECOND: 'SECOND_MICROSECOND',
2907
+ SELECT: 'SELECT',
2908
+ STR_TO_DATE: 'STR_TO_DATE',
2909
+ SUBDATE: 'SUBDATE',
2910
+ SUBTIME: 'SUBTIME',
2911
+ SUM: 'SUM',
2912
+ SYSDATE: 'SYSDATE',
2913
+
2914
+ TIME: 'TIME',
2915
+ TIME_FORMAT: 'TIME_FORMAT',
2916
+ TIME_TO_SEC: 'TIME_TO_SEC',
2917
+ TIMEDIFF: 'TIMEDIFF',
2918
+ TIMESTAMP: 'TIMESTAMP',
2919
+ TIMESTAMPADD: 'TIMESTAMPADD',
2920
+ TIMESTAMPDIFF: 'TIMESTAMPDIFF',
2921
+ TO_DAYS: 'TO_DAYS',
2922
+ TO_SECONDS: 'TO_SECONDS',
2923
+ TRANSACTION_TIMESTAMP: 'TRANSACTION_TIMESTAMP',
2924
+ TRUE: 'TRUE',
2925
+
2926
+ UNIX_TIMESTAMP: 'UNIX_TIMESTAMP',
2927
+ UNKNOWN: 'UNKNOWN',
2928
+ UPDATE: 'UPDATE',
2929
+ UNHEX: 'UNHEX',
2930
+ UTC_DATE: 'UNHEX',
2931
+ UTC_TIME: 'UNHEX',
2932
+ UTC_TIMESTAMP: 'UNHEX',
2933
+
2934
+ WHERE: 'WHERE',
2935
+ WEEKDAY: 'WEEKDAY',
2936
+ WEEKOFYEAR: 'WEEKOFYEAR',
2937
+
2938
+ YEARWEEK: 'YEARWEEK',
2939
+
2940
+
2941
+ // carbon identifiers
2942
+ DEPENDANT_ON_ENTITY: 'DEPENDANT_ON_ENTITY',
2943
+
2944
+ // PHP validation
2945
+ OPTIONS: 'OPTIONS',
2946
+ GET: 'GET',
2947
+ POST: 'POST',
2948
+ PUT: 'PUT',
2949
+ REPLACE: 'REPLACE INTO',
2950
+ DELETE: 'DELETE',
2951
+ REST_REQUEST_PREPROCESS_CALLBACKS: 'PREPROCESS',
2952
+ PREPROCESS: 'PREPROCESS',
2953
+ REST_REQUEST_FINNISH_CALLBACKS: 'FINISH',
2954
+ FINISH: 'FINISH',
2955
+ VALIDATE_C6_ENTITY_ID_REGEX: '#^([a-fA-F0-9]{20,35})$#',
2956
+
2957
+ TABLES: TABLES,
2958
+ ...TABLES
2959
+
2960
+ };
2961
+
2962
+ export const COLUMNS = {
2963
+
2964
+ 'carbon_carbons.entity_pk':'entity_pk',
2965
+ 'carbon_carbons.entity_fk':'entity_fk',
2966
+ 'carbon_carbons.entity_tag':'entity_tag',
2967
+
2968
+ 'carbon_comments.parent_id':'parent_id',
2969
+ 'carbon_comments.comment_id':'comment_id',
2970
+ 'carbon_comments.user_id':'user_id',
2971
+ 'carbon_comments.comment':'comment',
2972
+
2973
+ 'carbon_documentation.documentation_uri':'documentation_uri',
2974
+ 'carbon_documentation.documentation_data':'documentation_data',
2975
+ 'carbon_documentation.documentation_version':'documentation_version',
2976
+ 'carbon_documentation.documentation_active':'documentation_active',
2977
+
2978
+ 'carbon_feature_group_references.feature_entity_id':'feature_entity_id',
2979
+ 'carbon_feature_group_references.group_entity_id':'group_entity_id',
2980
+
2981
+ 'carbon_features.feature_entity_id':'feature_entity_id',
2982
+ 'carbon_features.feature_code':'feature_code',
2983
+ 'carbon_features.feature_creation_date':'feature_creation_date',
2984
+
2985
+ 'carbon_group_references.group_id':'group_id',
2986
+ 'carbon_group_references.allowed_to_grant_group_id':'allowed_to_grant_group_id',
2987
+
2988
+ 'carbon_groups.group_name':'group_name',
2989
+ 'carbon_groups.entity_id':'entity_id',
2990
+ 'carbon_groups.created_by':'created_by',
2991
+ 'carbon_groups.creation_date':'creation_date',
2992
+
2993
+ 'carbon_history_logs.history_uuid':'history_uuid',
2994
+ 'carbon_history_logs.history_table':'history_table',
2995
+ 'carbon_history_logs.history_type':'history_type',
2996
+ 'carbon_history_logs.history_data':'history_data',
2997
+ 'carbon_history_logs.history_original_query':'history_original_query',
2998
+ 'carbon_history_logs.history_time':'history_time',
2999
+
3000
+ 'carbon_location_references.entity_reference':'entity_reference',
3001
+ 'carbon_location_references.location_reference':'location_reference',
3002
+ 'carbon_location_references.location_time':'location_time',
3003
+
3004
+ 'carbon_locations.entity_id':'entity_id',
3005
+ 'carbon_locations.latitude':'latitude',
3006
+ 'carbon_locations.longitude':'longitude',
3007
+ 'carbon_locations.street':'street',
3008
+ 'carbon_locations.city':'city',
3009
+ 'carbon_locations.state':'state',
3010
+ 'carbon_locations.elevation':'elevation',
3011
+ 'carbon_locations.zip':'zip',
3012
+
3013
+ 'carbon_photos.parent_id':'parent_id',
3014
+ 'carbon_photos.photo_id':'photo_id',
3015
+ 'carbon_photos.user_id':'user_id',
3016
+ 'carbon_photos.photo_path':'photo_path',
3017
+ 'carbon_photos.photo_description':'photo_description',
3018
+
3019
+ 'carbon_reports.log_level':'log_level',
3020
+ 'carbon_reports.report':'report',
3021
+ 'carbon_reports.date':'date',
3022
+ 'carbon_reports.call_trace':'call_trace',
3023
+
3024
+ 'carbon_sessions.user_id':'user_id',
3025
+ 'carbon_sessions.user_ip':'user_ip',
3026
+ 'carbon_sessions.session_id':'session_id',
3027
+ 'carbon_sessions.session_expires':'session_expires',
3028
+ 'carbon_sessions.session_data':'session_data',
3029
+ 'carbon_sessions.user_online_status':'user_online_status',
3030
+
3031
+ 'carbon_user_followers.follower_table_id':'follower_table_id',
3032
+ 'carbon_user_followers.follows_user_id':'follows_user_id',
3033
+ 'carbon_user_followers.user_id':'user_id',
3034
+
3035
+ 'carbon_user_groups.group_id':'group_id',
3036
+ 'carbon_user_groups.user_id':'user_id',
3037
+
3038
+ 'carbon_user_messages.message_id':'message_id',
3039
+ 'carbon_user_messages.from_user_id':'from_user_id',
3040
+ 'carbon_user_messages.to_user_id':'to_user_id',
3041
+ 'carbon_user_messages.message':'message',
3042
+ 'carbon_user_messages.message_read':'message_read',
3043
+ 'carbon_user_messages.creation_date':'creation_date',
3044
+
3045
+ 'carbon_user_sessions.user_id':'user_id',
3046
+ 'carbon_user_sessions.user_ip':'user_ip',
3047
+ 'carbon_user_sessions.session_id':'session_id',
3048
+ 'carbon_user_sessions.session_expires':'session_expires',
3049
+ 'carbon_user_sessions.session_data':'session_data',
3050
+ 'carbon_user_sessions.user_online_status':'user_online_status',
3051
+
3052
+ 'carbon_user_tasks.task_id':'task_id',
3053
+ 'carbon_user_tasks.user_id':'user_id',
3054
+ 'carbon_user_tasks.from_id':'from_id',
3055
+ 'carbon_user_tasks.task_name':'task_name',
3056
+ 'carbon_user_tasks.task_description':'task_description',
3057
+ 'carbon_user_tasks.percent_complete':'percent_complete',
3058
+ 'carbon_user_tasks.start_date':'start_date',
3059
+ 'carbon_user_tasks.end_date':'end_date',
3060
+
3061
+ 'carbon_users.user_username':'user_username',
3062
+ 'carbon_users.user_password':'user_password',
3063
+ 'carbon_users.user_id':'user_id',
3064
+ 'carbon_users.user_type':'user_type',
3065
+ 'carbon_users.user_sport':'user_sport',
3066
+ 'carbon_users.user_session_id':'user_session_id',
3067
+ 'carbon_users.user_facebook_id':'user_facebook_id',
3068
+ 'carbon_users.user_first_name':'user_first_name',
3069
+ 'carbon_users.user_last_name':'user_last_name',
3070
+ 'carbon_users.user_profile_pic':'user_profile_pic',
3071
+ 'carbon_users.user_profile_uri':'user_profile_uri',
3072
+ 'carbon_users.user_cover_photo':'user_cover_photo',
3073
+ 'carbon_users.user_birthday':'user_birthday',
3074
+ 'carbon_users.user_gender':'user_gender',
3075
+ 'carbon_users.user_about_me':'user_about_me',
3076
+ 'carbon_users.user_rank':'user_rank',
3077
+ 'carbon_users.user_email':'user_email',
3078
+ 'carbon_users.user_email_code':'user_email_code',
3079
+ 'carbon_users.user_email_confirmed':'user_email_confirmed',
3080
+ 'carbon_users.user_generated_string':'user_generated_string',
3081
+ 'carbon_users.user_membership':'user_membership',
3082
+ 'carbon_users.user_deactivated':'user_deactivated',
3083
+ 'carbon_users.user_last_login':'user_last_login',
3084
+ 'carbon_users.user_ip':'user_ip',
3085
+ 'carbon_users.user_education_history':'user_education_history',
3086
+ 'carbon_users.user_location':'user_location',
3087
+ 'carbon_users.user_creation_date':'user_creation_date',
3088
+
3089
+ 'carbon_wp_commentmeta.meta_id':'meta_id',
3090
+ 'carbon_wp_commentmeta.comment_id':'comment_id',
3091
+ 'carbon_wp_commentmeta.meta_key':'meta_key',
3092
+ 'carbon_wp_commentmeta.meta_value':'meta_value',
3093
+
3094
+ 'carbon_wp_comments.comment_ID':'comment_ID',
3095
+ 'carbon_wp_comments.comment_post_ID':'comment_post_ID',
3096
+ 'carbon_wp_comments.comment_author':'comment_author',
3097
+ 'carbon_wp_comments.comment_author_email':'comment_author_email',
3098
+ 'carbon_wp_comments.comment_author_url':'comment_author_url',
3099
+ 'carbon_wp_comments.comment_author_IP':'comment_author_IP',
3100
+ 'carbon_wp_comments.comment_date':'comment_date',
3101
+ 'carbon_wp_comments.comment_date_gmt':'comment_date_gmt',
3102
+ 'carbon_wp_comments.comment_content':'comment_content',
3103
+ 'carbon_wp_comments.comment_karma':'comment_karma',
3104
+ 'carbon_wp_comments.comment_approved':'comment_approved',
3105
+ 'carbon_wp_comments.comment_agent':'comment_agent',
3106
+ 'carbon_wp_comments.comment_type':'comment_type',
3107
+ 'carbon_wp_comments.comment_parent':'comment_parent',
3108
+ 'carbon_wp_comments.user_id':'user_id',
3109
+
3110
+ 'carbon_wp_links.link_id':'link_id',
3111
+ 'carbon_wp_links.link_url':'link_url',
3112
+ 'carbon_wp_links.link_name':'link_name',
3113
+ 'carbon_wp_links.link_image':'link_image',
3114
+ 'carbon_wp_links.link_target':'link_target',
3115
+ 'carbon_wp_links.link_description':'link_description',
3116
+ 'carbon_wp_links.link_visible':'link_visible',
3117
+ 'carbon_wp_links.link_owner':'link_owner',
3118
+ 'carbon_wp_links.link_rating':'link_rating',
3119
+ 'carbon_wp_links.link_updated':'link_updated',
3120
+ 'carbon_wp_links.link_rel':'link_rel',
3121
+ 'carbon_wp_links.link_notes':'link_notes',
3122
+ 'carbon_wp_links.link_rss':'link_rss',
3123
+
3124
+ 'carbon_wp_options.option_id':'option_id',
3125
+ 'carbon_wp_options.option_name':'option_name',
3126
+ 'carbon_wp_options.option_value':'option_value',
3127
+ 'carbon_wp_options.autoload':'autoload',
3128
+
3129
+ 'carbon_wp_postmeta.meta_id':'meta_id',
3130
+ 'carbon_wp_postmeta.post_id':'post_id',
3131
+ 'carbon_wp_postmeta.meta_key':'meta_key',
3132
+ 'carbon_wp_postmeta.meta_value':'meta_value',
3133
+
3134
+ 'carbon_wp_posts.ID':'ID',
3135
+ 'carbon_wp_posts.post_author':'post_author',
3136
+ 'carbon_wp_posts.post_date':'post_date',
3137
+ 'carbon_wp_posts.post_date_gmt':'post_date_gmt',
3138
+ 'carbon_wp_posts.post_content':'post_content',
3139
+ 'carbon_wp_posts.post_title':'post_title',
3140
+ 'carbon_wp_posts.post_excerpt':'post_excerpt',
3141
+ 'carbon_wp_posts.post_status':'post_status',
3142
+ 'carbon_wp_posts.comment_status':'comment_status',
3143
+ 'carbon_wp_posts.ping_status':'ping_status',
3144
+ 'carbon_wp_posts.post_password':'post_password',
3145
+ 'carbon_wp_posts.post_name':'post_name',
3146
+ 'carbon_wp_posts.to_ping':'to_ping',
3147
+ 'carbon_wp_posts.pinged':'pinged',
3148
+ 'carbon_wp_posts.post_modified':'post_modified',
3149
+ 'carbon_wp_posts.post_modified_gmt':'post_modified_gmt',
3150
+ 'carbon_wp_posts.post_content_filtered':'post_content_filtered',
3151
+ 'carbon_wp_posts.post_parent':'post_parent',
3152
+ 'carbon_wp_posts.guid':'guid',
3153
+ 'carbon_wp_posts.menu_order':'menu_order',
3154
+ 'carbon_wp_posts.post_type':'post_type',
3155
+ 'carbon_wp_posts.post_mime_type':'post_mime_type',
3156
+ 'carbon_wp_posts.comment_count':'comment_count',
3157
+
3158
+ 'carbon_wp_term_relationships.object_id':'object_id',
3159
+ 'carbon_wp_term_relationships.term_taxonomy_id':'term_taxonomy_id',
3160
+ 'carbon_wp_term_relationships.term_order':'term_order',
3161
+
3162
+ 'carbon_wp_term_taxonomy.term_taxonomy_id':'term_taxonomy_id',
3163
+ 'carbon_wp_term_taxonomy.term_id':'term_id',
3164
+ 'carbon_wp_term_taxonomy.taxonomy':'taxonomy',
3165
+ 'carbon_wp_term_taxonomy.description':'description',
3166
+ 'carbon_wp_term_taxonomy.parent':'parent',
3167
+ 'carbon_wp_term_taxonomy.count':'count',
3168
+
3169
+ 'carbon_wp_termmeta.meta_id':'meta_id',
3170
+ 'carbon_wp_termmeta.term_id':'term_id',
3171
+ 'carbon_wp_termmeta.meta_key':'meta_key',
3172
+ 'carbon_wp_termmeta.meta_value':'meta_value',
3173
+
3174
+ 'carbon_wp_terms.term_id':'term_id',
3175
+ 'carbon_wp_terms.name':'name',
3176
+ 'carbon_wp_terms.slug':'slug',
3177
+ 'carbon_wp_terms.term_group':'term_group',
3178
+
3179
+ 'carbon_wp_usermeta.umeta_id':'umeta_id',
3180
+ 'carbon_wp_usermeta.user_id':'user_id',
3181
+ 'carbon_wp_usermeta.meta_key':'meta_key',
3182
+ 'carbon_wp_usermeta.meta_value':'meta_value',
3183
+
3184
+ 'carbon_wp_users.ID':'ID',
3185
+ 'carbon_wp_users.user_login':'user_login',
3186
+ 'carbon_wp_users.user_pass':'user_pass',
3187
+ 'carbon_wp_users.user_nicename':'user_nicename',
3188
+ 'carbon_wp_users.user_email':'user_email',
3189
+ 'carbon_wp_users.user_url':'user_url',
3190
+ 'carbon_wp_users.user_registered':'user_registered',
3191
+ 'carbon_wp_users.user_activation_key':'user_activation_key',
3192
+ 'carbon_wp_users.user_status':'user_status',
3193
+ 'carbon_wp_users.display_name':'display_name',
3194
+
3195
+ };
3196
+
3197
+ export type RestTableInterfaces = iCarbons
3198
+ | iComments
3199
+ | iDocumentation
3200
+ | iFeature_Group_References
3201
+ | iFeatures
3202
+ | iGroup_References
3203
+ | iGroups
3204
+ | iHistory_Logs
3205
+ | iLocation_References
3206
+ | iLocations
3207
+ | iPhotos
3208
+ | iReports
3209
+ | iSessions
3210
+ | iUser_Followers
3211
+ | iUser_Groups
3212
+ | iUser_Messages
3213
+ | iUser_Sessions
3214
+ | iUser_Tasks
3215
+ | iUsers
3216
+ | iWp_Commentmeta
3217
+ | iWp_Comments
3218
+ | iWp_Links
3219
+ | iWp_Options
3220
+ | iWp_Postmeta
3221
+ | iWp_Posts
3222
+ | iWp_Term_Relationships
3223
+ | iWp_Term_Taxonomy
3224
+ | iWp_Termmeta
3225
+ | iWp_Terms
3226
+ | iWp_Usermeta
3227
+ | iWp_Users;
3228
+
3229
+ export const convertForRequestBody = function (restfulObject: RestTableInterfaces, tableName: string | string[], regexErrorHandler: (message:string) => void = alert) {
3230
+
3231
+ let payload = {};
3232
+
3233
+ const tableNames = Array.isArray(tableName) ? tableName : [tableName];
3234
+
3235
+ tableNames.forEach((table) => {
3236
+
3237
+ Object.keys(restfulObject).map(value => {
3238
+
3239
+ let shortReference = value.toUpperCase();
3240
+
3241
+ switch (value) {
3242
+ case C6.GET:
3243
+ case C6.POST:
3244
+ case C6.UPDATE:
3245
+ case C6.REPLACE:
3246
+ case C6.DELETE:
3247
+ case C6.WHERE:
3248
+ case C6.JOIN:
3249
+ case C6.PAGINATION:
3250
+ if (Array.isArray(restfulObject[value])) {
3251
+ payload[value] = restfulObject[value].sort()
3252
+ } else if (typeof restfulObject[value] === 'object' && restfulObject[value] !== null) {
3253
+ payload[value] = Object.keys(restfulObject[value])
3254
+ .sort()
3255
+ .reduce((acc, key) => ({
3256
+ ...acc, [key]: restfulObject[value][key]
3257
+ }), {})
3258
+ }
3259
+ return
3260
+ default:
3261
+ }
3262
+
3263
+ if (shortReference in C6[table]) {
3264
+
3265
+ const longName = C6[table][shortReference];
3266
+
3267
+ payload[longName] = restfulObject[value]
3268
+
3269
+ const regexValidations = C6[table].REGEX_VALIDATION[longName]
3270
+
3271
+ if (regexValidations instanceof RegExp) {
3272
+
3273
+ if (false === regexValidations.test(restfulObject[value])) {
3274
+
3275
+ regexErrorHandler('Failed to match regex (' + regexValidations + ') for column (' + longName + ')')
3276
+
3277
+ throw Error('Failed to match regex (' + regexValidations + ') for column (' + longName + ')')
3278
+
3279
+ }
3280
+
3281
+ } else if (typeof regexValidations === 'object' && regexValidations !== null) {
3282
+
3283
+ Object.keys(regexValidations)?.map((errorMessage) => {
3284
+
3285
+ const regex : RegExp = regexValidations[errorMessage];
3286
+
3287
+ if (false === regex.test(restfulObject[value])) {
3288
+
3289
+ const devErrorMessage = 'Failed to match regex (' + regex + ') for column (' + longName + ')';
3290
+
3291
+ regexErrorHandler(errorMessage ?? devErrorMessage)
3292
+
3293
+ throw Error(devErrorMessage)
3294
+
3295
+ }
3296
+
3297
+ })
3298
+
3299
+ }
3300
+
3301
+ }
3302
+
3303
+ })
3304
+
3305
+ return true;
3306
+
3307
+ });
3308
+
3309
+ return Object.keys(payload)
3310
+ .sort()
3311
+ .reduce((acc, key) => ({
3312
+ ...acc, [key]: payload[key]
3313
+ }), {})
3314
+
3315
+ };
3316
+
3317
+