@carbonorm/carbonreact 1.0.5 → 1.0.6

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 (81) hide show
  1. package/dist/{index.css → CarbonReact.esm.css} +1 -1
  2. package/dist/{index.css.map → CarbonReact.esm.css.map} +1 -1
  3. package/dist/CarbonReact.esm.js +4591 -0
  4. package/dist/CarbonReact.esm.js.map +1 -0
  5. package/package.json +2 -2
  6. package/dist/_virtual/_commonjsHelpers.js +0 -6
  7. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  8. package/dist/_virtual/_react.js +0 -3
  9. package/dist/_virtual/_react.js.map +0 -1
  10. package/dist/_virtual/react-jsx-runtime.development.js +0 -6
  11. package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
  12. package/dist/_virtual/react-jsx-runtime.production.min.js +0 -6
  13. package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -1
  14. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1313
  15. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
  16. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -13
  17. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -1
  18. package/dist/node_modules/react/jsx-runtime.js +0 -18
  19. package/dist/node_modules/react/jsx-runtime.js.map +0 -1
  20. package/dist/node_modules/tslib/tslib.es6.js +0 -34
  21. package/dist/node_modules/tslib/tslib.es6.js.map +0 -1
  22. package/dist/src/CarbonReact.js +0 -68
  23. package/dist/src/CarbonReact.js.map +0 -1
  24. package/dist/src/components/Alert/Alert.js +0 -124
  25. package/dist/src/components/Alert/Alert.js.map +0 -1
  26. package/dist/src/components/Errors/AccessDenied.js +0 -20
  27. package/dist/src/components/Errors/AccessDenied.js.map +0 -1
  28. package/dist/src/components/Errors/BackendThrowable.js +0 -24
  29. package/dist/src/components/Errors/BackendThrowable.js.map +0 -1
  30. package/dist/src/components/Errors/ErrorHttpCode.js +0 -9
  31. package/dist/src/components/Errors/ErrorHttpCode.js.map +0 -1
  32. package/dist/src/components/Errors/Localhost.js +0 -28
  33. package/dist/src/components/Errors/Localhost.js.map +0 -1
  34. package/dist/src/components/Errors/PageNotFound.js +0 -9
  35. package/dist/src/components/Errors/PageNotFound.js.map +0 -1
  36. package/dist/src/components/Errors/style.module.scss.js +0 -4
  37. package/dist/src/components/Errors/style.module.scss.js.map +0 -1
  38. package/dist/src/components/Loading/Loading.js +0 -18
  39. package/dist/src/components/Loading/Loading.js.map +0 -1
  40. package/dist/src/components/Nest/Nest.js +0 -136
  41. package/dist/src/components/Nest/Nest.js.map +0 -1
  42. package/dist/src/components/Popup/Popup.js +0 -16
  43. package/dist/src/components/Popup/Popup.js.map +0 -1
  44. package/dist/src/hoc/GlobalHistory.js +0 -11
  45. package/dist/src/hoc/GlobalHistory.js.map +0 -1
  46. package/dist/src/hoc/addValidSQL.js +0 -8
  47. package/dist/src/hoc/addValidSQL.js.map +0 -1
  48. package/dist/src/hoc/axiosInstance.js +0 -317
  49. package/dist/src/hoc/axiosInstance.js.map +0 -1
  50. package/dist/src/hoc/changed.js +0 -32
  51. package/dist/src/hoc/changed.js.map +0 -1
  52. package/dist/src/hoc/deleteRestfulObjectArrays.js +0 -17
  53. package/dist/src/hoc/deleteRestfulObjectArrays.js.map +0 -1
  54. package/dist/src/hoc/getStyles.js +0 -26
  55. package/dist/src/hoc/getStyles.js.map +0 -1
  56. package/dist/src/hoc/hexToRgb.js +0 -11
  57. package/dist/src/hoc/hexToRgb.js.map +0 -1
  58. package/dist/src/hoc/isEdgeBrowser.js +0 -7
  59. package/dist/src/hoc/isEdgeBrowser.js.map +0 -1
  60. package/dist/src/hoc/parseMultipleJson.js +0 -29
  61. package/dist/src/hoc/parseMultipleJson.js.map +0 -1
  62. package/dist/src/hoc/scrollIntoView.js +0 -6
  63. package/dist/src/hoc/scrollIntoView.js.map +0 -1
  64. package/dist/src/hoc/setUrl.js +0 -41
  65. package/dist/src/hoc/setUrl.js.map +0 -1
  66. package/dist/src/hoc/updateRestfulObjectArrays.js +0 -64
  67. package/dist/src/hoc/updateRestfulObjectArrays.js.map +0 -1
  68. package/dist/src/hoc/uploadImage.js +0 -59
  69. package/dist/src/hoc/uploadImage.js.map +0 -1
  70. package/dist/src/hoc/windowDimensions.js +0 -23
  71. package/dist/src/hoc/windowDimensions.js.map +0 -1
  72. package/dist/src/index.js +0 -27
  73. package/dist/src/index.js.map +0 -1
  74. package/dist/src/style.module.css.js +0 -4
  75. package/dist/src/style.module.css.js.map +0 -1
  76. package/dist/src/variables/C6.js +0 -2227
  77. package/dist/src/variables/C6.js.map +0 -1
  78. package/dist/src/variables/bootstrap.module.css.js +0 -4
  79. package/dist/src/variables/bootstrap.module.css.js.map +0 -1
  80. package/dist/src/variables/isProduction.js +0 -4
  81. package/dist/src/variables/isProduction.js.map +0 -1
@@ -1,2227 +0,0 @@
1
- const carbons = {
2
- TABLE_NAME: 'carbons',
3
- ENTITY_PK: 'carbon_carbons.entity_pk',
4
- ENTITY_FK: 'carbon_carbons.entity_fk',
5
- ENTITY_TAG: 'carbon_carbons.entity_tag',
6
- PRIMARY: [
7
- 'carbon_carbons.entity_pk',
8
- ],
9
- COLUMNS: {
10
- 'carbon_carbons.entity_pk': 'entity_pk',
11
- 'carbon_carbons.entity_fk': 'entity_fk',
12
- 'carbon_carbons.entity_tag': 'entity_tag',
13
- },
14
- TYPE_VALIDATION: {
15
- 'carbon_carbons.entity_pk': {
16
- MYSQL_TYPE: 'binary',
17
- MAX_LENGTH: '16',
18
- AUTO_INCREMENT: false,
19
- SKIP_COLUMN_IN_POST: false
20
- },
21
- 'carbon_carbons.entity_fk': {
22
- MYSQL_TYPE: 'binary',
23
- MAX_LENGTH: '16',
24
- AUTO_INCREMENT: false,
25
- SKIP_COLUMN_IN_POST: true
26
- },
27
- 'carbon_carbons.entity_tag': {
28
- MYSQL_TYPE: 'varchar',
29
- MAX_LENGTH: '100',
30
- AUTO_INCREMENT: false,
31
- SKIP_COLUMN_IN_POST: true
32
- },
33
- },
34
- REGEX_VALIDATION: {}
35
- };
36
- const comments = {
37
- TABLE_NAME: 'comments',
38
- PARENT_ID: 'carbon_comments.parent_id',
39
- COMMENT_ID: 'carbon_comments.comment_id',
40
- USER_ID: 'carbon_comments.user_id',
41
- COMMENT: 'carbon_comments.comment',
42
- PRIMARY: [
43
- 'carbon_comments.comment_id',
44
- ],
45
- COLUMNS: {
46
- 'carbon_comments.parent_id': 'parent_id',
47
- 'carbon_comments.comment_id': 'comment_id',
48
- 'carbon_comments.user_id': 'user_id',
49
- 'carbon_comments.comment': 'comment',
50
- },
51
- TYPE_VALIDATION: {
52
- 'carbon_comments.parent_id': {
53
- MYSQL_TYPE: 'binary',
54
- MAX_LENGTH: '16',
55
- AUTO_INCREMENT: false,
56
- SKIP_COLUMN_IN_POST: false
57
- },
58
- 'carbon_comments.comment_id': {
59
- MYSQL_TYPE: 'binary',
60
- MAX_LENGTH: '16',
61
- AUTO_INCREMENT: false,
62
- SKIP_COLUMN_IN_POST: false
63
- },
64
- 'carbon_comments.user_id': {
65
- MYSQL_TYPE: 'binary',
66
- MAX_LENGTH: '16',
67
- AUTO_INCREMENT: false,
68
- SKIP_COLUMN_IN_POST: false
69
- },
70
- 'carbon_comments.comment': {
71
- MYSQL_TYPE: 'blob',
72
- MAX_LENGTH: '',
73
- AUTO_INCREMENT: false,
74
- SKIP_COLUMN_IN_POST: false
75
- },
76
- },
77
- REGEX_VALIDATION: {}
78
- };
79
- const documentation = {
80
- TABLE_NAME: 'documentation',
81
- DOCUMENTATION_URI: 'carbon_documentation.documentation_uri',
82
- DOCUMENTATION_DATA: 'carbon_documentation.documentation_data',
83
- DOCUMENTATION_VERSION: 'carbon_documentation.documentation_version',
84
- DOCUMENTATION_ACTIVE: 'carbon_documentation.documentation_active',
85
- PRIMARY: [],
86
- COLUMNS: {
87
- 'carbon_documentation.documentation_uri': 'documentation_uri',
88
- 'carbon_documentation.documentation_data': 'documentation_data',
89
- 'carbon_documentation.documentation_version': 'documentation_version',
90
- 'carbon_documentation.documentation_active': 'documentation_active',
91
- },
92
- TYPE_VALIDATION: {
93
- 'carbon_documentation.documentation_uri': {
94
- MYSQL_TYPE: 'varchar',
95
- MAX_LENGTH: '255',
96
- AUTO_INCREMENT: false,
97
- SKIP_COLUMN_IN_POST: false
98
- },
99
- 'carbon_documentation.documentation_data': {
100
- MYSQL_TYPE: 'longblob',
101
- MAX_LENGTH: '',
102
- AUTO_INCREMENT: false,
103
- SKIP_COLUMN_IN_POST: false
104
- },
105
- 'carbon_documentation.documentation_version': {
106
- MYSQL_TYPE: 'varchar',
107
- MAX_LENGTH: '40',
108
- AUTO_INCREMENT: false,
109
- SKIP_COLUMN_IN_POST: false
110
- },
111
- 'carbon_documentation.documentation_active': {
112
- MYSQL_TYPE: 'tinyint',
113
- MAX_LENGTH: '',
114
- AUTO_INCREMENT: false,
115
- SKIP_COLUMN_IN_POST: false
116
- },
117
- },
118
- REGEX_VALIDATION: {}
119
- };
120
- const feature_group_references = {
121
- TABLE_NAME: 'feature_group_references',
122
- FEATURE_ENTITY_ID: 'carbon_feature_group_references.feature_entity_id',
123
- GROUP_ENTITY_ID: 'carbon_feature_group_references.group_entity_id',
124
- PRIMARY: [],
125
- COLUMNS: {
126
- 'carbon_feature_group_references.feature_entity_id': 'feature_entity_id',
127
- 'carbon_feature_group_references.group_entity_id': 'group_entity_id',
128
- },
129
- TYPE_VALIDATION: {
130
- 'carbon_feature_group_references.feature_entity_id': {
131
- MYSQL_TYPE: 'binary',
132
- MAX_LENGTH: '16',
133
- AUTO_INCREMENT: false,
134
- SKIP_COLUMN_IN_POST: true
135
- },
136
- 'carbon_feature_group_references.group_entity_id': {
137
- MYSQL_TYPE: 'binary',
138
- MAX_LENGTH: '16',
139
- AUTO_INCREMENT: false,
140
- SKIP_COLUMN_IN_POST: true
141
- },
142
- },
143
- REGEX_VALIDATION: {}
144
- };
145
- const features = {
146
- TABLE_NAME: 'features',
147
- FEATURE_ENTITY_ID: 'carbon_features.feature_entity_id',
148
- FEATURE_CODE: 'carbon_features.feature_code',
149
- FEATURE_CREATION_DATE: 'carbon_features.feature_creation_date',
150
- PRIMARY: [
151
- 'carbon_features.feature_entity_id',
152
- ],
153
- COLUMNS: {
154
- 'carbon_features.feature_entity_id': 'feature_entity_id',
155
- 'carbon_features.feature_code': 'feature_code',
156
- 'carbon_features.feature_creation_date': 'feature_creation_date',
157
- },
158
- TYPE_VALIDATION: {
159
- 'carbon_features.feature_entity_id': {
160
- MYSQL_TYPE: 'binary',
161
- MAX_LENGTH: '16',
162
- AUTO_INCREMENT: false,
163
- SKIP_COLUMN_IN_POST: false
164
- },
165
- 'carbon_features.feature_code': {
166
- MYSQL_TYPE: 'varchar',
167
- MAX_LENGTH: '30',
168
- AUTO_INCREMENT: false,
169
- SKIP_COLUMN_IN_POST: false
170
- },
171
- 'carbon_features.feature_creation_date': {
172
- MYSQL_TYPE: 'datetime',
173
- MAX_LENGTH: '',
174
- AUTO_INCREMENT: false,
175
- SKIP_COLUMN_IN_POST: true
176
- },
177
- },
178
- REGEX_VALIDATION: {}
179
- };
180
- const group_references = {
181
- TABLE_NAME: 'group_references',
182
- GROUP_ID: 'carbon_group_references.group_id',
183
- ALLOWED_TO_GRANT_GROUP_ID: 'carbon_group_references.allowed_to_grant_group_id',
184
- PRIMARY: [],
185
- COLUMNS: {
186
- 'carbon_group_references.group_id': 'group_id',
187
- 'carbon_group_references.allowed_to_grant_group_id': 'allowed_to_grant_group_id',
188
- },
189
- TYPE_VALIDATION: {
190
- 'carbon_group_references.group_id': {
191
- MYSQL_TYPE: 'binary',
192
- MAX_LENGTH: '16',
193
- AUTO_INCREMENT: false,
194
- SKIP_COLUMN_IN_POST: true
195
- },
196
- 'carbon_group_references.allowed_to_grant_group_id': {
197
- MYSQL_TYPE: 'binary',
198
- MAX_LENGTH: '16',
199
- AUTO_INCREMENT: false,
200
- SKIP_COLUMN_IN_POST: true
201
- },
202
- },
203
- REGEX_VALIDATION: {}
204
- };
205
- const groups = {
206
- TABLE_NAME: 'groups',
207
- GROUP_NAME: 'carbon_groups.group_name',
208
- ENTITY_ID: 'carbon_groups.entity_id',
209
- CREATED_BY: 'carbon_groups.created_by',
210
- CREATION_DATE: 'carbon_groups.creation_date',
211
- PRIMARY: [
212
- 'carbon_groups.entity_id',
213
- ],
214
- COLUMNS: {
215
- 'carbon_groups.group_name': 'group_name',
216
- 'carbon_groups.entity_id': 'entity_id',
217
- 'carbon_groups.created_by': 'created_by',
218
- 'carbon_groups.creation_date': 'creation_date',
219
- },
220
- TYPE_VALIDATION: {
221
- 'carbon_groups.group_name': {
222
- MYSQL_TYPE: 'varchar',
223
- MAX_LENGTH: '20',
224
- AUTO_INCREMENT: false,
225
- SKIP_COLUMN_IN_POST: false
226
- },
227
- 'carbon_groups.entity_id': {
228
- MYSQL_TYPE: 'binary',
229
- MAX_LENGTH: '16',
230
- AUTO_INCREMENT: false,
231
- SKIP_COLUMN_IN_POST: false
232
- },
233
- 'carbon_groups.created_by': {
234
- MYSQL_TYPE: 'binary',
235
- MAX_LENGTH: '16',
236
- AUTO_INCREMENT: false,
237
- SKIP_COLUMN_IN_POST: false
238
- },
239
- 'carbon_groups.creation_date': {
240
- MYSQL_TYPE: 'datetime',
241
- MAX_LENGTH: '',
242
- AUTO_INCREMENT: false,
243
- SKIP_COLUMN_IN_POST: true
244
- },
245
- },
246
- REGEX_VALIDATION: {}
247
- };
248
- const history_logs = {
249
- TABLE_NAME: 'history_logs',
250
- HISTORY_UUID: 'carbon_history_logs.history_uuid',
251
- HISTORY_TABLE: 'carbon_history_logs.history_table',
252
- HISTORY_TYPE: 'carbon_history_logs.history_type',
253
- HISTORY_DATA: 'carbon_history_logs.history_data',
254
- HISTORY_ORIGINAL_QUERY: 'carbon_history_logs.history_original_query',
255
- HISTORY_TIME: 'carbon_history_logs.history_time',
256
- PRIMARY: [],
257
- COLUMNS: {
258
- 'carbon_history_logs.history_uuid': 'history_uuid',
259
- 'carbon_history_logs.history_table': 'history_table',
260
- 'carbon_history_logs.history_type': 'history_type',
261
- 'carbon_history_logs.history_data': 'history_data',
262
- 'carbon_history_logs.history_original_query': 'history_original_query',
263
- 'carbon_history_logs.history_time': 'history_time',
264
- },
265
- TYPE_VALIDATION: {
266
- 'carbon_history_logs.history_uuid': {
267
- MYSQL_TYPE: 'binary',
268
- MAX_LENGTH: '16',
269
- AUTO_INCREMENT: false,
270
- SKIP_COLUMN_IN_POST: false
271
- },
272
- 'carbon_history_logs.history_table': {
273
- MYSQL_TYPE: 'varchar',
274
- MAX_LENGTH: '255',
275
- AUTO_INCREMENT: false,
276
- SKIP_COLUMN_IN_POST: true
277
- },
278
- 'carbon_history_logs.history_type': {
279
- MYSQL_TYPE: 'varchar',
280
- MAX_LENGTH: '20',
281
- AUTO_INCREMENT: false,
282
- SKIP_COLUMN_IN_POST: true
283
- },
284
- 'carbon_history_logs.history_data': {
285
- MYSQL_TYPE: 'json',
286
- MAX_LENGTH: '',
287
- AUTO_INCREMENT: false,
288
- SKIP_COLUMN_IN_POST: true
289
- },
290
- 'carbon_history_logs.history_original_query': {
291
- MYSQL_TYPE: 'varchar',
292
- MAX_LENGTH: '1024',
293
- AUTO_INCREMENT: false,
294
- SKIP_COLUMN_IN_POST: true
295
- },
296
- 'carbon_history_logs.history_time': {
297
- MYSQL_TYPE: 'datetime',
298
- MAX_LENGTH: '',
299
- AUTO_INCREMENT: false,
300
- SKIP_COLUMN_IN_POST: true
301
- },
302
- },
303
- REGEX_VALIDATION: {}
304
- };
305
- const location_references = {
306
- TABLE_NAME: 'location_references',
307
- ENTITY_REFERENCE: 'carbon_location_references.entity_reference',
308
- LOCATION_REFERENCE: 'carbon_location_references.location_reference',
309
- LOCATION_TIME: 'carbon_location_references.location_time',
310
- PRIMARY: [],
311
- COLUMNS: {
312
- 'carbon_location_references.entity_reference': 'entity_reference',
313
- 'carbon_location_references.location_reference': 'location_reference',
314
- 'carbon_location_references.location_time': 'location_time',
315
- },
316
- TYPE_VALIDATION: {
317
- 'carbon_location_references.entity_reference': {
318
- MYSQL_TYPE: 'binary',
319
- MAX_LENGTH: '16',
320
- AUTO_INCREMENT: false,
321
- SKIP_COLUMN_IN_POST: false
322
- },
323
- 'carbon_location_references.location_reference': {
324
- MYSQL_TYPE: 'binary',
325
- MAX_LENGTH: '16',
326
- AUTO_INCREMENT: false,
327
- SKIP_COLUMN_IN_POST: false
328
- },
329
- 'carbon_location_references.location_time': {
330
- MYSQL_TYPE: 'datetime',
331
- MAX_LENGTH: '',
332
- AUTO_INCREMENT: false,
333
- SKIP_COLUMN_IN_POST: true
334
- },
335
- },
336
- REGEX_VALIDATION: {}
337
- };
338
- const locations = {
339
- TABLE_NAME: 'locations',
340
- ENTITY_ID: 'carbon_locations.entity_id',
341
- LATITUDE: 'carbon_locations.latitude',
342
- LONGITUDE: 'carbon_locations.longitude',
343
- STREET: 'carbon_locations.street',
344
- CITY: 'carbon_locations.city',
345
- STATE: 'carbon_locations.state',
346
- ELEVATION: 'carbon_locations.elevation',
347
- ZIP: 'carbon_locations.zip',
348
- PRIMARY: [
349
- 'carbon_locations.entity_id',
350
- ],
351
- COLUMNS: {
352
- 'carbon_locations.entity_id': 'entity_id',
353
- 'carbon_locations.latitude': 'latitude',
354
- 'carbon_locations.longitude': 'longitude',
355
- 'carbon_locations.street': 'street',
356
- 'carbon_locations.city': 'city',
357
- 'carbon_locations.state': 'state',
358
- 'carbon_locations.elevation': 'elevation',
359
- 'carbon_locations.zip': 'zip',
360
- },
361
- TYPE_VALIDATION: {
362
- 'carbon_locations.entity_id': {
363
- MYSQL_TYPE: 'binary',
364
- MAX_LENGTH: '16',
365
- AUTO_INCREMENT: false,
366
- SKIP_COLUMN_IN_POST: false
367
- },
368
- 'carbon_locations.latitude': {
369
- MYSQL_TYPE: 'varchar',
370
- MAX_LENGTH: '225',
371
- AUTO_INCREMENT: false,
372
- SKIP_COLUMN_IN_POST: true
373
- },
374
- 'carbon_locations.longitude': {
375
- MYSQL_TYPE: 'varchar',
376
- MAX_LENGTH: '225',
377
- AUTO_INCREMENT: false,
378
- SKIP_COLUMN_IN_POST: true
379
- },
380
- 'carbon_locations.street': {
381
- MYSQL_TYPE: 'varchar',
382
- MAX_LENGTH: '225',
383
- AUTO_INCREMENT: false,
384
- SKIP_COLUMN_IN_POST: true
385
- },
386
- 'carbon_locations.city': {
387
- MYSQL_TYPE: 'varchar',
388
- MAX_LENGTH: '40',
389
- AUTO_INCREMENT: false,
390
- SKIP_COLUMN_IN_POST: true
391
- },
392
- 'carbon_locations.state': {
393
- MYSQL_TYPE: 'varchar',
394
- MAX_LENGTH: '10',
395
- AUTO_INCREMENT: false,
396
- SKIP_COLUMN_IN_POST: true
397
- },
398
- 'carbon_locations.elevation': {
399
- MYSQL_TYPE: 'varchar',
400
- MAX_LENGTH: '40',
401
- AUTO_INCREMENT: false,
402
- SKIP_COLUMN_IN_POST: true
403
- },
404
- 'carbon_locations.zip': {
405
- MYSQL_TYPE: 'int',
406
- MAX_LENGTH: '',
407
- AUTO_INCREMENT: false,
408
- SKIP_COLUMN_IN_POST: true
409
- },
410
- },
411
- REGEX_VALIDATION: {}
412
- };
413
- const photos = {
414
- TABLE_NAME: 'photos',
415
- PARENT_ID: 'carbon_photos.parent_id',
416
- PHOTO_ID: 'carbon_photos.photo_id',
417
- USER_ID: 'carbon_photos.user_id',
418
- PHOTO_PATH: 'carbon_photos.photo_path',
419
- PHOTO_DESCRIPTION: 'carbon_photos.photo_description',
420
- PRIMARY: [
421
- 'carbon_photos.parent_id',
422
- ],
423
- COLUMNS: {
424
- 'carbon_photos.parent_id': 'parent_id',
425
- 'carbon_photos.photo_id': 'photo_id',
426
- 'carbon_photos.user_id': 'user_id',
427
- 'carbon_photos.photo_path': 'photo_path',
428
- 'carbon_photos.photo_description': 'photo_description',
429
- },
430
- TYPE_VALIDATION: {
431
- 'carbon_photos.parent_id': {
432
- MYSQL_TYPE: 'binary',
433
- MAX_LENGTH: '16',
434
- AUTO_INCREMENT: false,
435
- SKIP_COLUMN_IN_POST: false
436
- },
437
- 'carbon_photos.photo_id': {
438
- MYSQL_TYPE: 'binary',
439
- MAX_LENGTH: '16',
440
- AUTO_INCREMENT: false,
441
- SKIP_COLUMN_IN_POST: false
442
- },
443
- 'carbon_photos.user_id': {
444
- MYSQL_TYPE: 'binary',
445
- MAX_LENGTH: '16',
446
- AUTO_INCREMENT: false,
447
- SKIP_COLUMN_IN_POST: false
448
- },
449
- 'carbon_photos.photo_path': {
450
- MYSQL_TYPE: 'varchar',
451
- MAX_LENGTH: '225',
452
- AUTO_INCREMENT: false,
453
- SKIP_COLUMN_IN_POST: false
454
- },
455
- 'carbon_photos.photo_description': {
456
- MYSQL_TYPE: 'text',
457
- MAX_LENGTH: '',
458
- AUTO_INCREMENT: false,
459
- SKIP_COLUMN_IN_POST: false
460
- },
461
- },
462
- REGEX_VALIDATION: {}
463
- };
464
- const reports = {
465
- TABLE_NAME: 'reports',
466
- LOG_LEVEL: 'carbon_reports.log_level',
467
- REPORT: 'carbon_reports.report',
468
- DATE: 'carbon_reports.date',
469
- CALL_TRACE: 'carbon_reports.call_trace',
470
- PRIMARY: [],
471
- COLUMNS: {
472
- 'carbon_reports.log_level': 'log_level',
473
- 'carbon_reports.report': 'report',
474
- 'carbon_reports.date': 'date',
475
- 'carbon_reports.call_trace': 'call_trace',
476
- },
477
- TYPE_VALIDATION: {
478
- 'carbon_reports.log_level': {
479
- MYSQL_TYPE: 'varchar',
480
- MAX_LENGTH: '20',
481
- AUTO_INCREMENT: false,
482
- SKIP_COLUMN_IN_POST: true
483
- },
484
- 'carbon_reports.report': {
485
- MYSQL_TYPE: 'text',
486
- MAX_LENGTH: '',
487
- AUTO_INCREMENT: false,
488
- SKIP_COLUMN_IN_POST: false
489
- },
490
- 'carbon_reports.date': {
491
- MYSQL_TYPE: 'datetime',
492
- MAX_LENGTH: '',
493
- AUTO_INCREMENT: false,
494
- SKIP_COLUMN_IN_POST: true
495
- },
496
- 'carbon_reports.call_trace': {
497
- MYSQL_TYPE: 'text',
498
- MAX_LENGTH: '',
499
- AUTO_INCREMENT: false,
500
- SKIP_COLUMN_IN_POST: false
501
- },
502
- },
503
- REGEX_VALIDATION: {}
504
- };
505
- const sessions = {
506
- TABLE_NAME: 'sessions',
507
- USER_ID: 'carbon_sessions.user_id',
508
- USER_IP: 'carbon_sessions.user_ip',
509
- SESSION_ID: 'carbon_sessions.session_id',
510
- SESSION_EXPIRES: 'carbon_sessions.session_expires',
511
- SESSION_DATA: 'carbon_sessions.session_data',
512
- USER_ONLINE_STATUS: 'carbon_sessions.user_online_status',
513
- PRIMARY: [
514
- 'carbon_sessions.session_id',
515
- ],
516
- COLUMNS: {
517
- 'carbon_sessions.user_id': 'user_id',
518
- 'carbon_sessions.user_ip': 'user_ip',
519
- 'carbon_sessions.session_id': 'session_id',
520
- 'carbon_sessions.session_expires': 'session_expires',
521
- 'carbon_sessions.session_data': 'session_data',
522
- 'carbon_sessions.user_online_status': 'user_online_status',
523
- },
524
- TYPE_VALIDATION: {
525
- 'carbon_sessions.user_id': {
526
- MYSQL_TYPE: 'binary',
527
- MAX_LENGTH: '16',
528
- AUTO_INCREMENT: false,
529
- SKIP_COLUMN_IN_POST: false
530
- },
531
- 'carbon_sessions.user_ip': {
532
- MYSQL_TYPE: 'varchar',
533
- MAX_LENGTH: '20',
534
- AUTO_INCREMENT: false,
535
- SKIP_COLUMN_IN_POST: true
536
- },
537
- 'carbon_sessions.session_id': {
538
- MYSQL_TYPE: 'varchar',
539
- MAX_LENGTH: '255',
540
- AUTO_INCREMENT: false,
541
- SKIP_COLUMN_IN_POST: false
542
- },
543
- 'carbon_sessions.session_expires': {
544
- MYSQL_TYPE: 'datetime',
545
- MAX_LENGTH: '',
546
- AUTO_INCREMENT: false,
547
- SKIP_COLUMN_IN_POST: false
548
- },
549
- 'carbon_sessions.session_data': {
550
- MYSQL_TYPE: 'text',
551
- MAX_LENGTH: '',
552
- AUTO_INCREMENT: false,
553
- SKIP_COLUMN_IN_POST: false
554
- },
555
- 'carbon_sessions.user_online_status': {
556
- MYSQL_TYPE: 'tinyint',
557
- MAX_LENGTH: '',
558
- AUTO_INCREMENT: false,
559
- SKIP_COLUMN_IN_POST: true
560
- },
561
- },
562
- REGEX_VALIDATION: {}
563
- };
564
- const user_followers = {
565
- TABLE_NAME: 'user_followers',
566
- FOLLOWER_TABLE_ID: 'carbon_user_followers.follower_table_id',
567
- FOLLOWS_USER_ID: 'carbon_user_followers.follows_user_id',
568
- USER_ID: 'carbon_user_followers.user_id',
569
- PRIMARY: [
570
- 'carbon_user_followers.follower_table_id',
571
- ],
572
- COLUMNS: {
573
- 'carbon_user_followers.follower_table_id': 'follower_table_id',
574
- 'carbon_user_followers.follows_user_id': 'follows_user_id',
575
- 'carbon_user_followers.user_id': 'user_id',
576
- },
577
- TYPE_VALIDATION: {
578
- 'carbon_user_followers.follower_table_id': {
579
- MYSQL_TYPE: 'binary',
580
- MAX_LENGTH: '16',
581
- AUTO_INCREMENT: false,
582
- SKIP_COLUMN_IN_POST: false
583
- },
584
- 'carbon_user_followers.follows_user_id': {
585
- MYSQL_TYPE: 'binary',
586
- MAX_LENGTH: '16',
587
- AUTO_INCREMENT: false,
588
- SKIP_COLUMN_IN_POST: false
589
- },
590
- 'carbon_user_followers.user_id': {
591
- MYSQL_TYPE: 'binary',
592
- MAX_LENGTH: '16',
593
- AUTO_INCREMENT: false,
594
- SKIP_COLUMN_IN_POST: false
595
- },
596
- },
597
- REGEX_VALIDATION: {}
598
- };
599
- const user_groups = {
600
- TABLE_NAME: 'user_groups',
601
- GROUP_ID: 'carbon_user_groups.group_id',
602
- USER_ID: 'carbon_user_groups.user_id',
603
- PRIMARY: [],
604
- COLUMNS: {
605
- 'carbon_user_groups.group_id': 'group_id',
606
- 'carbon_user_groups.user_id': 'user_id',
607
- },
608
- TYPE_VALIDATION: {
609
- 'carbon_user_groups.group_id': {
610
- MYSQL_TYPE: 'binary',
611
- MAX_LENGTH: '16',
612
- AUTO_INCREMENT: false,
613
- SKIP_COLUMN_IN_POST: true
614
- },
615
- 'carbon_user_groups.user_id': {
616
- MYSQL_TYPE: 'binary',
617
- MAX_LENGTH: '16',
618
- AUTO_INCREMENT: false,
619
- SKIP_COLUMN_IN_POST: true
620
- },
621
- },
622
- REGEX_VALIDATION: {}
623
- };
624
- const user_messages = {
625
- TABLE_NAME: 'user_messages',
626
- MESSAGE_ID: 'carbon_user_messages.message_id',
627
- FROM_USER_ID: 'carbon_user_messages.from_user_id',
628
- TO_USER_ID: 'carbon_user_messages.to_user_id',
629
- MESSAGE: 'carbon_user_messages.message',
630
- MESSAGE_READ: 'carbon_user_messages.message_read',
631
- CREATION_DATE: 'carbon_user_messages.creation_date',
632
- PRIMARY: [
633
- 'carbon_user_messages.message_id',
634
- ],
635
- COLUMNS: {
636
- 'carbon_user_messages.message_id': 'message_id',
637
- 'carbon_user_messages.from_user_id': 'from_user_id',
638
- 'carbon_user_messages.to_user_id': 'to_user_id',
639
- 'carbon_user_messages.message': 'message',
640
- 'carbon_user_messages.message_read': 'message_read',
641
- 'carbon_user_messages.creation_date': 'creation_date',
642
- },
643
- TYPE_VALIDATION: {
644
- 'carbon_user_messages.message_id': {
645
- MYSQL_TYPE: 'binary',
646
- MAX_LENGTH: '16',
647
- AUTO_INCREMENT: false,
648
- SKIP_COLUMN_IN_POST: false
649
- },
650
- 'carbon_user_messages.from_user_id': {
651
- MYSQL_TYPE: 'binary',
652
- MAX_LENGTH: '16',
653
- AUTO_INCREMENT: false,
654
- SKIP_COLUMN_IN_POST: false
655
- },
656
- 'carbon_user_messages.to_user_id': {
657
- MYSQL_TYPE: 'binary',
658
- MAX_LENGTH: '16',
659
- AUTO_INCREMENT: false,
660
- SKIP_COLUMN_IN_POST: false
661
- },
662
- 'carbon_user_messages.message': {
663
- MYSQL_TYPE: 'text',
664
- MAX_LENGTH: '',
665
- AUTO_INCREMENT: false,
666
- SKIP_COLUMN_IN_POST: false
667
- },
668
- 'carbon_user_messages.message_read': {
669
- MYSQL_TYPE: 'tinyint',
670
- MAX_LENGTH: '',
671
- AUTO_INCREMENT: false,
672
- SKIP_COLUMN_IN_POST: true
673
- },
674
- 'carbon_user_messages.creation_date': {
675
- MYSQL_TYPE: 'datetime',
676
- MAX_LENGTH: '',
677
- AUTO_INCREMENT: false,
678
- SKIP_COLUMN_IN_POST: true
679
- },
680
- },
681
- REGEX_VALIDATION: {}
682
- };
683
- const user_sessions = {
684
- TABLE_NAME: 'user_sessions',
685
- USER_ID: 'carbon_user_sessions.user_id',
686
- USER_IP: 'carbon_user_sessions.user_ip',
687
- SESSION_ID: 'carbon_user_sessions.session_id',
688
- SESSION_EXPIRES: 'carbon_user_sessions.session_expires',
689
- SESSION_DATA: 'carbon_user_sessions.session_data',
690
- USER_ONLINE_STATUS: 'carbon_user_sessions.user_online_status',
691
- PRIMARY: [
692
- 'carbon_user_sessions.session_id',
693
- ],
694
- COLUMNS: {
695
- 'carbon_user_sessions.user_id': 'user_id',
696
- 'carbon_user_sessions.user_ip': 'user_ip',
697
- 'carbon_user_sessions.session_id': 'session_id',
698
- 'carbon_user_sessions.session_expires': 'session_expires',
699
- 'carbon_user_sessions.session_data': 'session_data',
700
- 'carbon_user_sessions.user_online_status': 'user_online_status',
701
- },
702
- TYPE_VALIDATION: {
703
- 'carbon_user_sessions.user_id': {
704
- MYSQL_TYPE: 'binary',
705
- MAX_LENGTH: '16',
706
- AUTO_INCREMENT: false,
707
- SKIP_COLUMN_IN_POST: false
708
- },
709
- 'carbon_user_sessions.user_ip': {
710
- MYSQL_TYPE: 'binary',
711
- MAX_LENGTH: '16',
712
- AUTO_INCREMENT: false,
713
- SKIP_COLUMN_IN_POST: true
714
- },
715
- 'carbon_user_sessions.session_id': {
716
- MYSQL_TYPE: 'varchar',
717
- MAX_LENGTH: '255',
718
- AUTO_INCREMENT: false,
719
- SKIP_COLUMN_IN_POST: false
720
- },
721
- 'carbon_user_sessions.session_expires': {
722
- MYSQL_TYPE: 'datetime',
723
- MAX_LENGTH: '',
724
- AUTO_INCREMENT: false,
725
- SKIP_COLUMN_IN_POST: false
726
- },
727
- 'carbon_user_sessions.session_data': {
728
- MYSQL_TYPE: 'text',
729
- MAX_LENGTH: '',
730
- AUTO_INCREMENT: false,
731
- SKIP_COLUMN_IN_POST: false
732
- },
733
- 'carbon_user_sessions.user_online_status': {
734
- MYSQL_TYPE: 'tinyint',
735
- MAX_LENGTH: '',
736
- AUTO_INCREMENT: false,
737
- SKIP_COLUMN_IN_POST: true
738
- },
739
- },
740
- REGEX_VALIDATION: {}
741
- };
742
- const user_tasks = {
743
- TABLE_NAME: 'user_tasks',
744
- TASK_ID: 'carbon_user_tasks.task_id',
745
- USER_ID: 'carbon_user_tasks.user_id',
746
- FROM_ID: 'carbon_user_tasks.from_id',
747
- TASK_NAME: 'carbon_user_tasks.task_name',
748
- TASK_DESCRIPTION: 'carbon_user_tasks.task_description',
749
- PERCENT_COMPLETE: 'carbon_user_tasks.percent_complete',
750
- START_DATE: 'carbon_user_tasks.start_date',
751
- END_DATE: 'carbon_user_tasks.end_date',
752
- PRIMARY: [
753
- 'carbon_user_tasks.task_id',
754
- ],
755
- COLUMNS: {
756
- 'carbon_user_tasks.task_id': 'task_id',
757
- 'carbon_user_tasks.user_id': 'user_id',
758
- 'carbon_user_tasks.from_id': 'from_id',
759
- 'carbon_user_tasks.task_name': 'task_name',
760
- 'carbon_user_tasks.task_description': 'task_description',
761
- 'carbon_user_tasks.percent_complete': 'percent_complete',
762
- 'carbon_user_tasks.start_date': 'start_date',
763
- 'carbon_user_tasks.end_date': 'end_date',
764
- },
765
- TYPE_VALIDATION: {
766
- 'carbon_user_tasks.task_id': {
767
- MYSQL_TYPE: 'binary',
768
- MAX_LENGTH: '16',
769
- AUTO_INCREMENT: false,
770
- SKIP_COLUMN_IN_POST: false
771
- },
772
- 'carbon_user_tasks.user_id': {
773
- MYSQL_TYPE: 'binary',
774
- MAX_LENGTH: '16',
775
- AUTO_INCREMENT: false,
776
- SKIP_COLUMN_IN_POST: false
777
- },
778
- 'carbon_user_tasks.from_id': {
779
- MYSQL_TYPE: 'binary',
780
- MAX_LENGTH: '16',
781
- AUTO_INCREMENT: false,
782
- SKIP_COLUMN_IN_POST: true
783
- },
784
- 'carbon_user_tasks.task_name': {
785
- MYSQL_TYPE: 'varchar',
786
- MAX_LENGTH: '40',
787
- AUTO_INCREMENT: false,
788
- SKIP_COLUMN_IN_POST: false
789
- },
790
- 'carbon_user_tasks.task_description': {
791
- MYSQL_TYPE: 'varchar',
792
- MAX_LENGTH: '225',
793
- AUTO_INCREMENT: false,
794
- SKIP_COLUMN_IN_POST: true
795
- },
796
- 'carbon_user_tasks.percent_complete': {
797
- MYSQL_TYPE: 'int',
798
- MAX_LENGTH: '',
799
- AUTO_INCREMENT: false,
800
- SKIP_COLUMN_IN_POST: true
801
- },
802
- 'carbon_user_tasks.start_date': {
803
- MYSQL_TYPE: 'datetime',
804
- MAX_LENGTH: '',
805
- AUTO_INCREMENT: false,
806
- SKIP_COLUMN_IN_POST: true
807
- },
808
- 'carbon_user_tasks.end_date': {
809
- MYSQL_TYPE: 'datetime',
810
- MAX_LENGTH: '',
811
- AUTO_INCREMENT: false,
812
- SKIP_COLUMN_IN_POST: true
813
- },
814
- },
815
- REGEX_VALIDATION: {}
816
- };
817
- const users = {
818
- TABLE_NAME: 'users',
819
- USER_USERNAME: 'carbon_users.user_username',
820
- USER_PASSWORD: 'carbon_users.user_password',
821
- USER_ID: 'carbon_users.user_id',
822
- USER_TYPE: 'carbon_users.user_type',
823
- USER_SPORT: 'carbon_users.user_sport',
824
- USER_SESSION_ID: 'carbon_users.user_session_id',
825
- USER_FACEBOOK_ID: 'carbon_users.user_facebook_id',
826
- USER_FIRST_NAME: 'carbon_users.user_first_name',
827
- USER_LAST_NAME: 'carbon_users.user_last_name',
828
- USER_PROFILE_PIC: 'carbon_users.user_profile_pic',
829
- USER_PROFILE_URI: 'carbon_users.user_profile_uri',
830
- USER_COVER_PHOTO: 'carbon_users.user_cover_photo',
831
- USER_BIRTHDAY: 'carbon_users.user_birthday',
832
- USER_GENDER: 'carbon_users.user_gender',
833
- USER_ABOUT_ME: 'carbon_users.user_about_me',
834
- USER_RANK: 'carbon_users.user_rank',
835
- USER_EMAIL: 'carbon_users.user_email',
836
- USER_EMAIL_CODE: 'carbon_users.user_email_code',
837
- USER_EMAIL_CONFIRMED: 'carbon_users.user_email_confirmed',
838
- USER_GENERATED_STRING: 'carbon_users.user_generated_string',
839
- USER_MEMBERSHIP: 'carbon_users.user_membership',
840
- USER_DEACTIVATED: 'carbon_users.user_deactivated',
841
- USER_LAST_LOGIN: 'carbon_users.user_last_login',
842
- USER_IP: 'carbon_users.user_ip',
843
- USER_EDUCATION_HISTORY: 'carbon_users.user_education_history',
844
- USER_LOCATION: 'carbon_users.user_location',
845
- USER_CREATION_DATE: 'carbon_users.user_creation_date',
846
- PRIMARY: [
847
- 'carbon_users.user_id',
848
- ],
849
- COLUMNS: {
850
- 'carbon_users.user_username': 'user_username',
851
- 'carbon_users.user_password': 'user_password',
852
- 'carbon_users.user_id': 'user_id',
853
- 'carbon_users.user_type': 'user_type',
854
- 'carbon_users.user_sport': 'user_sport',
855
- 'carbon_users.user_session_id': 'user_session_id',
856
- 'carbon_users.user_facebook_id': 'user_facebook_id',
857
- 'carbon_users.user_first_name': 'user_first_name',
858
- 'carbon_users.user_last_name': 'user_last_name',
859
- 'carbon_users.user_profile_pic': 'user_profile_pic',
860
- 'carbon_users.user_profile_uri': 'user_profile_uri',
861
- 'carbon_users.user_cover_photo': 'user_cover_photo',
862
- 'carbon_users.user_birthday': 'user_birthday',
863
- 'carbon_users.user_gender': 'user_gender',
864
- 'carbon_users.user_about_me': 'user_about_me',
865
- 'carbon_users.user_rank': 'user_rank',
866
- 'carbon_users.user_email': 'user_email',
867
- 'carbon_users.user_email_code': 'user_email_code',
868
- 'carbon_users.user_email_confirmed': 'user_email_confirmed',
869
- 'carbon_users.user_generated_string': 'user_generated_string',
870
- 'carbon_users.user_membership': 'user_membership',
871
- 'carbon_users.user_deactivated': 'user_deactivated',
872
- 'carbon_users.user_last_login': 'user_last_login',
873
- 'carbon_users.user_ip': 'user_ip',
874
- 'carbon_users.user_education_history': 'user_education_history',
875
- 'carbon_users.user_location': 'user_location',
876
- 'carbon_users.user_creation_date': 'user_creation_date',
877
- },
878
- TYPE_VALIDATION: {
879
- 'carbon_users.user_username': {
880
- MYSQL_TYPE: 'varchar',
881
- MAX_LENGTH: '100',
882
- AUTO_INCREMENT: false,
883
- SKIP_COLUMN_IN_POST: false
884
- },
885
- 'carbon_users.user_password': {
886
- MYSQL_TYPE: 'varchar',
887
- MAX_LENGTH: '225',
888
- AUTO_INCREMENT: false,
889
- SKIP_COLUMN_IN_POST: false
890
- },
891
- 'carbon_users.user_id': {
892
- MYSQL_TYPE: 'binary',
893
- MAX_LENGTH: '16',
894
- AUTO_INCREMENT: false,
895
- SKIP_COLUMN_IN_POST: false
896
- },
897
- 'carbon_users.user_type': {
898
- MYSQL_TYPE: 'varchar',
899
- MAX_LENGTH: '20',
900
- AUTO_INCREMENT: false,
901
- SKIP_COLUMN_IN_POST: true
902
- },
903
- 'carbon_users.user_sport': {
904
- MYSQL_TYPE: 'varchar',
905
- MAX_LENGTH: '20',
906
- AUTO_INCREMENT: false,
907
- SKIP_COLUMN_IN_POST: true
908
- },
909
- 'carbon_users.user_session_id': {
910
- MYSQL_TYPE: 'varchar',
911
- MAX_LENGTH: '225',
912
- AUTO_INCREMENT: false,
913
- SKIP_COLUMN_IN_POST: true
914
- },
915
- 'carbon_users.user_facebook_id': {
916
- MYSQL_TYPE: 'varchar',
917
- MAX_LENGTH: '225',
918
- AUTO_INCREMENT: false,
919
- SKIP_COLUMN_IN_POST: true
920
- },
921
- 'carbon_users.user_first_name': {
922
- MYSQL_TYPE: 'varchar',
923
- MAX_LENGTH: '25',
924
- AUTO_INCREMENT: false,
925
- SKIP_COLUMN_IN_POST: false
926
- },
927
- 'carbon_users.user_last_name': {
928
- MYSQL_TYPE: 'varchar',
929
- MAX_LENGTH: '25',
930
- AUTO_INCREMENT: false,
931
- SKIP_COLUMN_IN_POST: false
932
- },
933
- 'carbon_users.user_profile_pic': {
934
- MYSQL_TYPE: 'varchar',
935
- MAX_LENGTH: '225',
936
- AUTO_INCREMENT: false,
937
- SKIP_COLUMN_IN_POST: true
938
- },
939
- 'carbon_users.user_profile_uri': {
940
- MYSQL_TYPE: 'varchar',
941
- MAX_LENGTH: '225',
942
- AUTO_INCREMENT: false,
943
- SKIP_COLUMN_IN_POST: true
944
- },
945
- 'carbon_users.user_cover_photo': {
946
- MYSQL_TYPE: 'varchar',
947
- MAX_LENGTH: '225',
948
- AUTO_INCREMENT: false,
949
- SKIP_COLUMN_IN_POST: true
950
- },
951
- 'carbon_users.user_birthday': {
952
- MYSQL_TYPE: 'varchar',
953
- MAX_LENGTH: '9',
954
- AUTO_INCREMENT: false,
955
- SKIP_COLUMN_IN_POST: true
956
- },
957
- 'carbon_users.user_gender': {
958
- MYSQL_TYPE: 'varchar',
959
- MAX_LENGTH: '25',
960
- AUTO_INCREMENT: false,
961
- SKIP_COLUMN_IN_POST: true
962
- },
963
- 'carbon_users.user_about_me': {
964
- MYSQL_TYPE: 'varchar',
965
- MAX_LENGTH: '225',
966
- AUTO_INCREMENT: false,
967
- SKIP_COLUMN_IN_POST: true
968
- },
969
- 'carbon_users.user_rank': {
970
- MYSQL_TYPE: 'int',
971
- MAX_LENGTH: '',
972
- AUTO_INCREMENT: false,
973
- SKIP_COLUMN_IN_POST: true
974
- },
975
- 'carbon_users.user_email': {
976
- MYSQL_TYPE: 'varchar',
977
- MAX_LENGTH: '50',
978
- AUTO_INCREMENT: false,
979
- SKIP_COLUMN_IN_POST: false
980
- },
981
- 'carbon_users.user_email_code': {
982
- MYSQL_TYPE: 'varchar',
983
- MAX_LENGTH: '225',
984
- AUTO_INCREMENT: false,
985
- SKIP_COLUMN_IN_POST: true
986
- },
987
- 'carbon_users.user_email_confirmed': {
988
- MYSQL_TYPE: 'tinyint',
989
- MAX_LENGTH: '',
990
- AUTO_INCREMENT: false,
991
- SKIP_COLUMN_IN_POST: true
992
- },
993
- 'carbon_users.user_generated_string': {
994
- MYSQL_TYPE: 'varchar',
995
- MAX_LENGTH: '200',
996
- AUTO_INCREMENT: false,
997
- SKIP_COLUMN_IN_POST: true
998
- },
999
- 'carbon_users.user_membership': {
1000
- MYSQL_TYPE: 'int',
1001
- MAX_LENGTH: '',
1002
- AUTO_INCREMENT: false,
1003
- SKIP_COLUMN_IN_POST: true
1004
- },
1005
- 'carbon_users.user_deactivated': {
1006
- MYSQL_TYPE: 'tinyint',
1007
- MAX_LENGTH: '',
1008
- AUTO_INCREMENT: false,
1009
- SKIP_COLUMN_IN_POST: true
1010
- },
1011
- 'carbon_users.user_last_login': {
1012
- MYSQL_TYPE: 'datetime',
1013
- MAX_LENGTH: '',
1014
- AUTO_INCREMENT: false,
1015
- SKIP_COLUMN_IN_POST: true
1016
- },
1017
- 'carbon_users.user_ip': {
1018
- MYSQL_TYPE: 'varchar',
1019
- MAX_LENGTH: '20',
1020
- AUTO_INCREMENT: false,
1021
- SKIP_COLUMN_IN_POST: false
1022
- },
1023
- 'carbon_users.user_education_history': {
1024
- MYSQL_TYPE: 'varchar',
1025
- MAX_LENGTH: '200',
1026
- AUTO_INCREMENT: false,
1027
- SKIP_COLUMN_IN_POST: true
1028
- },
1029
- 'carbon_users.user_location': {
1030
- MYSQL_TYPE: 'varchar',
1031
- MAX_LENGTH: '20',
1032
- AUTO_INCREMENT: false,
1033
- SKIP_COLUMN_IN_POST: true
1034
- },
1035
- 'carbon_users.user_creation_date': {
1036
- MYSQL_TYPE: 'datetime',
1037
- MAX_LENGTH: '',
1038
- AUTO_INCREMENT: false,
1039
- SKIP_COLUMN_IN_POST: true
1040
- },
1041
- },
1042
- REGEX_VALIDATION: {}
1043
- };
1044
- const wp_commentmeta = {
1045
- TABLE_NAME: 'wp_commentmeta',
1046
- META_ID: 'carbon_wp_commentmeta.meta_id',
1047
- COMMENT_ID: 'carbon_wp_commentmeta.comment_id',
1048
- META_KEY: 'carbon_wp_commentmeta.meta_key',
1049
- META_VALUE: 'carbon_wp_commentmeta.meta_value',
1050
- PRIMARY: [
1051
- 'carbon_wp_commentmeta.meta_id',
1052
- ],
1053
- COLUMNS: {
1054
- 'carbon_wp_commentmeta.meta_id': 'meta_id',
1055
- 'carbon_wp_commentmeta.comment_id': 'comment_id',
1056
- 'carbon_wp_commentmeta.meta_key': 'meta_key',
1057
- 'carbon_wp_commentmeta.meta_value': 'meta_value',
1058
- },
1059
- TYPE_VALIDATION: {
1060
- 'carbon_wp_commentmeta.meta_id': {
1061
- MYSQL_TYPE: 'bigint unsigned',
1062
- MAX_LENGTH: '',
1063
- AUTO_INCREMENT: true,
1064
- SKIP_COLUMN_IN_POST: true
1065
- },
1066
- 'carbon_wp_commentmeta.comment_id': {
1067
- MYSQL_TYPE: 'bigint unsigned',
1068
- MAX_LENGTH: '',
1069
- AUTO_INCREMENT: false,
1070
- SKIP_COLUMN_IN_POST: true
1071
- },
1072
- 'carbon_wp_commentmeta.meta_key': {
1073
- MYSQL_TYPE: 'varchar',
1074
- MAX_LENGTH: '255',
1075
- AUTO_INCREMENT: false,
1076
- SKIP_COLUMN_IN_POST: true
1077
- },
1078
- 'carbon_wp_commentmeta.meta_value': {
1079
- MYSQL_TYPE: 'longtext',
1080
- MAX_LENGTH: '',
1081
- AUTO_INCREMENT: false,
1082
- SKIP_COLUMN_IN_POST: false
1083
- },
1084
- },
1085
- REGEX_VALIDATION: {}
1086
- };
1087
- const wp_comments = {
1088
- TABLE_NAME: 'wp_comments',
1089
- COMMENT_ID: 'carbon_wp_comments.comment_ID',
1090
- COMMENT_POST_ID: 'carbon_wp_comments.comment_post_ID',
1091
- COMMENT_AUTHOR: 'carbon_wp_comments.comment_author',
1092
- COMMENT_AUTHOR_EMAIL: 'carbon_wp_comments.comment_author_email',
1093
- COMMENT_AUTHOR_URL: 'carbon_wp_comments.comment_author_url',
1094
- COMMENT_AUTHOR_IP: 'carbon_wp_comments.comment_author_IP',
1095
- COMMENT_DATE: 'carbon_wp_comments.comment_date',
1096
- COMMENT_DATE_GMT: 'carbon_wp_comments.comment_date_gmt',
1097
- COMMENT_CONTENT: 'carbon_wp_comments.comment_content',
1098
- COMMENT_KARMA: 'carbon_wp_comments.comment_karma',
1099
- COMMENT_APPROVED: 'carbon_wp_comments.comment_approved',
1100
- COMMENT_AGENT: 'carbon_wp_comments.comment_agent',
1101
- COMMENT_TYPE: 'carbon_wp_comments.comment_type',
1102
- COMMENT_PARENT: 'carbon_wp_comments.comment_parent',
1103
- USER_ID: 'carbon_wp_comments.user_id',
1104
- PRIMARY: [
1105
- 'carbon_wp_comments.comment_ID',
1106
- ],
1107
- COLUMNS: {
1108
- 'carbon_wp_comments.comment_ID': 'comment_ID',
1109
- 'carbon_wp_comments.comment_post_ID': 'comment_post_ID',
1110
- 'carbon_wp_comments.comment_author': 'comment_author',
1111
- 'carbon_wp_comments.comment_author_email': 'comment_author_email',
1112
- 'carbon_wp_comments.comment_author_url': 'comment_author_url',
1113
- 'carbon_wp_comments.comment_author_IP': 'comment_author_IP',
1114
- 'carbon_wp_comments.comment_date': 'comment_date',
1115
- 'carbon_wp_comments.comment_date_gmt': 'comment_date_gmt',
1116
- 'carbon_wp_comments.comment_content': 'comment_content',
1117
- 'carbon_wp_comments.comment_karma': 'comment_karma',
1118
- 'carbon_wp_comments.comment_approved': 'comment_approved',
1119
- 'carbon_wp_comments.comment_agent': 'comment_agent',
1120
- 'carbon_wp_comments.comment_type': 'comment_type',
1121
- 'carbon_wp_comments.comment_parent': 'comment_parent',
1122
- 'carbon_wp_comments.user_id': 'user_id',
1123
- },
1124
- TYPE_VALIDATION: {
1125
- 'carbon_wp_comments.comment_ID': {
1126
- MYSQL_TYPE: 'bigint unsigned',
1127
- MAX_LENGTH: '',
1128
- AUTO_INCREMENT: true,
1129
- SKIP_COLUMN_IN_POST: true
1130
- },
1131
- 'carbon_wp_comments.comment_post_ID': {
1132
- MYSQL_TYPE: 'bigint unsigned',
1133
- MAX_LENGTH: '',
1134
- AUTO_INCREMENT: false,
1135
- SKIP_COLUMN_IN_POST: true
1136
- },
1137
- 'carbon_wp_comments.comment_author': {
1138
- MYSQL_TYPE: 'tinytext',
1139
- MAX_LENGTH: '',
1140
- AUTO_INCREMENT: false,
1141
- SKIP_COLUMN_IN_POST: false
1142
- },
1143
- 'carbon_wp_comments.comment_author_email': {
1144
- MYSQL_TYPE: 'varchar',
1145
- MAX_LENGTH: '100',
1146
- AUTO_INCREMENT: false,
1147
- SKIP_COLUMN_IN_POST: true
1148
- },
1149
- 'carbon_wp_comments.comment_author_url': {
1150
- MYSQL_TYPE: 'varchar',
1151
- MAX_LENGTH: '200',
1152
- AUTO_INCREMENT: false,
1153
- SKIP_COLUMN_IN_POST: true
1154
- },
1155
- 'carbon_wp_comments.comment_author_IP': {
1156
- MYSQL_TYPE: 'varchar',
1157
- MAX_LENGTH: '100',
1158
- AUTO_INCREMENT: false,
1159
- SKIP_COLUMN_IN_POST: true
1160
- },
1161
- 'carbon_wp_comments.comment_date': {
1162
- MYSQL_TYPE: 'datetime',
1163
- MAX_LENGTH: '',
1164
- AUTO_INCREMENT: false,
1165
- SKIP_COLUMN_IN_POST: true
1166
- },
1167
- 'carbon_wp_comments.comment_date_gmt': {
1168
- MYSQL_TYPE: 'datetime',
1169
- MAX_LENGTH: '',
1170
- AUTO_INCREMENT: false,
1171
- SKIP_COLUMN_IN_POST: true
1172
- },
1173
- 'carbon_wp_comments.comment_content': {
1174
- MYSQL_TYPE: 'text',
1175
- MAX_LENGTH: '',
1176
- AUTO_INCREMENT: false,
1177
- SKIP_COLUMN_IN_POST: false
1178
- },
1179
- 'carbon_wp_comments.comment_karma': {
1180
- MYSQL_TYPE: 'int',
1181
- MAX_LENGTH: '',
1182
- AUTO_INCREMENT: false,
1183
- SKIP_COLUMN_IN_POST: true
1184
- },
1185
- 'carbon_wp_comments.comment_approved': {
1186
- MYSQL_TYPE: 'varchar',
1187
- MAX_LENGTH: '20',
1188
- AUTO_INCREMENT: false,
1189
- SKIP_COLUMN_IN_POST: true
1190
- },
1191
- 'carbon_wp_comments.comment_agent': {
1192
- MYSQL_TYPE: 'varchar',
1193
- MAX_LENGTH: '255',
1194
- AUTO_INCREMENT: false,
1195
- SKIP_COLUMN_IN_POST: true
1196
- },
1197
- 'carbon_wp_comments.comment_type': {
1198
- MYSQL_TYPE: 'varchar',
1199
- MAX_LENGTH: '20',
1200
- AUTO_INCREMENT: false,
1201
- SKIP_COLUMN_IN_POST: true
1202
- },
1203
- 'carbon_wp_comments.comment_parent': {
1204
- MYSQL_TYPE: 'bigint unsigned',
1205
- MAX_LENGTH: '',
1206
- AUTO_INCREMENT: false,
1207
- SKIP_COLUMN_IN_POST: true
1208
- },
1209
- 'carbon_wp_comments.user_id': {
1210
- MYSQL_TYPE: 'bigint unsigned',
1211
- MAX_LENGTH: '',
1212
- AUTO_INCREMENT: false,
1213
- SKIP_COLUMN_IN_POST: true
1214
- },
1215
- },
1216
- REGEX_VALIDATION: {}
1217
- };
1218
- const wp_links = {
1219
- TABLE_NAME: 'wp_links',
1220
- LINK_ID: 'carbon_wp_links.link_id',
1221
- LINK_URL: 'carbon_wp_links.link_url',
1222
- LINK_NAME: 'carbon_wp_links.link_name',
1223
- LINK_IMAGE: 'carbon_wp_links.link_image',
1224
- LINK_TARGET: 'carbon_wp_links.link_target',
1225
- LINK_DESCRIPTION: 'carbon_wp_links.link_description',
1226
- LINK_VISIBLE: 'carbon_wp_links.link_visible',
1227
- LINK_OWNER: 'carbon_wp_links.link_owner',
1228
- LINK_RATING: 'carbon_wp_links.link_rating',
1229
- LINK_UPDATED: 'carbon_wp_links.link_updated',
1230
- LINK_REL: 'carbon_wp_links.link_rel',
1231
- LINK_NOTES: 'carbon_wp_links.link_notes',
1232
- LINK_RSS: 'carbon_wp_links.link_rss',
1233
- PRIMARY: [
1234
- 'carbon_wp_links.link_id',
1235
- ],
1236
- COLUMNS: {
1237
- 'carbon_wp_links.link_id': 'link_id',
1238
- 'carbon_wp_links.link_url': 'link_url',
1239
- 'carbon_wp_links.link_name': 'link_name',
1240
- 'carbon_wp_links.link_image': 'link_image',
1241
- 'carbon_wp_links.link_target': 'link_target',
1242
- 'carbon_wp_links.link_description': 'link_description',
1243
- 'carbon_wp_links.link_visible': 'link_visible',
1244
- 'carbon_wp_links.link_owner': 'link_owner',
1245
- 'carbon_wp_links.link_rating': 'link_rating',
1246
- 'carbon_wp_links.link_updated': 'link_updated',
1247
- 'carbon_wp_links.link_rel': 'link_rel',
1248
- 'carbon_wp_links.link_notes': 'link_notes',
1249
- 'carbon_wp_links.link_rss': 'link_rss',
1250
- },
1251
- TYPE_VALIDATION: {
1252
- 'carbon_wp_links.link_id': {
1253
- MYSQL_TYPE: 'bigint unsigned',
1254
- MAX_LENGTH: '',
1255
- AUTO_INCREMENT: true,
1256
- SKIP_COLUMN_IN_POST: true
1257
- },
1258
- 'carbon_wp_links.link_url': {
1259
- MYSQL_TYPE: 'varchar',
1260
- MAX_LENGTH: '255',
1261
- AUTO_INCREMENT: false,
1262
- SKIP_COLUMN_IN_POST: true
1263
- },
1264
- 'carbon_wp_links.link_name': {
1265
- MYSQL_TYPE: 'varchar',
1266
- MAX_LENGTH: '255',
1267
- AUTO_INCREMENT: false,
1268
- SKIP_COLUMN_IN_POST: true
1269
- },
1270
- 'carbon_wp_links.link_image': {
1271
- MYSQL_TYPE: 'varchar',
1272
- MAX_LENGTH: '255',
1273
- AUTO_INCREMENT: false,
1274
- SKIP_COLUMN_IN_POST: true
1275
- },
1276
- 'carbon_wp_links.link_target': {
1277
- MYSQL_TYPE: 'varchar',
1278
- MAX_LENGTH: '25',
1279
- AUTO_INCREMENT: false,
1280
- SKIP_COLUMN_IN_POST: true
1281
- },
1282
- 'carbon_wp_links.link_description': {
1283
- MYSQL_TYPE: 'varchar',
1284
- MAX_LENGTH: '255',
1285
- AUTO_INCREMENT: false,
1286
- SKIP_COLUMN_IN_POST: true
1287
- },
1288
- 'carbon_wp_links.link_visible': {
1289
- MYSQL_TYPE: 'varchar',
1290
- MAX_LENGTH: '20',
1291
- AUTO_INCREMENT: false,
1292
- SKIP_COLUMN_IN_POST: true
1293
- },
1294
- 'carbon_wp_links.link_owner': {
1295
- MYSQL_TYPE: 'bigint unsigned',
1296
- MAX_LENGTH: '',
1297
- AUTO_INCREMENT: false,
1298
- SKIP_COLUMN_IN_POST: true
1299
- },
1300
- 'carbon_wp_links.link_rating': {
1301
- MYSQL_TYPE: 'int',
1302
- MAX_LENGTH: '',
1303
- AUTO_INCREMENT: false,
1304
- SKIP_COLUMN_IN_POST: true
1305
- },
1306
- 'carbon_wp_links.link_updated': {
1307
- MYSQL_TYPE: 'datetime',
1308
- MAX_LENGTH: '',
1309
- AUTO_INCREMENT: false,
1310
- SKIP_COLUMN_IN_POST: true
1311
- },
1312
- 'carbon_wp_links.link_rel': {
1313
- MYSQL_TYPE: 'varchar',
1314
- MAX_LENGTH: '255',
1315
- AUTO_INCREMENT: false,
1316
- SKIP_COLUMN_IN_POST: true
1317
- },
1318
- 'carbon_wp_links.link_notes': {
1319
- MYSQL_TYPE: 'mediumtext',
1320
- MAX_LENGTH: '',
1321
- AUTO_INCREMENT: false,
1322
- SKIP_COLUMN_IN_POST: false
1323
- },
1324
- 'carbon_wp_links.link_rss': {
1325
- MYSQL_TYPE: 'varchar',
1326
- MAX_LENGTH: '255',
1327
- AUTO_INCREMENT: false,
1328
- SKIP_COLUMN_IN_POST: true
1329
- },
1330
- },
1331
- REGEX_VALIDATION: {}
1332
- };
1333
- const wp_options = {
1334
- TABLE_NAME: 'wp_options',
1335
- OPTION_ID: 'carbon_wp_options.option_id',
1336
- OPTION_NAME: 'carbon_wp_options.option_name',
1337
- OPTION_VALUE: 'carbon_wp_options.option_value',
1338
- AUTOLOAD: 'carbon_wp_options.autoload',
1339
- PRIMARY: [
1340
- 'carbon_wp_options.option_id',
1341
- ],
1342
- COLUMNS: {
1343
- 'carbon_wp_options.option_id': 'option_id',
1344
- 'carbon_wp_options.option_name': 'option_name',
1345
- 'carbon_wp_options.option_value': 'option_value',
1346
- 'carbon_wp_options.autoload': 'autoload',
1347
- },
1348
- TYPE_VALIDATION: {
1349
- 'carbon_wp_options.option_id': {
1350
- MYSQL_TYPE: 'bigint unsigned',
1351
- MAX_LENGTH: '',
1352
- AUTO_INCREMENT: true,
1353
- SKIP_COLUMN_IN_POST: true
1354
- },
1355
- 'carbon_wp_options.option_name': {
1356
- MYSQL_TYPE: 'varchar',
1357
- MAX_LENGTH: '191',
1358
- AUTO_INCREMENT: false,
1359
- SKIP_COLUMN_IN_POST: true
1360
- },
1361
- 'carbon_wp_options.option_value': {
1362
- MYSQL_TYPE: 'longtext',
1363
- MAX_LENGTH: '',
1364
- AUTO_INCREMENT: false,
1365
- SKIP_COLUMN_IN_POST: false
1366
- },
1367
- 'carbon_wp_options.autoload': {
1368
- MYSQL_TYPE: 'varchar',
1369
- MAX_LENGTH: '20',
1370
- AUTO_INCREMENT: false,
1371
- SKIP_COLUMN_IN_POST: true
1372
- },
1373
- },
1374
- REGEX_VALIDATION: {}
1375
- };
1376
- const wp_postmeta = {
1377
- TABLE_NAME: 'wp_postmeta',
1378
- META_ID: 'carbon_wp_postmeta.meta_id',
1379
- POST_ID: 'carbon_wp_postmeta.post_id',
1380
- META_KEY: 'carbon_wp_postmeta.meta_key',
1381
- META_VALUE: 'carbon_wp_postmeta.meta_value',
1382
- PRIMARY: [
1383
- 'carbon_wp_postmeta.meta_id',
1384
- ],
1385
- COLUMNS: {
1386
- 'carbon_wp_postmeta.meta_id': 'meta_id',
1387
- 'carbon_wp_postmeta.post_id': 'post_id',
1388
- 'carbon_wp_postmeta.meta_key': 'meta_key',
1389
- 'carbon_wp_postmeta.meta_value': 'meta_value',
1390
- },
1391
- TYPE_VALIDATION: {
1392
- 'carbon_wp_postmeta.meta_id': {
1393
- MYSQL_TYPE: 'bigint unsigned',
1394
- MAX_LENGTH: '',
1395
- AUTO_INCREMENT: true,
1396
- SKIP_COLUMN_IN_POST: true
1397
- },
1398
- 'carbon_wp_postmeta.post_id': {
1399
- MYSQL_TYPE: 'bigint unsigned',
1400
- MAX_LENGTH: '',
1401
- AUTO_INCREMENT: false,
1402
- SKIP_COLUMN_IN_POST: true
1403
- },
1404
- 'carbon_wp_postmeta.meta_key': {
1405
- MYSQL_TYPE: 'varchar',
1406
- MAX_LENGTH: '255',
1407
- AUTO_INCREMENT: false,
1408
- SKIP_COLUMN_IN_POST: true
1409
- },
1410
- 'carbon_wp_postmeta.meta_value': {
1411
- MYSQL_TYPE: 'longtext',
1412
- MAX_LENGTH: '',
1413
- AUTO_INCREMENT: false,
1414
- SKIP_COLUMN_IN_POST: false
1415
- },
1416
- },
1417
- REGEX_VALIDATION: {}
1418
- };
1419
- const wp_posts = {
1420
- TABLE_NAME: 'wp_posts',
1421
- ID: 'carbon_wp_posts.ID',
1422
- POST_AUTHOR: 'carbon_wp_posts.post_author',
1423
- POST_DATE: 'carbon_wp_posts.post_date',
1424
- POST_DATE_GMT: 'carbon_wp_posts.post_date_gmt',
1425
- POST_CONTENT: 'carbon_wp_posts.post_content',
1426
- POST_TITLE: 'carbon_wp_posts.post_title',
1427
- POST_EXCERPT: 'carbon_wp_posts.post_excerpt',
1428
- POST_STATUS: 'carbon_wp_posts.post_status',
1429
- COMMENT_STATUS: 'carbon_wp_posts.comment_status',
1430
- PING_STATUS: 'carbon_wp_posts.ping_status',
1431
- POST_PASSWORD: 'carbon_wp_posts.post_password',
1432
- POST_NAME: 'carbon_wp_posts.post_name',
1433
- TO_PING: 'carbon_wp_posts.to_ping',
1434
- PINGED: 'carbon_wp_posts.pinged',
1435
- POST_MODIFIED: 'carbon_wp_posts.post_modified',
1436
- POST_MODIFIED_GMT: 'carbon_wp_posts.post_modified_gmt',
1437
- POST_CONTENT_FILTERED: 'carbon_wp_posts.post_content_filtered',
1438
- POST_PARENT: 'carbon_wp_posts.post_parent',
1439
- GUID: 'carbon_wp_posts.guid',
1440
- MENU_ORDER: 'carbon_wp_posts.menu_order',
1441
- POST_TYPE: 'carbon_wp_posts.post_type',
1442
- POST_MIME_TYPE: 'carbon_wp_posts.post_mime_type',
1443
- COMMENT_COUNT: 'carbon_wp_posts.comment_count',
1444
- PRIMARY: [
1445
- 'carbon_wp_posts.ID',
1446
- ],
1447
- COLUMNS: {
1448
- 'carbon_wp_posts.ID': 'ID',
1449
- 'carbon_wp_posts.post_author': 'post_author',
1450
- 'carbon_wp_posts.post_date': 'post_date',
1451
- 'carbon_wp_posts.post_date_gmt': 'post_date_gmt',
1452
- 'carbon_wp_posts.post_content': 'post_content',
1453
- 'carbon_wp_posts.post_title': 'post_title',
1454
- 'carbon_wp_posts.post_excerpt': 'post_excerpt',
1455
- 'carbon_wp_posts.post_status': 'post_status',
1456
- 'carbon_wp_posts.comment_status': 'comment_status',
1457
- 'carbon_wp_posts.ping_status': 'ping_status',
1458
- 'carbon_wp_posts.post_password': 'post_password',
1459
- 'carbon_wp_posts.post_name': 'post_name',
1460
- 'carbon_wp_posts.to_ping': 'to_ping',
1461
- 'carbon_wp_posts.pinged': 'pinged',
1462
- 'carbon_wp_posts.post_modified': 'post_modified',
1463
- 'carbon_wp_posts.post_modified_gmt': 'post_modified_gmt',
1464
- 'carbon_wp_posts.post_content_filtered': 'post_content_filtered',
1465
- 'carbon_wp_posts.post_parent': 'post_parent',
1466
- 'carbon_wp_posts.guid': 'guid',
1467
- 'carbon_wp_posts.menu_order': 'menu_order',
1468
- 'carbon_wp_posts.post_type': 'post_type',
1469
- 'carbon_wp_posts.post_mime_type': 'post_mime_type',
1470
- 'carbon_wp_posts.comment_count': 'comment_count',
1471
- },
1472
- TYPE_VALIDATION: {
1473
- 'carbon_wp_posts.ID': {
1474
- MYSQL_TYPE: 'bigint unsigned',
1475
- MAX_LENGTH: '',
1476
- AUTO_INCREMENT: true,
1477
- SKIP_COLUMN_IN_POST: true
1478
- },
1479
- 'carbon_wp_posts.post_author': {
1480
- MYSQL_TYPE: 'bigint unsigned',
1481
- MAX_LENGTH: '',
1482
- AUTO_INCREMENT: false,
1483
- SKIP_COLUMN_IN_POST: true
1484
- },
1485
- 'carbon_wp_posts.post_date': {
1486
- MYSQL_TYPE: 'datetime',
1487
- MAX_LENGTH: '',
1488
- AUTO_INCREMENT: false,
1489
- SKIP_COLUMN_IN_POST: true
1490
- },
1491
- 'carbon_wp_posts.post_date_gmt': {
1492
- MYSQL_TYPE: 'datetime',
1493
- MAX_LENGTH: '',
1494
- AUTO_INCREMENT: false,
1495
- SKIP_COLUMN_IN_POST: true
1496
- },
1497
- 'carbon_wp_posts.post_content': {
1498
- MYSQL_TYPE: 'longtext',
1499
- MAX_LENGTH: '',
1500
- AUTO_INCREMENT: false,
1501
- SKIP_COLUMN_IN_POST: false
1502
- },
1503
- 'carbon_wp_posts.post_title': {
1504
- MYSQL_TYPE: 'text',
1505
- MAX_LENGTH: '',
1506
- AUTO_INCREMENT: false,
1507
- SKIP_COLUMN_IN_POST: false
1508
- },
1509
- 'carbon_wp_posts.post_excerpt': {
1510
- MYSQL_TYPE: 'text',
1511
- MAX_LENGTH: '',
1512
- AUTO_INCREMENT: false,
1513
- SKIP_COLUMN_IN_POST: false
1514
- },
1515
- 'carbon_wp_posts.post_status': {
1516
- MYSQL_TYPE: 'varchar',
1517
- MAX_LENGTH: '20',
1518
- AUTO_INCREMENT: false,
1519
- SKIP_COLUMN_IN_POST: true
1520
- },
1521
- 'carbon_wp_posts.comment_status': {
1522
- MYSQL_TYPE: 'varchar',
1523
- MAX_LENGTH: '20',
1524
- AUTO_INCREMENT: false,
1525
- SKIP_COLUMN_IN_POST: true
1526
- },
1527
- 'carbon_wp_posts.ping_status': {
1528
- MYSQL_TYPE: 'varchar',
1529
- MAX_LENGTH: '20',
1530
- AUTO_INCREMENT: false,
1531
- SKIP_COLUMN_IN_POST: true
1532
- },
1533
- 'carbon_wp_posts.post_password': {
1534
- MYSQL_TYPE: 'varchar',
1535
- MAX_LENGTH: '255',
1536
- AUTO_INCREMENT: false,
1537
- SKIP_COLUMN_IN_POST: true
1538
- },
1539
- 'carbon_wp_posts.post_name': {
1540
- MYSQL_TYPE: 'varchar',
1541
- MAX_LENGTH: '200',
1542
- AUTO_INCREMENT: false,
1543
- SKIP_COLUMN_IN_POST: true
1544
- },
1545
- 'carbon_wp_posts.to_ping': {
1546
- MYSQL_TYPE: 'text',
1547
- MAX_LENGTH: '',
1548
- AUTO_INCREMENT: false,
1549
- SKIP_COLUMN_IN_POST: false
1550
- },
1551
- 'carbon_wp_posts.pinged': {
1552
- MYSQL_TYPE: 'text',
1553
- MAX_LENGTH: '',
1554
- AUTO_INCREMENT: false,
1555
- SKIP_COLUMN_IN_POST: false
1556
- },
1557
- 'carbon_wp_posts.post_modified': {
1558
- MYSQL_TYPE: 'datetime',
1559
- MAX_LENGTH: '',
1560
- AUTO_INCREMENT: false,
1561
- SKIP_COLUMN_IN_POST: true
1562
- },
1563
- 'carbon_wp_posts.post_modified_gmt': {
1564
- MYSQL_TYPE: 'datetime',
1565
- MAX_LENGTH: '',
1566
- AUTO_INCREMENT: false,
1567
- SKIP_COLUMN_IN_POST: true
1568
- },
1569
- 'carbon_wp_posts.post_content_filtered': {
1570
- MYSQL_TYPE: 'longtext',
1571
- MAX_LENGTH: '',
1572
- AUTO_INCREMENT: false,
1573
- SKIP_COLUMN_IN_POST: false
1574
- },
1575
- 'carbon_wp_posts.post_parent': {
1576
- MYSQL_TYPE: 'bigint unsigned',
1577
- MAX_LENGTH: '',
1578
- AUTO_INCREMENT: false,
1579
- SKIP_COLUMN_IN_POST: true
1580
- },
1581
- 'carbon_wp_posts.guid': {
1582
- MYSQL_TYPE: 'varchar',
1583
- MAX_LENGTH: '255',
1584
- AUTO_INCREMENT: false,
1585
- SKIP_COLUMN_IN_POST: true
1586
- },
1587
- 'carbon_wp_posts.menu_order': {
1588
- MYSQL_TYPE: 'int',
1589
- MAX_LENGTH: '',
1590
- AUTO_INCREMENT: false,
1591
- SKIP_COLUMN_IN_POST: true
1592
- },
1593
- 'carbon_wp_posts.post_type': {
1594
- MYSQL_TYPE: 'varchar',
1595
- MAX_LENGTH: '20',
1596
- AUTO_INCREMENT: false,
1597
- SKIP_COLUMN_IN_POST: true
1598
- },
1599
- 'carbon_wp_posts.post_mime_type': {
1600
- MYSQL_TYPE: 'varchar',
1601
- MAX_LENGTH: '100',
1602
- AUTO_INCREMENT: false,
1603
- SKIP_COLUMN_IN_POST: true
1604
- },
1605
- 'carbon_wp_posts.comment_count': {
1606
- MYSQL_TYPE: 'bigint',
1607
- MAX_LENGTH: '',
1608
- AUTO_INCREMENT: false,
1609
- SKIP_COLUMN_IN_POST: true
1610
- },
1611
- },
1612
- REGEX_VALIDATION: {}
1613
- };
1614
- const wp_term_relationships = {
1615
- TABLE_NAME: 'wp_term_relationships',
1616
- OBJECT_ID: 'carbon_wp_term_relationships.object_id',
1617
- TERM_TAXONOMY_ID: 'carbon_wp_term_relationships.term_taxonomy_id',
1618
- TERM_ORDER: 'carbon_wp_term_relationships.term_order',
1619
- PRIMARY: [
1620
- 'carbon_wp_term_relationships.object_id',
1621
- 'carbon_wp_term_relationships.term_taxonomy_id',
1622
- ],
1623
- COLUMNS: {
1624
- 'carbon_wp_term_relationships.object_id': 'object_id',
1625
- 'carbon_wp_term_relationships.term_taxonomy_id': 'term_taxonomy_id',
1626
- 'carbon_wp_term_relationships.term_order': 'term_order',
1627
- },
1628
- TYPE_VALIDATION: {
1629
- 'carbon_wp_term_relationships.object_id': {
1630
- MYSQL_TYPE: 'bigint unsigned',
1631
- MAX_LENGTH: '',
1632
- AUTO_INCREMENT: false,
1633
- SKIP_COLUMN_IN_POST: true
1634
- },
1635
- 'carbon_wp_term_relationships.term_taxonomy_id': {
1636
- MYSQL_TYPE: 'bigint unsigned',
1637
- MAX_LENGTH: '',
1638
- AUTO_INCREMENT: false,
1639
- SKIP_COLUMN_IN_POST: true
1640
- },
1641
- 'carbon_wp_term_relationships.term_order': {
1642
- MYSQL_TYPE: 'int',
1643
- MAX_LENGTH: '',
1644
- AUTO_INCREMENT: false,
1645
- SKIP_COLUMN_IN_POST: true
1646
- },
1647
- },
1648
- REGEX_VALIDATION: {}
1649
- };
1650
- const wp_term_taxonomy = {
1651
- TABLE_NAME: 'wp_term_taxonomy',
1652
- TERM_TAXONOMY_ID: 'carbon_wp_term_taxonomy.term_taxonomy_id',
1653
- TERM_ID: 'carbon_wp_term_taxonomy.term_id',
1654
- TAXONOMY: 'carbon_wp_term_taxonomy.taxonomy',
1655
- DESCRIPTION: 'carbon_wp_term_taxonomy.description',
1656
- PARENT: 'carbon_wp_term_taxonomy.parent',
1657
- COUNT: 'carbon_wp_term_taxonomy.count',
1658
- PRIMARY: [
1659
- 'carbon_wp_term_taxonomy.term_taxonomy_id',
1660
- ],
1661
- COLUMNS: {
1662
- 'carbon_wp_term_taxonomy.term_taxonomy_id': 'term_taxonomy_id',
1663
- 'carbon_wp_term_taxonomy.term_id': 'term_id',
1664
- 'carbon_wp_term_taxonomy.taxonomy': 'taxonomy',
1665
- 'carbon_wp_term_taxonomy.description': 'description',
1666
- 'carbon_wp_term_taxonomy.parent': 'parent',
1667
- 'carbon_wp_term_taxonomy.count': 'count',
1668
- },
1669
- TYPE_VALIDATION: {
1670
- 'carbon_wp_term_taxonomy.term_taxonomy_id': {
1671
- MYSQL_TYPE: 'bigint unsigned',
1672
- MAX_LENGTH: '',
1673
- AUTO_INCREMENT: true,
1674
- SKIP_COLUMN_IN_POST: true
1675
- },
1676
- 'carbon_wp_term_taxonomy.term_id': {
1677
- MYSQL_TYPE: 'bigint unsigned',
1678
- MAX_LENGTH: '',
1679
- AUTO_INCREMENT: false,
1680
- SKIP_COLUMN_IN_POST: true
1681
- },
1682
- 'carbon_wp_term_taxonomy.taxonomy': {
1683
- MYSQL_TYPE: 'varchar',
1684
- MAX_LENGTH: '32',
1685
- AUTO_INCREMENT: false,
1686
- SKIP_COLUMN_IN_POST: true
1687
- },
1688
- 'carbon_wp_term_taxonomy.description': {
1689
- MYSQL_TYPE: 'longtext',
1690
- MAX_LENGTH: '',
1691
- AUTO_INCREMENT: false,
1692
- SKIP_COLUMN_IN_POST: false
1693
- },
1694
- 'carbon_wp_term_taxonomy.parent': {
1695
- MYSQL_TYPE: 'bigint unsigned',
1696
- MAX_LENGTH: '',
1697
- AUTO_INCREMENT: false,
1698
- SKIP_COLUMN_IN_POST: true
1699
- },
1700
- 'carbon_wp_term_taxonomy.count': {
1701
- MYSQL_TYPE: 'bigint',
1702
- MAX_LENGTH: '',
1703
- AUTO_INCREMENT: false,
1704
- SKIP_COLUMN_IN_POST: true
1705
- },
1706
- },
1707
- REGEX_VALIDATION: {}
1708
- };
1709
- const wp_termmeta = {
1710
- TABLE_NAME: 'wp_termmeta',
1711
- META_ID: 'carbon_wp_termmeta.meta_id',
1712
- TERM_ID: 'carbon_wp_termmeta.term_id',
1713
- META_KEY: 'carbon_wp_termmeta.meta_key',
1714
- META_VALUE: 'carbon_wp_termmeta.meta_value',
1715
- PRIMARY: [
1716
- 'carbon_wp_termmeta.meta_id',
1717
- ],
1718
- COLUMNS: {
1719
- 'carbon_wp_termmeta.meta_id': 'meta_id',
1720
- 'carbon_wp_termmeta.term_id': 'term_id',
1721
- 'carbon_wp_termmeta.meta_key': 'meta_key',
1722
- 'carbon_wp_termmeta.meta_value': 'meta_value',
1723
- },
1724
- TYPE_VALIDATION: {
1725
- 'carbon_wp_termmeta.meta_id': {
1726
- MYSQL_TYPE: 'bigint unsigned',
1727
- MAX_LENGTH: '',
1728
- AUTO_INCREMENT: true,
1729
- SKIP_COLUMN_IN_POST: true
1730
- },
1731
- 'carbon_wp_termmeta.term_id': {
1732
- MYSQL_TYPE: 'bigint unsigned',
1733
- MAX_LENGTH: '',
1734
- AUTO_INCREMENT: false,
1735
- SKIP_COLUMN_IN_POST: true
1736
- },
1737
- 'carbon_wp_termmeta.meta_key': {
1738
- MYSQL_TYPE: 'varchar',
1739
- MAX_LENGTH: '255',
1740
- AUTO_INCREMENT: false,
1741
- SKIP_COLUMN_IN_POST: true
1742
- },
1743
- 'carbon_wp_termmeta.meta_value': {
1744
- MYSQL_TYPE: 'longtext',
1745
- MAX_LENGTH: '',
1746
- AUTO_INCREMENT: false,
1747
- SKIP_COLUMN_IN_POST: false
1748
- },
1749
- },
1750
- REGEX_VALIDATION: {}
1751
- };
1752
- const wp_terms = {
1753
- TABLE_NAME: 'wp_terms',
1754
- TERM_ID: 'carbon_wp_terms.term_id',
1755
- NAME: 'carbon_wp_terms.name',
1756
- SLUG: 'carbon_wp_terms.slug',
1757
- TERM_GROUP: 'carbon_wp_terms.term_group',
1758
- PRIMARY: [
1759
- 'carbon_wp_terms.term_id',
1760
- ],
1761
- COLUMNS: {
1762
- 'carbon_wp_terms.term_id': 'term_id',
1763
- 'carbon_wp_terms.name': 'name',
1764
- 'carbon_wp_terms.slug': 'slug',
1765
- 'carbon_wp_terms.term_group': 'term_group',
1766
- },
1767
- TYPE_VALIDATION: {
1768
- 'carbon_wp_terms.term_id': {
1769
- MYSQL_TYPE: 'bigint unsigned',
1770
- MAX_LENGTH: '',
1771
- AUTO_INCREMENT: true,
1772
- SKIP_COLUMN_IN_POST: true
1773
- },
1774
- 'carbon_wp_terms.name': {
1775
- MYSQL_TYPE: 'varchar',
1776
- MAX_LENGTH: '200',
1777
- AUTO_INCREMENT: false,
1778
- SKIP_COLUMN_IN_POST: true
1779
- },
1780
- 'carbon_wp_terms.slug': {
1781
- MYSQL_TYPE: 'varchar',
1782
- MAX_LENGTH: '200',
1783
- AUTO_INCREMENT: false,
1784
- SKIP_COLUMN_IN_POST: true
1785
- },
1786
- 'carbon_wp_terms.term_group': {
1787
- MYSQL_TYPE: 'bigint',
1788
- MAX_LENGTH: '',
1789
- AUTO_INCREMENT: false,
1790
- SKIP_COLUMN_IN_POST: true
1791
- },
1792
- },
1793
- REGEX_VALIDATION: {}
1794
- };
1795
- const wp_usermeta = {
1796
- TABLE_NAME: 'wp_usermeta',
1797
- UMETA_ID: 'carbon_wp_usermeta.umeta_id',
1798
- USER_ID: 'carbon_wp_usermeta.user_id',
1799
- META_KEY: 'carbon_wp_usermeta.meta_key',
1800
- META_VALUE: 'carbon_wp_usermeta.meta_value',
1801
- PRIMARY: [
1802
- 'carbon_wp_usermeta.umeta_id',
1803
- ],
1804
- COLUMNS: {
1805
- 'carbon_wp_usermeta.umeta_id': 'umeta_id',
1806
- 'carbon_wp_usermeta.user_id': 'user_id',
1807
- 'carbon_wp_usermeta.meta_key': 'meta_key',
1808
- 'carbon_wp_usermeta.meta_value': 'meta_value',
1809
- },
1810
- TYPE_VALIDATION: {
1811
- 'carbon_wp_usermeta.umeta_id': {
1812
- MYSQL_TYPE: 'bigint unsigned',
1813
- MAX_LENGTH: '',
1814
- AUTO_INCREMENT: true,
1815
- SKIP_COLUMN_IN_POST: true
1816
- },
1817
- 'carbon_wp_usermeta.user_id': {
1818
- MYSQL_TYPE: 'bigint unsigned',
1819
- MAX_LENGTH: '',
1820
- AUTO_INCREMENT: false,
1821
- SKIP_COLUMN_IN_POST: true
1822
- },
1823
- 'carbon_wp_usermeta.meta_key': {
1824
- MYSQL_TYPE: 'varchar',
1825
- MAX_LENGTH: '255',
1826
- AUTO_INCREMENT: false,
1827
- SKIP_COLUMN_IN_POST: true
1828
- },
1829
- 'carbon_wp_usermeta.meta_value': {
1830
- MYSQL_TYPE: 'longtext',
1831
- MAX_LENGTH: '',
1832
- AUTO_INCREMENT: false,
1833
- SKIP_COLUMN_IN_POST: false
1834
- },
1835
- },
1836
- REGEX_VALIDATION: {}
1837
- };
1838
- const wp_users = {
1839
- TABLE_NAME: 'wp_users',
1840
- ID: 'carbon_wp_users.ID',
1841
- USER_LOGIN: 'carbon_wp_users.user_login',
1842
- USER_PASS: 'carbon_wp_users.user_pass',
1843
- USER_NICENAME: 'carbon_wp_users.user_nicename',
1844
- USER_EMAIL: 'carbon_wp_users.user_email',
1845
- USER_URL: 'carbon_wp_users.user_url',
1846
- USER_REGISTERED: 'carbon_wp_users.user_registered',
1847
- USER_ACTIVATION_KEY: 'carbon_wp_users.user_activation_key',
1848
- USER_STATUS: 'carbon_wp_users.user_status',
1849
- DISPLAY_NAME: 'carbon_wp_users.display_name',
1850
- PRIMARY: [
1851
- 'carbon_wp_users.ID',
1852
- ],
1853
- COLUMNS: {
1854
- 'carbon_wp_users.ID': 'ID',
1855
- 'carbon_wp_users.user_login': 'user_login',
1856
- 'carbon_wp_users.user_pass': 'user_pass',
1857
- 'carbon_wp_users.user_nicename': 'user_nicename',
1858
- 'carbon_wp_users.user_email': 'user_email',
1859
- 'carbon_wp_users.user_url': 'user_url',
1860
- 'carbon_wp_users.user_registered': 'user_registered',
1861
- 'carbon_wp_users.user_activation_key': 'user_activation_key',
1862
- 'carbon_wp_users.user_status': 'user_status',
1863
- 'carbon_wp_users.display_name': 'display_name',
1864
- },
1865
- TYPE_VALIDATION: {
1866
- 'carbon_wp_users.ID': {
1867
- MYSQL_TYPE: 'bigint unsigned',
1868
- MAX_LENGTH: '',
1869
- AUTO_INCREMENT: true,
1870
- SKIP_COLUMN_IN_POST: true
1871
- },
1872
- 'carbon_wp_users.user_login': {
1873
- MYSQL_TYPE: 'varchar',
1874
- MAX_LENGTH: '60',
1875
- AUTO_INCREMENT: false,
1876
- SKIP_COLUMN_IN_POST: true
1877
- },
1878
- 'carbon_wp_users.user_pass': {
1879
- MYSQL_TYPE: 'varchar',
1880
- MAX_LENGTH: '255',
1881
- AUTO_INCREMENT: false,
1882
- SKIP_COLUMN_IN_POST: true
1883
- },
1884
- 'carbon_wp_users.user_nicename': {
1885
- MYSQL_TYPE: 'varchar',
1886
- MAX_LENGTH: '50',
1887
- AUTO_INCREMENT: false,
1888
- SKIP_COLUMN_IN_POST: true
1889
- },
1890
- 'carbon_wp_users.user_email': {
1891
- MYSQL_TYPE: 'varchar',
1892
- MAX_LENGTH: '100',
1893
- AUTO_INCREMENT: false,
1894
- SKIP_COLUMN_IN_POST: true
1895
- },
1896
- 'carbon_wp_users.user_url': {
1897
- MYSQL_TYPE: 'varchar',
1898
- MAX_LENGTH: '100',
1899
- AUTO_INCREMENT: false,
1900
- SKIP_COLUMN_IN_POST: true
1901
- },
1902
- 'carbon_wp_users.user_registered': {
1903
- MYSQL_TYPE: 'datetime',
1904
- MAX_LENGTH: '',
1905
- AUTO_INCREMENT: false,
1906
- SKIP_COLUMN_IN_POST: true
1907
- },
1908
- 'carbon_wp_users.user_activation_key': {
1909
- MYSQL_TYPE: 'varchar',
1910
- MAX_LENGTH: '255',
1911
- AUTO_INCREMENT: false,
1912
- SKIP_COLUMN_IN_POST: true
1913
- },
1914
- 'carbon_wp_users.user_status': {
1915
- MYSQL_TYPE: 'int',
1916
- MAX_LENGTH: '',
1917
- AUTO_INCREMENT: false,
1918
- SKIP_COLUMN_IN_POST: true
1919
- },
1920
- 'carbon_wp_users.display_name': {
1921
- MYSQL_TYPE: 'varchar',
1922
- MAX_LENGTH: '250',
1923
- AUTO_INCREMENT: false,
1924
- SKIP_COLUMN_IN_POST: true
1925
- },
1926
- },
1927
- REGEX_VALIDATION: {}
1928
- };
1929
- const TABLES = {
1930
- carbons: carbons,
1931
- comments: comments,
1932
- documentation: documentation,
1933
- feature_group_references: feature_group_references,
1934
- features: features,
1935
- group_references: group_references,
1936
- groups: groups,
1937
- history_logs: history_logs,
1938
- location_references: location_references,
1939
- locations: locations,
1940
- photos: photos,
1941
- reports: reports,
1942
- sessions: sessions,
1943
- user_followers: user_followers,
1944
- user_groups: user_groups,
1945
- user_messages: user_messages,
1946
- user_sessions: user_sessions,
1947
- user_tasks: user_tasks,
1948
- users: users,
1949
- wp_commentmeta: wp_commentmeta,
1950
- wp_comments: wp_comments,
1951
- wp_links: wp_links,
1952
- wp_options: wp_options,
1953
- wp_postmeta: wp_postmeta,
1954
- wp_posts: wp_posts,
1955
- wp_term_relationships: wp_term_relationships,
1956
- wp_term_taxonomy: wp_term_taxonomy,
1957
- wp_termmeta: wp_termmeta,
1958
- wp_terms: wp_terms,
1959
- wp_usermeta: wp_usermeta,
1960
- wp_users: wp_users,
1961
- };
1962
- const C6 = Object.assign({
1963
- // try to 1=1 match the Rest abstract class
1964
- ADDDATE: 'ADDDATE', ADDTIME: 'ADDTIME', AS: 'AS', ASC: 'ASC', BETWEEN: 'BETWEEN', CONCAT: 'CONCAT', CONVERT_TZ: 'CONVERT_TZ', COUNT: 'COUNT', COUNT_ALL: 'COUNT_ALL', CURRENT_DATE: 'CURRENT_DATE', CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP', DAY: 'DAY', DAY_HOUR: 'DAY_HOUR', DAY_MICROSECOND: 'DAY_MICROSECOND', DAY_MINUTE: 'DAY_MINUTE', DAY_SECOND: 'DAY_SECOND', DAYNAME: 'DAYNAME', DAYOFMONTH: 'DAYOFMONTH', DAYOFWEEK: 'DAYOFWEEK', DAYOFYEAR: 'DAYOFYEAR', DATE: 'DATE', DATE_ADD: 'DATE_ADD', DATEDIFF: 'DATEDIFF', DATE_SUB: 'DATE_SUB', DATE_FORMAT: 'DATE_FORMAT', DESC: 'DESC', DISTINCT: 'DISTINCT', EXTRACT: 'EXTRACT', EQUAL: '=', EQUAL_NULL_SAFE: '<=>', FALSE: 'FALSE', FULL_OUTER: 'FULL_OUTER', FROM_DAYS: 'FROM_DAYS', FROM_UNIXTIME: 'FROM_UNIXTIME', GET_FORMAT: 'GET_FORMAT', GREATER_THAN: '>', GROUP_BY: 'GROUP_BY', GROUP_CONCAT: 'GROUP_CONCAT', GREATER_THAN_OR_EQUAL_TO: '>=', HAVING: 'HAVING', HEX: 'HEX', HOUR: 'HOUR', HOUR_MICROSECOND: 'HOUR_MICROSECOND', HOUR_SECOND: 'HOUR_SECOND', HOUR_MINUTE: 'HOUR_MINUTE', IN: 'IN', IS: 'IS', IS_NOT: 'IS_NOT', INNER: 'INNER', INTERVAL: 'INTERVAL', JOIN: 'JOIN', LEFT: 'LEFT', LEFT_OUTER: 'LEFT_OUTER', LESS_THAN: '<', LESS_THAN_OR_EQUAL_TO: '<=', LIKE: 'LIKE', LIMIT: 'LIMIT', LOCALTIME: 'LOCALTIME', LOCALTIMESTAMP: 'LOCALTIMESTAMP', MAKEDATE: 'MAKEDATE', MAKETIME: 'MAKETIME', MONTHNAME: 'MONTHNAME', MICROSECOND: 'MICROSECOND', MINUTE: 'MINUTE', MINUTE_MICROSECOND: 'MINUTE_MICROSECOND', MINUTE_SECOND: 'MINUTE_SECOND', MIN: 'MIN', MAX: 'MAX', MONTH: 'MONTH', NOT_LIKE: 'NOT_LIKE', NOT_EQUAL: '<>', NOT_IN: 'NOT_IN', NOW: 'NOW', NULL: 'NULL', ORDER: 'ORDER', PAGE: 'PAGE', PAGINATION: 'PAGINATION', RIGHT_OUTER: 'RIGHT_OUTER', SECOND: 'SECOND', SECOND_MICROSECOND: 'SECOND_MICROSECOND', SELECT: 'SELECT', STR_TO_DATE: 'STR_TO_DATE', SUBDATE: 'SUBDATE', SUBTIME: 'SUBTIME', SUM: 'SUM', SYSDATE: 'SYSDATE', TIME: 'TIME', TIME_FORMAT: 'TIME_FORMAT', TIME_TO_SEC: 'TIME_TO_SEC', TIMEDIFF: 'TIMEDIFF', TIMESTAMP: 'TIMESTAMP', TIMESTAMPADD: 'TIMESTAMPADD', TIMESTAMPDIFF: 'TIMESTAMPDIFF', TO_DAYS: 'TO_DAYS', TO_SECONDS: 'TO_SECONDS', TRANSACTION_TIMESTAMP: 'TRANSACTION_TIMESTAMP', TRUE: 'TRUE', UNIX_TIMESTAMP: 'UNIX_TIMESTAMP', UNKNOWN: 'UNKNOWN', UPDATE: 'UPDATE', UNHEX: 'UNHEX', UTC_DATE: 'UNHEX', UTC_TIME: 'UNHEX', UTC_TIMESTAMP: 'UNHEX', WHERE: 'WHERE', WEEKDAY: 'WEEKDAY', WEEKOFYEAR: 'WEEKOFYEAR', YEARWEEK: 'YEARWEEK',
1965
- // carbon identifiers
1966
- DEPENDANT_ON_ENTITY: 'DEPENDANT_ON_ENTITY',
1967
- // PHP validation
1968
- OPTIONS: 'OPTIONS', GET: 'GET', POST: 'POST', PUT: 'PUT', REPLACE: 'REPLACE INTO', DELETE: 'DELETE', REST_REQUEST_PREPROCESS_CALLBACKS: 'PREPROCESS', PREPROCESS: 'PREPROCESS', REST_REQUEST_FINNISH_CALLBACKS: 'FINISH', FINISH: 'FINISH', VALIDATE_C6_ENTITY_ID_REGEX: '#^([a-fA-F0-9]{20,35})$#', TABLES: TABLES }, TABLES);
1969
- const COLUMNS = {
1970
- 'carbon_carbons.entity_pk': 'entity_pk',
1971
- 'carbon_carbons.entity_fk': 'entity_fk',
1972
- 'carbon_carbons.entity_tag': 'entity_tag',
1973
- 'carbon_comments.parent_id': 'parent_id',
1974
- 'carbon_comments.comment_id': 'comment_id',
1975
- 'carbon_comments.user_id': 'user_id',
1976
- 'carbon_comments.comment': 'comment',
1977
- 'carbon_documentation.documentation_uri': 'documentation_uri',
1978
- 'carbon_documentation.documentation_data': 'documentation_data',
1979
- 'carbon_documentation.documentation_version': 'documentation_version',
1980
- 'carbon_documentation.documentation_active': 'documentation_active',
1981
- 'carbon_feature_group_references.feature_entity_id': 'feature_entity_id',
1982
- 'carbon_feature_group_references.group_entity_id': 'group_entity_id',
1983
- 'carbon_features.feature_entity_id': 'feature_entity_id',
1984
- 'carbon_features.feature_code': 'feature_code',
1985
- 'carbon_features.feature_creation_date': 'feature_creation_date',
1986
- 'carbon_group_references.group_id': 'group_id',
1987
- 'carbon_group_references.allowed_to_grant_group_id': 'allowed_to_grant_group_id',
1988
- 'carbon_groups.group_name': 'group_name',
1989
- 'carbon_groups.entity_id': 'entity_id',
1990
- 'carbon_groups.created_by': 'created_by',
1991
- 'carbon_groups.creation_date': 'creation_date',
1992
- 'carbon_history_logs.history_uuid': 'history_uuid',
1993
- 'carbon_history_logs.history_table': 'history_table',
1994
- 'carbon_history_logs.history_type': 'history_type',
1995
- 'carbon_history_logs.history_data': 'history_data',
1996
- 'carbon_history_logs.history_original_query': 'history_original_query',
1997
- 'carbon_history_logs.history_time': 'history_time',
1998
- 'carbon_location_references.entity_reference': 'entity_reference',
1999
- 'carbon_location_references.location_reference': 'location_reference',
2000
- 'carbon_location_references.location_time': 'location_time',
2001
- 'carbon_locations.entity_id': 'entity_id',
2002
- 'carbon_locations.latitude': 'latitude',
2003
- 'carbon_locations.longitude': 'longitude',
2004
- 'carbon_locations.street': 'street',
2005
- 'carbon_locations.city': 'city',
2006
- 'carbon_locations.state': 'state',
2007
- 'carbon_locations.elevation': 'elevation',
2008
- 'carbon_locations.zip': 'zip',
2009
- 'carbon_photos.parent_id': 'parent_id',
2010
- 'carbon_photos.photo_id': 'photo_id',
2011
- 'carbon_photos.user_id': 'user_id',
2012
- 'carbon_photos.photo_path': 'photo_path',
2013
- 'carbon_photos.photo_description': 'photo_description',
2014
- 'carbon_reports.log_level': 'log_level',
2015
- 'carbon_reports.report': 'report',
2016
- 'carbon_reports.date': 'date',
2017
- 'carbon_reports.call_trace': 'call_trace',
2018
- 'carbon_sessions.user_id': 'user_id',
2019
- 'carbon_sessions.user_ip': 'user_ip',
2020
- 'carbon_sessions.session_id': 'session_id',
2021
- 'carbon_sessions.session_expires': 'session_expires',
2022
- 'carbon_sessions.session_data': 'session_data',
2023
- 'carbon_sessions.user_online_status': 'user_online_status',
2024
- 'carbon_user_followers.follower_table_id': 'follower_table_id',
2025
- 'carbon_user_followers.follows_user_id': 'follows_user_id',
2026
- 'carbon_user_followers.user_id': 'user_id',
2027
- 'carbon_user_groups.group_id': 'group_id',
2028
- 'carbon_user_groups.user_id': 'user_id',
2029
- 'carbon_user_messages.message_id': 'message_id',
2030
- 'carbon_user_messages.from_user_id': 'from_user_id',
2031
- 'carbon_user_messages.to_user_id': 'to_user_id',
2032
- 'carbon_user_messages.message': 'message',
2033
- 'carbon_user_messages.message_read': 'message_read',
2034
- 'carbon_user_messages.creation_date': 'creation_date',
2035
- 'carbon_user_sessions.user_id': 'user_id',
2036
- 'carbon_user_sessions.user_ip': 'user_ip',
2037
- 'carbon_user_sessions.session_id': 'session_id',
2038
- 'carbon_user_sessions.session_expires': 'session_expires',
2039
- 'carbon_user_sessions.session_data': 'session_data',
2040
- 'carbon_user_sessions.user_online_status': 'user_online_status',
2041
- 'carbon_user_tasks.task_id': 'task_id',
2042
- 'carbon_user_tasks.user_id': 'user_id',
2043
- 'carbon_user_tasks.from_id': 'from_id',
2044
- 'carbon_user_tasks.task_name': 'task_name',
2045
- 'carbon_user_tasks.task_description': 'task_description',
2046
- 'carbon_user_tasks.percent_complete': 'percent_complete',
2047
- 'carbon_user_tasks.start_date': 'start_date',
2048
- 'carbon_user_tasks.end_date': 'end_date',
2049
- 'carbon_users.user_username': 'user_username',
2050
- 'carbon_users.user_password': 'user_password',
2051
- 'carbon_users.user_id': 'user_id',
2052
- 'carbon_users.user_type': 'user_type',
2053
- 'carbon_users.user_sport': 'user_sport',
2054
- 'carbon_users.user_session_id': 'user_session_id',
2055
- 'carbon_users.user_facebook_id': 'user_facebook_id',
2056
- 'carbon_users.user_first_name': 'user_first_name',
2057
- 'carbon_users.user_last_name': 'user_last_name',
2058
- 'carbon_users.user_profile_pic': 'user_profile_pic',
2059
- 'carbon_users.user_profile_uri': 'user_profile_uri',
2060
- 'carbon_users.user_cover_photo': 'user_cover_photo',
2061
- 'carbon_users.user_birthday': 'user_birthday',
2062
- 'carbon_users.user_gender': 'user_gender',
2063
- 'carbon_users.user_about_me': 'user_about_me',
2064
- 'carbon_users.user_rank': 'user_rank',
2065
- 'carbon_users.user_email': 'user_email',
2066
- 'carbon_users.user_email_code': 'user_email_code',
2067
- 'carbon_users.user_email_confirmed': 'user_email_confirmed',
2068
- 'carbon_users.user_generated_string': 'user_generated_string',
2069
- 'carbon_users.user_membership': 'user_membership',
2070
- 'carbon_users.user_deactivated': 'user_deactivated',
2071
- 'carbon_users.user_last_login': 'user_last_login',
2072
- 'carbon_users.user_ip': 'user_ip',
2073
- 'carbon_users.user_education_history': 'user_education_history',
2074
- 'carbon_users.user_location': 'user_location',
2075
- 'carbon_users.user_creation_date': 'user_creation_date',
2076
- 'carbon_wp_commentmeta.meta_id': 'meta_id',
2077
- 'carbon_wp_commentmeta.comment_id': 'comment_id',
2078
- 'carbon_wp_commentmeta.meta_key': 'meta_key',
2079
- 'carbon_wp_commentmeta.meta_value': 'meta_value',
2080
- 'carbon_wp_comments.comment_ID': 'comment_ID',
2081
- 'carbon_wp_comments.comment_post_ID': 'comment_post_ID',
2082
- 'carbon_wp_comments.comment_author': 'comment_author',
2083
- 'carbon_wp_comments.comment_author_email': 'comment_author_email',
2084
- 'carbon_wp_comments.comment_author_url': 'comment_author_url',
2085
- 'carbon_wp_comments.comment_author_IP': 'comment_author_IP',
2086
- 'carbon_wp_comments.comment_date': 'comment_date',
2087
- 'carbon_wp_comments.comment_date_gmt': 'comment_date_gmt',
2088
- 'carbon_wp_comments.comment_content': 'comment_content',
2089
- 'carbon_wp_comments.comment_karma': 'comment_karma',
2090
- 'carbon_wp_comments.comment_approved': 'comment_approved',
2091
- 'carbon_wp_comments.comment_agent': 'comment_agent',
2092
- 'carbon_wp_comments.comment_type': 'comment_type',
2093
- 'carbon_wp_comments.comment_parent': 'comment_parent',
2094
- 'carbon_wp_comments.user_id': 'user_id',
2095
- 'carbon_wp_links.link_id': 'link_id',
2096
- 'carbon_wp_links.link_url': 'link_url',
2097
- 'carbon_wp_links.link_name': 'link_name',
2098
- 'carbon_wp_links.link_image': 'link_image',
2099
- 'carbon_wp_links.link_target': 'link_target',
2100
- 'carbon_wp_links.link_description': 'link_description',
2101
- 'carbon_wp_links.link_visible': 'link_visible',
2102
- 'carbon_wp_links.link_owner': 'link_owner',
2103
- 'carbon_wp_links.link_rating': 'link_rating',
2104
- 'carbon_wp_links.link_updated': 'link_updated',
2105
- 'carbon_wp_links.link_rel': 'link_rel',
2106
- 'carbon_wp_links.link_notes': 'link_notes',
2107
- 'carbon_wp_links.link_rss': 'link_rss',
2108
- 'carbon_wp_options.option_id': 'option_id',
2109
- 'carbon_wp_options.option_name': 'option_name',
2110
- 'carbon_wp_options.option_value': 'option_value',
2111
- 'carbon_wp_options.autoload': 'autoload',
2112
- 'carbon_wp_postmeta.meta_id': 'meta_id',
2113
- 'carbon_wp_postmeta.post_id': 'post_id',
2114
- 'carbon_wp_postmeta.meta_key': 'meta_key',
2115
- 'carbon_wp_postmeta.meta_value': 'meta_value',
2116
- 'carbon_wp_posts.ID': 'ID',
2117
- 'carbon_wp_posts.post_author': 'post_author',
2118
- 'carbon_wp_posts.post_date': 'post_date',
2119
- 'carbon_wp_posts.post_date_gmt': 'post_date_gmt',
2120
- 'carbon_wp_posts.post_content': 'post_content',
2121
- 'carbon_wp_posts.post_title': 'post_title',
2122
- 'carbon_wp_posts.post_excerpt': 'post_excerpt',
2123
- 'carbon_wp_posts.post_status': 'post_status',
2124
- 'carbon_wp_posts.comment_status': 'comment_status',
2125
- 'carbon_wp_posts.ping_status': 'ping_status',
2126
- 'carbon_wp_posts.post_password': 'post_password',
2127
- 'carbon_wp_posts.post_name': 'post_name',
2128
- 'carbon_wp_posts.to_ping': 'to_ping',
2129
- 'carbon_wp_posts.pinged': 'pinged',
2130
- 'carbon_wp_posts.post_modified': 'post_modified',
2131
- 'carbon_wp_posts.post_modified_gmt': 'post_modified_gmt',
2132
- 'carbon_wp_posts.post_content_filtered': 'post_content_filtered',
2133
- 'carbon_wp_posts.post_parent': 'post_parent',
2134
- 'carbon_wp_posts.guid': 'guid',
2135
- 'carbon_wp_posts.menu_order': 'menu_order',
2136
- 'carbon_wp_posts.post_type': 'post_type',
2137
- 'carbon_wp_posts.post_mime_type': 'post_mime_type',
2138
- 'carbon_wp_posts.comment_count': 'comment_count',
2139
- 'carbon_wp_term_relationships.object_id': 'object_id',
2140
- 'carbon_wp_term_relationships.term_taxonomy_id': 'term_taxonomy_id',
2141
- 'carbon_wp_term_relationships.term_order': 'term_order',
2142
- 'carbon_wp_term_taxonomy.term_taxonomy_id': 'term_taxonomy_id',
2143
- 'carbon_wp_term_taxonomy.term_id': 'term_id',
2144
- 'carbon_wp_term_taxonomy.taxonomy': 'taxonomy',
2145
- 'carbon_wp_term_taxonomy.description': 'description',
2146
- 'carbon_wp_term_taxonomy.parent': 'parent',
2147
- 'carbon_wp_term_taxonomy.count': 'count',
2148
- 'carbon_wp_termmeta.meta_id': 'meta_id',
2149
- 'carbon_wp_termmeta.term_id': 'term_id',
2150
- 'carbon_wp_termmeta.meta_key': 'meta_key',
2151
- 'carbon_wp_termmeta.meta_value': 'meta_value',
2152
- 'carbon_wp_terms.term_id': 'term_id',
2153
- 'carbon_wp_terms.name': 'name',
2154
- 'carbon_wp_terms.slug': 'slug',
2155
- 'carbon_wp_terms.term_group': 'term_group',
2156
- 'carbon_wp_usermeta.umeta_id': 'umeta_id',
2157
- 'carbon_wp_usermeta.user_id': 'user_id',
2158
- 'carbon_wp_usermeta.meta_key': 'meta_key',
2159
- 'carbon_wp_usermeta.meta_value': 'meta_value',
2160
- 'carbon_wp_users.ID': 'ID',
2161
- 'carbon_wp_users.user_login': 'user_login',
2162
- 'carbon_wp_users.user_pass': 'user_pass',
2163
- 'carbon_wp_users.user_nicename': 'user_nicename',
2164
- 'carbon_wp_users.user_email': 'user_email',
2165
- 'carbon_wp_users.user_url': 'user_url',
2166
- 'carbon_wp_users.user_registered': 'user_registered',
2167
- 'carbon_wp_users.user_activation_key': 'user_activation_key',
2168
- 'carbon_wp_users.user_status': 'user_status',
2169
- 'carbon_wp_users.display_name': 'display_name',
2170
- };
2171
- const convertForRequestBody = function (restfulObject, tableName, regexErrorHandler = alert) {
2172
- let payload = {};
2173
- const tableNames = Array.isArray(tableName) ? tableName : [tableName];
2174
- tableNames.forEach((table) => {
2175
- Object.keys(restfulObject).map(value => {
2176
- var _a;
2177
- let shortReference = value.toUpperCase();
2178
- switch (value) {
2179
- case C6.GET:
2180
- case C6.POST:
2181
- case C6.UPDATE:
2182
- case C6.REPLACE:
2183
- case C6.DELETE:
2184
- case C6.WHERE:
2185
- case C6.JOIN:
2186
- case C6.PAGINATION:
2187
- if (Array.isArray(restfulObject[value])) {
2188
- payload[value] = restfulObject[value].sort();
2189
- }
2190
- else if (typeof restfulObject[value] === 'object' && restfulObject[value] !== null) {
2191
- payload[value] = Object.keys(restfulObject[value])
2192
- .sort()
2193
- .reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: restfulObject[value][key] })), {});
2194
- }
2195
- return;
2196
- }
2197
- if (shortReference in C6[table]) {
2198
- const longName = C6[table][shortReference];
2199
- payload[longName] = restfulObject[value];
2200
- const regexValidations = C6[table].REGEX_VALIDATION[longName];
2201
- if (regexValidations instanceof RegExp) {
2202
- if (false === regexValidations.test(restfulObject[value])) {
2203
- regexErrorHandler('Failed to match regex (' + regexValidations + ') for column (' + longName + ')');
2204
- throw Error('Failed to match regex (' + regexValidations + ') for column (' + longName + ')');
2205
- }
2206
- }
2207
- else if (typeof regexValidations === 'object' && regexValidations !== null) {
2208
- (_a = Object.keys(regexValidations)) === null || _a === void 0 ? void 0 : _a.map((errorMessage) => {
2209
- const regex = regexValidations[errorMessage];
2210
- if (false === regex.test(restfulObject[value])) {
2211
- const devErrorMessage = 'Failed to match regex (' + regex + ') for column (' + longName + ')';
2212
- regexErrorHandler(errorMessage !== null && errorMessage !== void 0 ? errorMessage : devErrorMessage);
2213
- throw Error(devErrorMessage);
2214
- }
2215
- });
2216
- }
2217
- }
2218
- });
2219
- return true;
2220
- });
2221
- return Object.keys(payload)
2222
- .sort()
2223
- .reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: payload[key] })), {});
2224
- };
2225
-
2226
- export { C6, COLUMNS, TABLES, carbons, comments, convertForRequestBody, documentation, feature_group_references, features, group_references, groups, history_logs, location_references, locations, photos, reports, sessions, user_followers, user_groups, user_messages, user_sessions, user_tasks, users, wp_commentmeta, wp_comments, wp_links, wp_options, wp_postmeta, wp_posts, wp_term_relationships, wp_term_taxonomy, wp_termmeta, wp_terms, wp_usermeta, wp_users };
2227
- //# sourceMappingURL=C6.js.map