@carbonorm/carbonreact 3.0.2 → 3.0.5

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.
@@ -39,7 +39,19 @@ export type RestTableNames = 'carbon_carbons'
39
39
  | 'carbon_user_messages'
40
40
  | 'carbon_user_sessions'
41
41
  | 'carbon_user_tasks'
42
- | 'carbon_users';
42
+ | 'carbon_users'
43
+ | 'carbon_wp_commentmeta'
44
+ | 'carbon_wp_comments'
45
+ | 'carbon_wp_links'
46
+ | 'carbon_wp_options'
47
+ | 'carbon_wp_postmeta'
48
+ | 'carbon_wp_posts'
49
+ | 'carbon_wp_term_relationships'
50
+ | 'carbon_wp_term_taxonomy'
51
+ | 'carbon_wp_termmeta'
52
+ | 'carbon_wp_terms'
53
+ | 'carbon_wp_usermeta'
54
+ | 'carbon_wp_users';
43
55
 
44
56
  export type RestShortTableNames = 'carbons'
45
57
  | 'comments'
@@ -58,11 +70,24 @@ export type RestShortTableNames = 'carbons'
58
70
  | 'user_messages'
59
71
  | 'user_sessions'
60
72
  | 'user_tasks'
61
- | 'users';
73
+ | 'users'
74
+ | 'wp_commentmeta'
75
+ | 'wp_comments'
76
+ | 'wp_links'
77
+ | 'wp_options'
78
+ | 'wp_postmeta'
79
+ | 'wp_posts'
80
+ | 'wp_term_relationships'
81
+ | 'wp_term_taxonomy'
82
+ | 'wp_termmeta'
83
+ | 'wp_terms'
84
+ | 'wp_usermeta'
85
+ | 'wp_users';
62
86
 
63
87
  export interface C6RestfulModel {
64
88
  TABLE_NAME: RestShortTableNames,
65
89
  PRIMARY: string[],
90
+ PRIMARY_SHORT: string[],
66
91
  COLUMNS: stringMap,
67
92
  REGEX_VALIDATION: RegExpMap,
68
93
  TYPE_VALIDATION: {[key: string]: iTypeValidation},
@@ -90,6 +115,9 @@ export const carbons : C6RestfulModel & iDefineCarbons = {
90
115
  PRIMARY: [
91
116
  'carbon_carbons.entity_pk',
92
117
  ],
118
+ PRIMARY_SHORT: [
119
+ 'entity_pk',
120
+ ],
93
121
  COLUMNS: {
94
122
  'carbon_carbons.entity_pk':'entity_pk',
95
123
  'carbon_carbons.entity_fk':'entity_fk',
@@ -145,6 +173,9 @@ export const comments : C6RestfulModel & iDefineComments = {
145
173
  PRIMARY: [
146
174
  'carbon_comments.comment_id',
147
175
  ],
176
+ PRIMARY_SHORT: [
177
+ 'comment_id',
178
+ ],
148
179
  COLUMNS: {
149
180
  'carbon_comments.parent_id':'parent_id',
150
181
  'carbon_comments.comment_id':'comment_id',
@@ -205,6 +236,9 @@ export const documentation : C6RestfulModel & iDefineDocumentation = {
205
236
  DOCUMENTATION_VERSION: 'carbon_documentation.documentation_version',
206
237
  DOCUMENTATION_ACTIVE: 'carbon_documentation.documentation_active',
207
238
  PRIMARY: [
239
+ ],
240
+ PRIMARY_SHORT: [
241
+
208
242
  ],
209
243
  COLUMNS: {
210
244
  'carbon_documentation.documentation_uri':'documentation_uri',
@@ -260,6 +294,9 @@ export const feature_group_references : C6RestfulModel & iDefineFeature_Group_Re
260
294
  FEATURE_ENTITY_ID: 'carbon_feature_group_references.feature_entity_id',
261
295
  GROUP_ENTITY_ID: 'carbon_feature_group_references.group_entity_id',
262
296
  PRIMARY: [
297
+ ],
298
+ PRIMARY_SHORT: [
299
+
263
300
  ],
264
301
  COLUMNS: {
265
302
  'carbon_feature_group_references.feature_entity_id':'feature_entity_id',
@@ -306,6 +343,9 @@ export const features : C6RestfulModel & iDefineFeatures = {
306
343
  PRIMARY: [
307
344
  'carbon_features.feature_entity_id',
308
345
  ],
346
+ PRIMARY_SHORT: [
347
+ 'feature_entity_id',
348
+ ],
309
349
  COLUMNS: {
310
350
  'carbon_features.feature_entity_id':'feature_entity_id',
311
351
  'carbon_features.feature_code':'feature_code',
@@ -353,6 +393,9 @@ export const group_references : C6RestfulModel & iDefineGroup_References = {
353
393
  GROUP_ID: 'carbon_group_references.group_id',
354
394
  ALLOWED_TO_GRANT_GROUP_ID: 'carbon_group_references.allowed_to_grant_group_id',
355
395
  PRIMARY: [
396
+ ],
397
+ PRIMARY_SHORT: [
398
+
356
399
  ],
357
400
  COLUMNS: {
358
401
  'carbon_group_references.group_id':'group_id',
@@ -402,6 +445,9 @@ export const groups : C6RestfulModel & iDefineGroups = {
402
445
  PRIMARY: [
403
446
  'carbon_groups.entity_id',
404
447
  ],
448
+ PRIMARY_SHORT: [
449
+ 'entity_id',
450
+ ],
405
451
  COLUMNS: {
406
452
  'carbon_groups.group_name':'group_name',
407
453
  'carbon_groups.entity_id':'entity_id',
@@ -468,6 +514,9 @@ export const history_logs : C6RestfulModel & iDefineHistory_Logs = {
468
514
  HISTORY_ORIGINAL_QUERY: 'carbon_history_logs.history_original_query',
469
515
  HISTORY_TIME: 'carbon_history_logs.history_time',
470
516
  PRIMARY: [
517
+ ],
518
+ PRIMARY_SHORT: [
519
+
471
520
  ],
472
521
  COLUMNS: {
473
522
  'carbon_history_logs.history_uuid':'history_uuid',
@@ -540,6 +589,9 @@ export const location_references : C6RestfulModel & iDefineLocation_References =
540
589
  LOCATION_REFERENCE: 'carbon_location_references.location_reference',
541
590
  LOCATION_TIME: 'carbon_location_references.location_time',
542
591
  PRIMARY: [
592
+ ],
593
+ PRIMARY_SHORT: [
594
+
543
595
  ],
544
596
  COLUMNS: {
545
597
  'carbon_location_references.entity_reference':'entity_reference',
@@ -608,6 +660,9 @@ export const locations : C6RestfulModel & iDefineLocations = {
608
660
  PRIMARY: [
609
661
  'carbon_locations.entity_id',
610
662
  ],
663
+ PRIMARY_SHORT: [
664
+ 'entity_id',
665
+ ],
611
666
  COLUMNS: {
612
667
  'carbon_locations.entity_id':'entity_id',
613
668
  'carbon_locations.latitude':'latitude',
@@ -701,6 +756,9 @@ export const photos : C6RestfulModel & iDefinePhotos = {
701
756
  PRIMARY: [
702
757
  'carbon_photos.parent_id',
703
758
  ],
759
+ PRIMARY_SHORT: [
760
+ 'parent_id',
761
+ ],
704
762
  COLUMNS: {
705
763
  'carbon_photos.parent_id':'parent_id',
706
764
  'carbon_photos.photo_id':'photo_id',
@@ -768,6 +826,9 @@ export const reports : C6RestfulModel & iDefineReports = {
768
826
  DATE: 'carbon_reports.date',
769
827
  CALL_TRACE: 'carbon_reports.call_trace',
770
828
  PRIMARY: [
829
+ ],
830
+ PRIMARY_SHORT: [
831
+
771
832
  ],
772
833
  COLUMNS: {
773
834
  'carbon_reports.log_level':'log_level',
@@ -828,6 +889,9 @@ export const user_followers : C6RestfulModel & iDefineUser_Followers = {
828
889
  PRIMARY: [
829
890
  'carbon_user_followers.follower_table_id',
830
891
  ],
892
+ PRIMARY_SHORT: [
893
+ 'follower_table_id',
894
+ ],
831
895
  COLUMNS: {
832
896
  'carbon_user_followers.follower_table_id':'follower_table_id',
833
897
  'carbon_user_followers.follows_user_id':'follows_user_id',
@@ -875,6 +939,9 @@ export const user_groups : C6RestfulModel & iDefineUser_Groups = {
875
939
  GROUP_ID: 'carbon_user_groups.group_id',
876
940
  USER_ID: 'carbon_user_groups.user_id',
877
941
  PRIMARY: [
942
+ ],
943
+ PRIMARY_SHORT: [
944
+
878
945
  ],
879
946
  COLUMNS: {
880
947
  'carbon_user_groups.group_id':'group_id',
@@ -930,6 +997,9 @@ export const user_messages : C6RestfulModel & iDefineUser_Messages = {
930
997
  PRIMARY: [
931
998
  'carbon_user_messages.message_id',
932
999
  ],
1000
+ PRIMARY_SHORT: [
1001
+ 'message_id',
1002
+ ],
933
1003
  COLUMNS: {
934
1004
  'carbon_user_messages.message_id':'message_id',
935
1005
  'carbon_user_messages.from_user_id':'from_user_id',
@@ -1012,6 +1082,9 @@ export const user_sessions : C6RestfulModel & iDefineUser_Sessions = {
1012
1082
  PRIMARY: [
1013
1083
  'carbon_user_sessions.session_id',
1014
1084
  ],
1085
+ PRIMARY_SHORT: [
1086
+ 'session_id',
1087
+ ],
1015
1088
  COLUMNS: {
1016
1089
  'carbon_user_sessions.user_id':'user_id',
1017
1090
  'carbon_user_sessions.user_ip':'user_ip',
@@ -1028,8 +1101,8 @@ export const user_sessions : C6RestfulModel & iDefineUser_Sessions = {
1028
1101
  SKIP_COLUMN_IN_POST: false
1029
1102
  },
1030
1103
  'carbon_user_sessions.user_ip': {
1031
- MYSQL_TYPE: 'binary',
1032
- MAX_LENGTH: '16',
1104
+ MYSQL_TYPE: 'varchar',
1105
+ MAX_LENGTH: '80',
1033
1106
  AUTO_INCREMENT: false,
1034
1107
  SKIP_COLUMN_IN_POST: true
1035
1108
  },
@@ -1100,6 +1173,9 @@ export const user_tasks : C6RestfulModel & iDefineUser_Tasks = {
1100
1173
  PRIMARY: [
1101
1174
  'carbon_user_tasks.task_id',
1102
1175
  ],
1176
+ PRIMARY_SHORT: [
1177
+ 'task_id',
1178
+ ],
1103
1179
  COLUMNS: {
1104
1180
  'carbon_user_tasks.task_id':'task_id',
1105
1181
  'carbon_user_tasks.user_id':'user_id',
@@ -1259,6 +1335,9 @@ export const users : C6RestfulModel & iDefineUsers = {
1259
1335
  PRIMARY: [
1260
1336
  'carbon_users.user_id',
1261
1337
  ],
1338
+ PRIMARY_SHORT: [
1339
+ 'user_id',
1340
+ ],
1262
1341
  COLUMNS: {
1263
1342
  'carbon_users.user_username':'user_username',
1264
1343
  'carbon_users.user_password':'user_password',
@@ -1459,134 +1538,1387 @@ export const users : C6RestfulModel & iDefineUsers = {
1459
1538
 
1460
1539
 
1461
1540
 
1462
- export const TABLES = {
1463
-
1464
- carbons: carbons,
1465
- comments: comments,
1466
- documentation: documentation,
1467
- feature_group_references: feature_group_references,
1468
- features: features,
1469
- group_references: group_references,
1470
- groups: groups,
1471
- history_logs: history_logs,
1472
- location_references: location_references,
1473
- locations: locations,
1474
- photos: photos,
1475
- reports: reports,
1476
- user_followers: user_followers,
1477
- user_groups: user_groups,
1478
- user_messages: user_messages,
1479
- user_sessions: user_sessions,
1480
- user_tasks: user_tasks,
1481
- users: users,
1482
- };
1483
-
1484
- export const C6 : { TABLES: { [key: string]: (C6RestfulModel & { [key: string]: any }) } }
1485
- & { [key: string]: any } = {
1486
- // try to 1=1 match the Rest abstract class
1487
- ADDDATE: 'ADDDATE',
1488
- ADDTIME: 'ADDTIME',
1489
- AS: 'AS',
1490
- ASC: 'ASC',
1491
-
1492
- BETWEEN: 'BETWEEN',
1493
-
1494
- CONCAT: 'CONCAT',
1495
- CONVERT_TZ: 'CONVERT_TZ',
1496
- COUNT: 'COUNT',
1497
- COUNT_ALL: 'COUNT_ALL',
1498
- CURRENT_DATE: 'CURRENT_DATE',
1499
- CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP',
1541
+ export interface iWp_Commentmeta {
1542
+ 'meta_id'?: number;
1543
+ 'comment_id'?: number;
1544
+ 'meta_key'?: string;
1545
+ 'meta_value'?: string;
1546
+ }
1500
1547
 
1501
- DAY: 'DAY',
1502
- DAY_HOUR: 'DAY_HOUR',
1503
- DAY_MICROSECOND: 'DAY_MICROSECOND',
1504
- DAY_MINUTE: 'DAY_MINUTE',
1505
- DAY_SECOND: 'DAY_SECOND',
1506
- DAYNAME: 'DAYNAME',
1507
- DAYOFMONTH: 'DAYOFMONTH',
1508
- DAYOFWEEK: 'DAYOFWEEK',
1509
- DAYOFYEAR: 'DAYOFYEAR',
1510
- DATE: 'DATE',
1511
- DATE_ADD: 'DATE_ADD',
1512
- DATEDIFF: 'DATEDIFF',
1513
- DATE_SUB: 'DATE_SUB',
1514
- DATE_FORMAT: 'DATE_FORMAT',
1515
- DESC: 'DESC',
1516
- DISTINCT: 'DISTINCT',
1548
+ interface iDefineWp_Commentmeta {
1549
+ 'META_ID': string;
1550
+ 'COMMENT_ID': string;
1551
+ 'META_KEY': string;
1552
+ 'META_VALUE': string;
1553
+ }
1517
1554
 
1518
- EXTRACT: 'EXTRACT',
1519
- EQUAL: '=',
1520
- EQUAL_NULL_SAFE: '<=>',
1555
+ export const wp_commentmeta : C6RestfulModel & iDefineWp_Commentmeta = {
1556
+ TABLE_NAME:'wp_commentmeta',
1557
+ META_ID: 'carbon_wp_commentmeta.meta_id',
1558
+ COMMENT_ID: 'carbon_wp_commentmeta.comment_id',
1559
+ META_KEY: 'carbon_wp_commentmeta.meta_key',
1560
+ META_VALUE: 'carbon_wp_commentmeta.meta_value',
1561
+ PRIMARY: [
1562
+ 'carbon_wp_commentmeta.meta_id',
1563
+ ],
1564
+ PRIMARY_SHORT: [
1565
+ 'meta_id',
1566
+ ],
1567
+ COLUMNS: {
1568
+ 'carbon_wp_commentmeta.meta_id':'meta_id',
1569
+ 'carbon_wp_commentmeta.comment_id':'comment_id',
1570
+ 'carbon_wp_commentmeta.meta_key':'meta_key',
1571
+ 'carbon_wp_commentmeta.meta_value':'meta_value',
1572
+ },
1573
+ TYPE_VALIDATION: {
1574
+ 'carbon_wp_commentmeta.meta_id': {
1575
+ MYSQL_TYPE: 'bigint unsigned',
1576
+ MAX_LENGTH: '',
1577
+ AUTO_INCREMENT: true,
1578
+ SKIP_COLUMN_IN_POST: true
1579
+ },
1580
+ 'carbon_wp_commentmeta.comment_id': {
1581
+ MYSQL_TYPE: 'bigint unsigned',
1582
+ MAX_LENGTH: '',
1583
+ AUTO_INCREMENT: false,
1584
+ SKIP_COLUMN_IN_POST: true
1585
+ },
1586
+ 'carbon_wp_commentmeta.meta_key': {
1587
+ MYSQL_TYPE: 'varchar',
1588
+ MAX_LENGTH: '255',
1589
+ AUTO_INCREMENT: false,
1590
+ SKIP_COLUMN_IN_POST: true
1591
+ },
1592
+ 'carbon_wp_commentmeta.meta_value': {
1593
+ MYSQL_TYPE: 'longtext',
1594
+ MAX_LENGTH: '',
1595
+ AUTO_INCREMENT: false,
1596
+ SKIP_COLUMN_IN_POST: false
1597
+ },
1598
+ },
1599
+ REGEX_VALIDATION: {
1600
+ }
1521
1601
 
1522
- FALSE: 'FALSE',
1523
- FULL_OUTER: 'FULL_OUTER',
1524
- FROM_DAYS: 'FROM_DAYS',
1525
- FROM_UNIXTIME: 'FROM_UNIXTIME',
1602
+ }
1526
1603
 
1527
- GET_FORMAT: 'GET_FORMAT',
1528
- GREATER_THAN: '>',
1529
- GROUP_BY: 'GROUP_BY',
1530
- GROUP_CONCAT: 'GROUP_CONCAT',
1531
- GREATER_THAN_OR_EQUAL_TO: '>=',
1532
1604
 
1533
- HAVING: 'HAVING',
1534
- HEX: 'HEX',
1535
- HOUR: 'HOUR',
1536
- HOUR_MICROSECOND: 'HOUR_MICROSECOND',
1537
- HOUR_SECOND: 'HOUR_SECOND',
1538
- HOUR_MINUTE: 'HOUR_MINUTE',
1539
1605
 
1540
- IN: 'IN',
1541
- IS: 'IS',
1542
- IS_NOT: 'IS_NOT',
1543
- INNER: 'INNER',
1544
- INTERVAL: 'INTERVAL',
1606
+ export interface iWp_Comments {
1607
+ 'comment_ID'?: number;
1608
+ 'comment_post_ID'?: number;
1609
+ 'comment_author'?: string;
1610
+ 'comment_author_email'?: string;
1611
+ 'comment_author_url'?: string;
1612
+ 'comment_author_IP'?: string;
1613
+ 'comment_date'?: string;
1614
+ 'comment_date_gmt'?: string;
1615
+ 'comment_content'?: string;
1616
+ 'comment_karma'?: number;
1617
+ 'comment_approved'?: string;
1618
+ 'comment_agent'?: string;
1619
+ 'comment_type'?: string;
1620
+ 'comment_parent'?: number;
1621
+ 'user_id'?: number;
1622
+ }
1545
1623
 
1546
- JOIN: 'JOIN',
1624
+ interface iDefineWp_Comments {
1625
+ 'COMMENT_ID': string;
1626
+ 'COMMENT_POST_ID': string;
1627
+ 'COMMENT_AUTHOR': string;
1628
+ 'COMMENT_AUTHOR_EMAIL': string;
1629
+ 'COMMENT_AUTHOR_URL': string;
1630
+ 'COMMENT_AUTHOR_IP': string;
1631
+ 'COMMENT_DATE': string;
1632
+ 'COMMENT_DATE_GMT': string;
1633
+ 'COMMENT_CONTENT': string;
1634
+ 'COMMENT_KARMA': string;
1635
+ 'COMMENT_APPROVED': string;
1636
+ 'COMMENT_AGENT': string;
1637
+ 'COMMENT_TYPE': string;
1638
+ 'COMMENT_PARENT': string;
1639
+ 'USER_ID': string;
1640
+ }
1547
1641
 
1548
- LEFT: 'LEFT',
1549
- LEFT_OUTER: 'LEFT_OUTER',
1550
- LESS_THAN: '<',
1551
- LESS_THAN_OR_EQUAL_TO: '<=',
1552
- LIKE: 'LIKE',
1553
- LIMIT: 'LIMIT',
1554
- LOCALTIME: 'LOCALTIME',
1555
- LOCALTIMESTAMP: 'LOCALTIMESTAMP',
1642
+ export const wp_comments : C6RestfulModel & iDefineWp_Comments = {
1643
+ TABLE_NAME:'wp_comments',
1644
+ COMMENT_ID: 'carbon_wp_comments.comment_ID',
1645
+ COMMENT_POST_ID: 'carbon_wp_comments.comment_post_ID',
1646
+ COMMENT_AUTHOR: 'carbon_wp_comments.comment_author',
1647
+ COMMENT_AUTHOR_EMAIL: 'carbon_wp_comments.comment_author_email',
1648
+ COMMENT_AUTHOR_URL: 'carbon_wp_comments.comment_author_url',
1649
+ COMMENT_AUTHOR_IP: 'carbon_wp_comments.comment_author_IP',
1650
+ COMMENT_DATE: 'carbon_wp_comments.comment_date',
1651
+ COMMENT_DATE_GMT: 'carbon_wp_comments.comment_date_gmt',
1652
+ COMMENT_CONTENT: 'carbon_wp_comments.comment_content',
1653
+ COMMENT_KARMA: 'carbon_wp_comments.comment_karma',
1654
+ COMMENT_APPROVED: 'carbon_wp_comments.comment_approved',
1655
+ COMMENT_AGENT: 'carbon_wp_comments.comment_agent',
1656
+ COMMENT_TYPE: 'carbon_wp_comments.comment_type',
1657
+ COMMENT_PARENT: 'carbon_wp_comments.comment_parent',
1658
+ USER_ID: 'carbon_wp_comments.user_id',
1659
+ PRIMARY: [
1660
+ 'carbon_wp_comments.comment_ID',
1661
+ ],
1662
+ PRIMARY_SHORT: [
1663
+ 'comment_ID',
1664
+ ],
1665
+ COLUMNS: {
1666
+ 'carbon_wp_comments.comment_ID':'comment_ID',
1667
+ 'carbon_wp_comments.comment_post_ID':'comment_post_ID',
1668
+ 'carbon_wp_comments.comment_author':'comment_author',
1669
+ 'carbon_wp_comments.comment_author_email':'comment_author_email',
1670
+ 'carbon_wp_comments.comment_author_url':'comment_author_url',
1671
+ 'carbon_wp_comments.comment_author_IP':'comment_author_IP',
1672
+ 'carbon_wp_comments.comment_date':'comment_date',
1673
+ 'carbon_wp_comments.comment_date_gmt':'comment_date_gmt',
1674
+ 'carbon_wp_comments.comment_content':'comment_content',
1675
+ 'carbon_wp_comments.comment_karma':'comment_karma',
1676
+ 'carbon_wp_comments.comment_approved':'comment_approved',
1677
+ 'carbon_wp_comments.comment_agent':'comment_agent',
1678
+ 'carbon_wp_comments.comment_type':'comment_type',
1679
+ 'carbon_wp_comments.comment_parent':'comment_parent',
1680
+ 'carbon_wp_comments.user_id':'user_id',
1681
+ },
1682
+ TYPE_VALIDATION: {
1683
+ 'carbon_wp_comments.comment_ID': {
1684
+ MYSQL_TYPE: 'bigint unsigned',
1685
+ MAX_LENGTH: '',
1686
+ AUTO_INCREMENT: true,
1687
+ SKIP_COLUMN_IN_POST: true
1688
+ },
1689
+ 'carbon_wp_comments.comment_post_ID': {
1690
+ MYSQL_TYPE: 'bigint unsigned',
1691
+ MAX_LENGTH: '',
1692
+ AUTO_INCREMENT: false,
1693
+ SKIP_COLUMN_IN_POST: true
1694
+ },
1695
+ 'carbon_wp_comments.comment_author': {
1696
+ MYSQL_TYPE: 'tinytext',
1697
+ MAX_LENGTH: '',
1698
+ AUTO_INCREMENT: false,
1699
+ SKIP_COLUMN_IN_POST: false
1700
+ },
1701
+ 'carbon_wp_comments.comment_author_email': {
1702
+ MYSQL_TYPE: 'varchar',
1703
+ MAX_LENGTH: '100',
1704
+ AUTO_INCREMENT: false,
1705
+ SKIP_COLUMN_IN_POST: true
1706
+ },
1707
+ 'carbon_wp_comments.comment_author_url': {
1708
+ MYSQL_TYPE: 'varchar',
1709
+ MAX_LENGTH: '200',
1710
+ AUTO_INCREMENT: false,
1711
+ SKIP_COLUMN_IN_POST: true
1712
+ },
1713
+ 'carbon_wp_comments.comment_author_IP': {
1714
+ MYSQL_TYPE: 'varchar',
1715
+ MAX_LENGTH: '100',
1716
+ AUTO_INCREMENT: false,
1717
+ SKIP_COLUMN_IN_POST: true
1718
+ },
1719
+ 'carbon_wp_comments.comment_date': {
1720
+ MYSQL_TYPE: 'datetime',
1721
+ MAX_LENGTH: '',
1722
+ AUTO_INCREMENT: false,
1723
+ SKIP_COLUMN_IN_POST: true
1724
+ },
1725
+ 'carbon_wp_comments.comment_date_gmt': {
1726
+ MYSQL_TYPE: 'datetime',
1727
+ MAX_LENGTH: '',
1728
+ AUTO_INCREMENT: false,
1729
+ SKIP_COLUMN_IN_POST: true
1730
+ },
1731
+ 'carbon_wp_comments.comment_content': {
1732
+ MYSQL_TYPE: 'text',
1733
+ MAX_LENGTH: '',
1734
+ AUTO_INCREMENT: false,
1735
+ SKIP_COLUMN_IN_POST: false
1736
+ },
1737
+ 'carbon_wp_comments.comment_karma': {
1738
+ MYSQL_TYPE: 'int',
1739
+ MAX_LENGTH: '',
1740
+ AUTO_INCREMENT: false,
1741
+ SKIP_COLUMN_IN_POST: true
1742
+ },
1743
+ 'carbon_wp_comments.comment_approved': {
1744
+ MYSQL_TYPE: 'varchar',
1745
+ MAX_LENGTH: '20',
1746
+ AUTO_INCREMENT: false,
1747
+ SKIP_COLUMN_IN_POST: true
1748
+ },
1749
+ 'carbon_wp_comments.comment_agent': {
1750
+ MYSQL_TYPE: 'varchar',
1751
+ MAX_LENGTH: '255',
1752
+ AUTO_INCREMENT: false,
1753
+ SKIP_COLUMN_IN_POST: true
1754
+ },
1755
+ 'carbon_wp_comments.comment_type': {
1756
+ MYSQL_TYPE: 'varchar',
1757
+ MAX_LENGTH: '20',
1758
+ AUTO_INCREMENT: false,
1759
+ SKIP_COLUMN_IN_POST: true
1760
+ },
1761
+ 'carbon_wp_comments.comment_parent': {
1762
+ MYSQL_TYPE: 'bigint unsigned',
1763
+ MAX_LENGTH: '',
1764
+ AUTO_INCREMENT: false,
1765
+ SKIP_COLUMN_IN_POST: true
1766
+ },
1767
+ 'carbon_wp_comments.user_id': {
1768
+ MYSQL_TYPE: 'bigint unsigned',
1769
+ MAX_LENGTH: '',
1770
+ AUTO_INCREMENT: false,
1771
+ SKIP_COLUMN_IN_POST: true
1772
+ },
1773
+ },
1774
+ REGEX_VALIDATION: {
1775
+ }
1556
1776
 
1557
- MAKEDATE: 'MAKEDATE',
1558
- MAKETIME: 'MAKETIME',
1559
- MONTHNAME: 'MONTHNAME',
1560
- MICROSECOND: 'MICROSECOND',
1561
- MINUTE: 'MINUTE',
1562
- MINUTE_MICROSECOND: 'MINUTE_MICROSECOND',
1563
- MINUTE_SECOND: 'MINUTE_SECOND',
1564
- MIN: 'MIN',
1565
- MAX: 'MAX',
1566
- MONTH: 'MONTH',
1777
+ }
1567
1778
 
1568
- NOT_LIKE: 'NOT_LIKE',
1569
- NOT_EQUAL: '<>',
1570
- NOT_IN: 'NOT_IN',
1571
- NOW: 'NOW',
1572
- NULL: 'NULL',
1573
1779
 
1574
- ORDER: 'ORDER',
1575
1780
 
1576
- PAGE: 'PAGE',
1577
- PAGINATION: 'PAGINATION',
1578
- RIGHT_OUTER: 'RIGHT_OUTER',
1781
+ export interface iWp_Links {
1782
+ 'link_id'?: number;
1783
+ 'link_url'?: string;
1784
+ 'link_name'?: string;
1785
+ 'link_image'?: string;
1786
+ 'link_target'?: string;
1787
+ 'link_description'?: string;
1788
+ 'link_visible'?: string;
1789
+ 'link_owner'?: number;
1790
+ 'link_rating'?: number;
1791
+ 'link_updated'?: string;
1792
+ 'link_rel'?: string;
1793
+ 'link_notes'?: string;
1794
+ 'link_rss'?: string;
1795
+ }
1579
1796
 
1580
- SECOND: 'SECOND',
1581
- SECOND_MICROSECOND: 'SECOND_MICROSECOND',
1582
- SELECT: 'SELECT',
1583
- STR_TO_DATE: 'STR_TO_DATE',
1584
- SUBDATE: 'SUBDATE',
1585
- SUBTIME: 'SUBTIME',
1586
- SUM: 'SUM',
1587
- SYSDATE: 'SYSDATE',
1797
+ interface iDefineWp_Links {
1798
+ 'LINK_ID': string;
1799
+ 'LINK_URL': string;
1800
+ 'LINK_NAME': string;
1801
+ 'LINK_IMAGE': string;
1802
+ 'LINK_TARGET': string;
1803
+ 'LINK_DESCRIPTION': string;
1804
+ 'LINK_VISIBLE': string;
1805
+ 'LINK_OWNER': string;
1806
+ 'LINK_RATING': string;
1807
+ 'LINK_UPDATED': string;
1808
+ 'LINK_REL': string;
1809
+ 'LINK_NOTES': string;
1810
+ 'LINK_RSS': string;
1811
+ }
1588
1812
 
1589
- TIME: 'TIME',
1813
+ export const wp_links : C6RestfulModel & iDefineWp_Links = {
1814
+ TABLE_NAME:'wp_links',
1815
+ LINK_ID: 'carbon_wp_links.link_id',
1816
+ LINK_URL: 'carbon_wp_links.link_url',
1817
+ LINK_NAME: 'carbon_wp_links.link_name',
1818
+ LINK_IMAGE: 'carbon_wp_links.link_image',
1819
+ LINK_TARGET: 'carbon_wp_links.link_target',
1820
+ LINK_DESCRIPTION: 'carbon_wp_links.link_description',
1821
+ LINK_VISIBLE: 'carbon_wp_links.link_visible',
1822
+ LINK_OWNER: 'carbon_wp_links.link_owner',
1823
+ LINK_RATING: 'carbon_wp_links.link_rating',
1824
+ LINK_UPDATED: 'carbon_wp_links.link_updated',
1825
+ LINK_REL: 'carbon_wp_links.link_rel',
1826
+ LINK_NOTES: 'carbon_wp_links.link_notes',
1827
+ LINK_RSS: 'carbon_wp_links.link_rss',
1828
+ PRIMARY: [
1829
+ 'carbon_wp_links.link_id',
1830
+ ],
1831
+ PRIMARY_SHORT: [
1832
+ 'link_id',
1833
+ ],
1834
+ COLUMNS: {
1835
+ 'carbon_wp_links.link_id':'link_id',
1836
+ 'carbon_wp_links.link_url':'link_url',
1837
+ 'carbon_wp_links.link_name':'link_name',
1838
+ 'carbon_wp_links.link_image':'link_image',
1839
+ 'carbon_wp_links.link_target':'link_target',
1840
+ 'carbon_wp_links.link_description':'link_description',
1841
+ 'carbon_wp_links.link_visible':'link_visible',
1842
+ 'carbon_wp_links.link_owner':'link_owner',
1843
+ 'carbon_wp_links.link_rating':'link_rating',
1844
+ 'carbon_wp_links.link_updated':'link_updated',
1845
+ 'carbon_wp_links.link_rel':'link_rel',
1846
+ 'carbon_wp_links.link_notes':'link_notes',
1847
+ 'carbon_wp_links.link_rss':'link_rss',
1848
+ },
1849
+ TYPE_VALIDATION: {
1850
+ 'carbon_wp_links.link_id': {
1851
+ MYSQL_TYPE: 'bigint unsigned',
1852
+ MAX_LENGTH: '',
1853
+ AUTO_INCREMENT: true,
1854
+ SKIP_COLUMN_IN_POST: true
1855
+ },
1856
+ 'carbon_wp_links.link_url': {
1857
+ MYSQL_TYPE: 'varchar',
1858
+ MAX_LENGTH: '255',
1859
+ AUTO_INCREMENT: false,
1860
+ SKIP_COLUMN_IN_POST: true
1861
+ },
1862
+ 'carbon_wp_links.link_name': {
1863
+ MYSQL_TYPE: 'varchar',
1864
+ MAX_LENGTH: '255',
1865
+ AUTO_INCREMENT: false,
1866
+ SKIP_COLUMN_IN_POST: true
1867
+ },
1868
+ 'carbon_wp_links.link_image': {
1869
+ MYSQL_TYPE: 'varchar',
1870
+ MAX_LENGTH: '255',
1871
+ AUTO_INCREMENT: false,
1872
+ SKIP_COLUMN_IN_POST: true
1873
+ },
1874
+ 'carbon_wp_links.link_target': {
1875
+ MYSQL_TYPE: 'varchar',
1876
+ MAX_LENGTH: '25',
1877
+ AUTO_INCREMENT: false,
1878
+ SKIP_COLUMN_IN_POST: true
1879
+ },
1880
+ 'carbon_wp_links.link_description': {
1881
+ MYSQL_TYPE: 'varchar',
1882
+ MAX_LENGTH: '255',
1883
+ AUTO_INCREMENT: false,
1884
+ SKIP_COLUMN_IN_POST: true
1885
+ },
1886
+ 'carbon_wp_links.link_visible': {
1887
+ MYSQL_TYPE: 'varchar',
1888
+ MAX_LENGTH: '20',
1889
+ AUTO_INCREMENT: false,
1890
+ SKIP_COLUMN_IN_POST: true
1891
+ },
1892
+ 'carbon_wp_links.link_owner': {
1893
+ MYSQL_TYPE: 'bigint unsigned',
1894
+ MAX_LENGTH: '',
1895
+ AUTO_INCREMENT: false,
1896
+ SKIP_COLUMN_IN_POST: true
1897
+ },
1898
+ 'carbon_wp_links.link_rating': {
1899
+ MYSQL_TYPE: 'int',
1900
+ MAX_LENGTH: '',
1901
+ AUTO_INCREMENT: false,
1902
+ SKIP_COLUMN_IN_POST: true
1903
+ },
1904
+ 'carbon_wp_links.link_updated': {
1905
+ MYSQL_TYPE: 'datetime',
1906
+ MAX_LENGTH: '',
1907
+ AUTO_INCREMENT: false,
1908
+ SKIP_COLUMN_IN_POST: true
1909
+ },
1910
+ 'carbon_wp_links.link_rel': {
1911
+ MYSQL_TYPE: 'varchar',
1912
+ MAX_LENGTH: '255',
1913
+ AUTO_INCREMENT: false,
1914
+ SKIP_COLUMN_IN_POST: true
1915
+ },
1916
+ 'carbon_wp_links.link_notes': {
1917
+ MYSQL_TYPE: 'mediumtext',
1918
+ MAX_LENGTH: '',
1919
+ AUTO_INCREMENT: false,
1920
+ SKIP_COLUMN_IN_POST: false
1921
+ },
1922
+ 'carbon_wp_links.link_rss': {
1923
+ MYSQL_TYPE: 'varchar',
1924
+ MAX_LENGTH: '255',
1925
+ AUTO_INCREMENT: false,
1926
+ SKIP_COLUMN_IN_POST: true
1927
+ },
1928
+ },
1929
+ REGEX_VALIDATION: {
1930
+ }
1931
+
1932
+ }
1933
+
1934
+
1935
+
1936
+ export interface iWp_Options {
1937
+ 'option_id'?: number;
1938
+ 'option_name'?: string;
1939
+ 'option_value'?: string;
1940
+ 'autoload'?: string;
1941
+ }
1942
+
1943
+ interface iDefineWp_Options {
1944
+ 'OPTION_ID': string;
1945
+ 'OPTION_NAME': string;
1946
+ 'OPTION_VALUE': string;
1947
+ 'AUTOLOAD': string;
1948
+ }
1949
+
1950
+ export const wp_options : C6RestfulModel & iDefineWp_Options = {
1951
+ TABLE_NAME:'wp_options',
1952
+ OPTION_ID: 'carbon_wp_options.option_id',
1953
+ OPTION_NAME: 'carbon_wp_options.option_name',
1954
+ OPTION_VALUE: 'carbon_wp_options.option_value',
1955
+ AUTOLOAD: 'carbon_wp_options.autoload',
1956
+ PRIMARY: [
1957
+ 'carbon_wp_options.option_id',
1958
+ ],
1959
+ PRIMARY_SHORT: [
1960
+ 'option_id',
1961
+ ],
1962
+ COLUMNS: {
1963
+ 'carbon_wp_options.option_id':'option_id',
1964
+ 'carbon_wp_options.option_name':'option_name',
1965
+ 'carbon_wp_options.option_value':'option_value',
1966
+ 'carbon_wp_options.autoload':'autoload',
1967
+ },
1968
+ TYPE_VALIDATION: {
1969
+ 'carbon_wp_options.option_id': {
1970
+ MYSQL_TYPE: 'bigint unsigned',
1971
+ MAX_LENGTH: '',
1972
+ AUTO_INCREMENT: true,
1973
+ SKIP_COLUMN_IN_POST: true
1974
+ },
1975
+ 'carbon_wp_options.option_name': {
1976
+ MYSQL_TYPE: 'varchar',
1977
+ MAX_LENGTH: '191',
1978
+ AUTO_INCREMENT: false,
1979
+ SKIP_COLUMN_IN_POST: true
1980
+ },
1981
+ 'carbon_wp_options.option_value': {
1982
+ MYSQL_TYPE: 'longtext',
1983
+ MAX_LENGTH: '',
1984
+ AUTO_INCREMENT: false,
1985
+ SKIP_COLUMN_IN_POST: false
1986
+ },
1987
+ 'carbon_wp_options.autoload': {
1988
+ MYSQL_TYPE: 'varchar',
1989
+ MAX_LENGTH: '20',
1990
+ AUTO_INCREMENT: false,
1991
+ SKIP_COLUMN_IN_POST: true
1992
+ },
1993
+ },
1994
+ REGEX_VALIDATION: {
1995
+ }
1996
+
1997
+ }
1998
+
1999
+
2000
+
2001
+ export interface iWp_Postmeta {
2002
+ 'meta_id'?: number;
2003
+ 'post_id'?: number;
2004
+ 'meta_key'?: string;
2005
+ 'meta_value'?: string;
2006
+ }
2007
+
2008
+ interface iDefineWp_Postmeta {
2009
+ 'META_ID': string;
2010
+ 'POST_ID': string;
2011
+ 'META_KEY': string;
2012
+ 'META_VALUE': string;
2013
+ }
2014
+
2015
+ export const wp_postmeta : C6RestfulModel & iDefineWp_Postmeta = {
2016
+ TABLE_NAME:'wp_postmeta',
2017
+ META_ID: 'carbon_wp_postmeta.meta_id',
2018
+ POST_ID: 'carbon_wp_postmeta.post_id',
2019
+ META_KEY: 'carbon_wp_postmeta.meta_key',
2020
+ META_VALUE: 'carbon_wp_postmeta.meta_value',
2021
+ PRIMARY: [
2022
+ 'carbon_wp_postmeta.meta_id',
2023
+ ],
2024
+ PRIMARY_SHORT: [
2025
+ 'meta_id',
2026
+ ],
2027
+ COLUMNS: {
2028
+ 'carbon_wp_postmeta.meta_id':'meta_id',
2029
+ 'carbon_wp_postmeta.post_id':'post_id',
2030
+ 'carbon_wp_postmeta.meta_key':'meta_key',
2031
+ 'carbon_wp_postmeta.meta_value':'meta_value',
2032
+ },
2033
+ TYPE_VALIDATION: {
2034
+ 'carbon_wp_postmeta.meta_id': {
2035
+ MYSQL_TYPE: 'bigint unsigned',
2036
+ MAX_LENGTH: '',
2037
+ AUTO_INCREMENT: true,
2038
+ SKIP_COLUMN_IN_POST: true
2039
+ },
2040
+ 'carbon_wp_postmeta.post_id': {
2041
+ MYSQL_TYPE: 'bigint unsigned',
2042
+ MAX_LENGTH: '',
2043
+ AUTO_INCREMENT: false,
2044
+ SKIP_COLUMN_IN_POST: true
2045
+ },
2046
+ 'carbon_wp_postmeta.meta_key': {
2047
+ MYSQL_TYPE: 'varchar',
2048
+ MAX_LENGTH: '255',
2049
+ AUTO_INCREMENT: false,
2050
+ SKIP_COLUMN_IN_POST: true
2051
+ },
2052
+ 'carbon_wp_postmeta.meta_value': {
2053
+ MYSQL_TYPE: 'longtext',
2054
+ MAX_LENGTH: '',
2055
+ AUTO_INCREMENT: false,
2056
+ SKIP_COLUMN_IN_POST: false
2057
+ },
2058
+ },
2059
+ REGEX_VALIDATION: {
2060
+ }
2061
+
2062
+ }
2063
+
2064
+
2065
+
2066
+ export interface iWp_Posts {
2067
+ 'ID'?: number;
2068
+ 'post_author'?: number;
2069
+ 'post_date'?: string;
2070
+ 'post_date_gmt'?: string;
2071
+ 'post_content'?: string;
2072
+ 'post_title'?: string;
2073
+ 'post_excerpt'?: string;
2074
+ 'post_status'?: string;
2075
+ 'comment_status'?: string;
2076
+ 'ping_status'?: string;
2077
+ 'post_password'?: string;
2078
+ 'post_name'?: string;
2079
+ 'to_ping'?: string;
2080
+ 'pinged'?: string;
2081
+ 'post_modified'?: string;
2082
+ 'post_modified_gmt'?: string;
2083
+ 'post_content_filtered'?: string;
2084
+ 'post_parent'?: number;
2085
+ 'guid'?: string;
2086
+ 'menu_order'?: number;
2087
+ 'post_type'?: string;
2088
+ 'post_mime_type'?: string;
2089
+ 'comment_count'?: number;
2090
+ }
2091
+
2092
+ interface iDefineWp_Posts {
2093
+ 'ID': string;
2094
+ 'POST_AUTHOR': string;
2095
+ 'POST_DATE': string;
2096
+ 'POST_DATE_GMT': string;
2097
+ 'POST_CONTENT': string;
2098
+ 'POST_TITLE': string;
2099
+ 'POST_EXCERPT': string;
2100
+ 'POST_STATUS': string;
2101
+ 'COMMENT_STATUS': string;
2102
+ 'PING_STATUS': string;
2103
+ 'POST_PASSWORD': string;
2104
+ 'POST_NAME': string;
2105
+ 'TO_PING': string;
2106
+ 'PINGED': string;
2107
+ 'POST_MODIFIED': string;
2108
+ 'POST_MODIFIED_GMT': string;
2109
+ 'POST_CONTENT_FILTERED': string;
2110
+ 'POST_PARENT': string;
2111
+ 'GUID': string;
2112
+ 'MENU_ORDER': string;
2113
+ 'POST_TYPE': string;
2114
+ 'POST_MIME_TYPE': string;
2115
+ 'COMMENT_COUNT': string;
2116
+ }
2117
+
2118
+ export const wp_posts : C6RestfulModel & iDefineWp_Posts = {
2119
+ TABLE_NAME:'wp_posts',
2120
+ ID: 'carbon_wp_posts.ID',
2121
+ POST_AUTHOR: 'carbon_wp_posts.post_author',
2122
+ POST_DATE: 'carbon_wp_posts.post_date',
2123
+ POST_DATE_GMT: 'carbon_wp_posts.post_date_gmt',
2124
+ POST_CONTENT: 'carbon_wp_posts.post_content',
2125
+ POST_TITLE: 'carbon_wp_posts.post_title',
2126
+ POST_EXCERPT: 'carbon_wp_posts.post_excerpt',
2127
+ POST_STATUS: 'carbon_wp_posts.post_status',
2128
+ COMMENT_STATUS: 'carbon_wp_posts.comment_status',
2129
+ PING_STATUS: 'carbon_wp_posts.ping_status',
2130
+ POST_PASSWORD: 'carbon_wp_posts.post_password',
2131
+ POST_NAME: 'carbon_wp_posts.post_name',
2132
+ TO_PING: 'carbon_wp_posts.to_ping',
2133
+ PINGED: 'carbon_wp_posts.pinged',
2134
+ POST_MODIFIED: 'carbon_wp_posts.post_modified',
2135
+ POST_MODIFIED_GMT: 'carbon_wp_posts.post_modified_gmt',
2136
+ POST_CONTENT_FILTERED: 'carbon_wp_posts.post_content_filtered',
2137
+ POST_PARENT: 'carbon_wp_posts.post_parent',
2138
+ GUID: 'carbon_wp_posts.guid',
2139
+ MENU_ORDER: 'carbon_wp_posts.menu_order',
2140
+ POST_TYPE: 'carbon_wp_posts.post_type',
2141
+ POST_MIME_TYPE: 'carbon_wp_posts.post_mime_type',
2142
+ COMMENT_COUNT: 'carbon_wp_posts.comment_count',
2143
+ PRIMARY: [
2144
+ 'carbon_wp_posts.ID',
2145
+ ],
2146
+ PRIMARY_SHORT: [
2147
+ 'ID',
2148
+ ],
2149
+ COLUMNS: {
2150
+ 'carbon_wp_posts.ID':'ID',
2151
+ 'carbon_wp_posts.post_author':'post_author',
2152
+ 'carbon_wp_posts.post_date':'post_date',
2153
+ 'carbon_wp_posts.post_date_gmt':'post_date_gmt',
2154
+ 'carbon_wp_posts.post_content':'post_content',
2155
+ 'carbon_wp_posts.post_title':'post_title',
2156
+ 'carbon_wp_posts.post_excerpt':'post_excerpt',
2157
+ 'carbon_wp_posts.post_status':'post_status',
2158
+ 'carbon_wp_posts.comment_status':'comment_status',
2159
+ 'carbon_wp_posts.ping_status':'ping_status',
2160
+ 'carbon_wp_posts.post_password':'post_password',
2161
+ 'carbon_wp_posts.post_name':'post_name',
2162
+ 'carbon_wp_posts.to_ping':'to_ping',
2163
+ 'carbon_wp_posts.pinged':'pinged',
2164
+ 'carbon_wp_posts.post_modified':'post_modified',
2165
+ 'carbon_wp_posts.post_modified_gmt':'post_modified_gmt',
2166
+ 'carbon_wp_posts.post_content_filtered':'post_content_filtered',
2167
+ 'carbon_wp_posts.post_parent':'post_parent',
2168
+ 'carbon_wp_posts.guid':'guid',
2169
+ 'carbon_wp_posts.menu_order':'menu_order',
2170
+ 'carbon_wp_posts.post_type':'post_type',
2171
+ 'carbon_wp_posts.post_mime_type':'post_mime_type',
2172
+ 'carbon_wp_posts.comment_count':'comment_count',
2173
+ },
2174
+ TYPE_VALIDATION: {
2175
+ 'carbon_wp_posts.ID': {
2176
+ MYSQL_TYPE: 'bigint unsigned',
2177
+ MAX_LENGTH: '',
2178
+ AUTO_INCREMENT: true,
2179
+ SKIP_COLUMN_IN_POST: true
2180
+ },
2181
+ 'carbon_wp_posts.post_author': {
2182
+ MYSQL_TYPE: 'bigint unsigned',
2183
+ MAX_LENGTH: '',
2184
+ AUTO_INCREMENT: false,
2185
+ SKIP_COLUMN_IN_POST: true
2186
+ },
2187
+ 'carbon_wp_posts.post_date': {
2188
+ MYSQL_TYPE: 'datetime',
2189
+ MAX_LENGTH: '',
2190
+ AUTO_INCREMENT: false,
2191
+ SKIP_COLUMN_IN_POST: true
2192
+ },
2193
+ 'carbon_wp_posts.post_date_gmt': {
2194
+ MYSQL_TYPE: 'datetime',
2195
+ MAX_LENGTH: '',
2196
+ AUTO_INCREMENT: false,
2197
+ SKIP_COLUMN_IN_POST: true
2198
+ },
2199
+ 'carbon_wp_posts.post_content': {
2200
+ MYSQL_TYPE: 'longtext',
2201
+ MAX_LENGTH: '',
2202
+ AUTO_INCREMENT: false,
2203
+ SKIP_COLUMN_IN_POST: false
2204
+ },
2205
+ 'carbon_wp_posts.post_title': {
2206
+ MYSQL_TYPE: 'text',
2207
+ MAX_LENGTH: '',
2208
+ AUTO_INCREMENT: false,
2209
+ SKIP_COLUMN_IN_POST: false
2210
+ },
2211
+ 'carbon_wp_posts.post_excerpt': {
2212
+ MYSQL_TYPE: 'text',
2213
+ MAX_LENGTH: '',
2214
+ AUTO_INCREMENT: false,
2215
+ SKIP_COLUMN_IN_POST: false
2216
+ },
2217
+ 'carbon_wp_posts.post_status': {
2218
+ MYSQL_TYPE: 'varchar',
2219
+ MAX_LENGTH: '20',
2220
+ AUTO_INCREMENT: false,
2221
+ SKIP_COLUMN_IN_POST: true
2222
+ },
2223
+ 'carbon_wp_posts.comment_status': {
2224
+ MYSQL_TYPE: 'varchar',
2225
+ MAX_LENGTH: '20',
2226
+ AUTO_INCREMENT: false,
2227
+ SKIP_COLUMN_IN_POST: true
2228
+ },
2229
+ 'carbon_wp_posts.ping_status': {
2230
+ MYSQL_TYPE: 'varchar',
2231
+ MAX_LENGTH: '20',
2232
+ AUTO_INCREMENT: false,
2233
+ SKIP_COLUMN_IN_POST: true
2234
+ },
2235
+ 'carbon_wp_posts.post_password': {
2236
+ MYSQL_TYPE: 'varchar',
2237
+ MAX_LENGTH: '255',
2238
+ AUTO_INCREMENT: false,
2239
+ SKIP_COLUMN_IN_POST: true
2240
+ },
2241
+ 'carbon_wp_posts.post_name': {
2242
+ MYSQL_TYPE: 'varchar',
2243
+ MAX_LENGTH: '200',
2244
+ AUTO_INCREMENT: false,
2245
+ SKIP_COLUMN_IN_POST: true
2246
+ },
2247
+ 'carbon_wp_posts.to_ping': {
2248
+ MYSQL_TYPE: 'text',
2249
+ MAX_LENGTH: '',
2250
+ AUTO_INCREMENT: false,
2251
+ SKIP_COLUMN_IN_POST: false
2252
+ },
2253
+ 'carbon_wp_posts.pinged': {
2254
+ MYSQL_TYPE: 'text',
2255
+ MAX_LENGTH: '',
2256
+ AUTO_INCREMENT: false,
2257
+ SKIP_COLUMN_IN_POST: false
2258
+ },
2259
+ 'carbon_wp_posts.post_modified': {
2260
+ MYSQL_TYPE: 'datetime',
2261
+ MAX_LENGTH: '',
2262
+ AUTO_INCREMENT: false,
2263
+ SKIP_COLUMN_IN_POST: true
2264
+ },
2265
+ 'carbon_wp_posts.post_modified_gmt': {
2266
+ MYSQL_TYPE: 'datetime',
2267
+ MAX_LENGTH: '',
2268
+ AUTO_INCREMENT: false,
2269
+ SKIP_COLUMN_IN_POST: true
2270
+ },
2271
+ 'carbon_wp_posts.post_content_filtered': {
2272
+ MYSQL_TYPE: 'longtext',
2273
+ MAX_LENGTH: '',
2274
+ AUTO_INCREMENT: false,
2275
+ SKIP_COLUMN_IN_POST: false
2276
+ },
2277
+ 'carbon_wp_posts.post_parent': {
2278
+ MYSQL_TYPE: 'bigint unsigned',
2279
+ MAX_LENGTH: '',
2280
+ AUTO_INCREMENT: false,
2281
+ SKIP_COLUMN_IN_POST: true
2282
+ },
2283
+ 'carbon_wp_posts.guid': {
2284
+ MYSQL_TYPE: 'varchar',
2285
+ MAX_LENGTH: '255',
2286
+ AUTO_INCREMENT: false,
2287
+ SKIP_COLUMN_IN_POST: true
2288
+ },
2289
+ 'carbon_wp_posts.menu_order': {
2290
+ MYSQL_TYPE: 'int',
2291
+ MAX_LENGTH: '',
2292
+ AUTO_INCREMENT: false,
2293
+ SKIP_COLUMN_IN_POST: true
2294
+ },
2295
+ 'carbon_wp_posts.post_type': {
2296
+ MYSQL_TYPE: 'varchar',
2297
+ MAX_LENGTH: '20',
2298
+ AUTO_INCREMENT: false,
2299
+ SKIP_COLUMN_IN_POST: true
2300
+ },
2301
+ 'carbon_wp_posts.post_mime_type': {
2302
+ MYSQL_TYPE: 'varchar',
2303
+ MAX_LENGTH: '100',
2304
+ AUTO_INCREMENT: false,
2305
+ SKIP_COLUMN_IN_POST: true
2306
+ },
2307
+ 'carbon_wp_posts.comment_count': {
2308
+ MYSQL_TYPE: 'bigint',
2309
+ MAX_LENGTH: '',
2310
+ AUTO_INCREMENT: false,
2311
+ SKIP_COLUMN_IN_POST: true
2312
+ },
2313
+ },
2314
+ REGEX_VALIDATION: {
2315
+ }
2316
+
2317
+ }
2318
+
2319
+
2320
+
2321
+ export interface iWp_Term_Relationships {
2322
+ 'object_id'?: number;
2323
+ 'term_taxonomy_id'?: number;
2324
+ 'term_order'?: number;
2325
+ }
2326
+
2327
+ interface iDefineWp_Term_Relationships {
2328
+ 'OBJECT_ID': string;
2329
+ 'TERM_TAXONOMY_ID': string;
2330
+ 'TERM_ORDER': string;
2331
+ }
2332
+
2333
+ export const wp_term_relationships : C6RestfulModel & iDefineWp_Term_Relationships = {
2334
+ TABLE_NAME:'wp_term_relationships',
2335
+ OBJECT_ID: 'carbon_wp_term_relationships.object_id',
2336
+ TERM_TAXONOMY_ID: 'carbon_wp_term_relationships.term_taxonomy_id',
2337
+ TERM_ORDER: 'carbon_wp_term_relationships.term_order',
2338
+ PRIMARY: [
2339
+ 'carbon_wp_term_relationships.object_id',
2340
+ 'carbon_wp_term_relationships.term_taxonomy_id',
2341
+ ],
2342
+ PRIMARY_SHORT: [
2343
+ 'object_id','term_taxonomy_id',
2344
+ ],
2345
+ COLUMNS: {
2346
+ 'carbon_wp_term_relationships.object_id':'object_id',
2347
+ 'carbon_wp_term_relationships.term_taxonomy_id':'term_taxonomy_id',
2348
+ 'carbon_wp_term_relationships.term_order':'term_order',
2349
+ },
2350
+ TYPE_VALIDATION: {
2351
+ 'carbon_wp_term_relationships.object_id': {
2352
+ MYSQL_TYPE: 'bigint unsigned',
2353
+ MAX_LENGTH: '',
2354
+ AUTO_INCREMENT: false,
2355
+ SKIP_COLUMN_IN_POST: true
2356
+ },
2357
+ 'carbon_wp_term_relationships.term_taxonomy_id': {
2358
+ MYSQL_TYPE: 'bigint unsigned',
2359
+ MAX_LENGTH: '',
2360
+ AUTO_INCREMENT: false,
2361
+ SKIP_COLUMN_IN_POST: true
2362
+ },
2363
+ 'carbon_wp_term_relationships.term_order': {
2364
+ MYSQL_TYPE: 'int',
2365
+ MAX_LENGTH: '',
2366
+ AUTO_INCREMENT: false,
2367
+ SKIP_COLUMN_IN_POST: true
2368
+ },
2369
+ },
2370
+ REGEX_VALIDATION: {
2371
+ }
2372
+
2373
+ }
2374
+
2375
+
2376
+
2377
+ export interface iWp_Term_Taxonomy {
2378
+ 'term_taxonomy_id'?: number;
2379
+ 'term_id'?: number;
2380
+ 'taxonomy'?: string;
2381
+ 'description'?: string;
2382
+ 'parent'?: number;
2383
+ 'count'?: number;
2384
+ }
2385
+
2386
+ interface iDefineWp_Term_Taxonomy {
2387
+ 'TERM_TAXONOMY_ID': string;
2388
+ 'TERM_ID': string;
2389
+ 'TAXONOMY': string;
2390
+ 'DESCRIPTION': string;
2391
+ 'PARENT': string;
2392
+ 'COUNT': string;
2393
+ }
2394
+
2395
+ export const wp_term_taxonomy : C6RestfulModel & iDefineWp_Term_Taxonomy = {
2396
+ TABLE_NAME:'wp_term_taxonomy',
2397
+ TERM_TAXONOMY_ID: 'carbon_wp_term_taxonomy.term_taxonomy_id',
2398
+ TERM_ID: 'carbon_wp_term_taxonomy.term_id',
2399
+ TAXONOMY: 'carbon_wp_term_taxonomy.taxonomy',
2400
+ DESCRIPTION: 'carbon_wp_term_taxonomy.description',
2401
+ PARENT: 'carbon_wp_term_taxonomy.parent',
2402
+ COUNT: 'carbon_wp_term_taxonomy.count',
2403
+ PRIMARY: [
2404
+ 'carbon_wp_term_taxonomy.term_taxonomy_id',
2405
+ ],
2406
+ PRIMARY_SHORT: [
2407
+ 'term_taxonomy_id',
2408
+ ],
2409
+ COLUMNS: {
2410
+ 'carbon_wp_term_taxonomy.term_taxonomy_id':'term_taxonomy_id',
2411
+ 'carbon_wp_term_taxonomy.term_id':'term_id',
2412
+ 'carbon_wp_term_taxonomy.taxonomy':'taxonomy',
2413
+ 'carbon_wp_term_taxonomy.description':'description',
2414
+ 'carbon_wp_term_taxonomy.parent':'parent',
2415
+ 'carbon_wp_term_taxonomy.count':'count',
2416
+ },
2417
+ TYPE_VALIDATION: {
2418
+ 'carbon_wp_term_taxonomy.term_taxonomy_id': {
2419
+ MYSQL_TYPE: 'bigint unsigned',
2420
+ MAX_LENGTH: '',
2421
+ AUTO_INCREMENT: true,
2422
+ SKIP_COLUMN_IN_POST: true
2423
+ },
2424
+ 'carbon_wp_term_taxonomy.term_id': {
2425
+ MYSQL_TYPE: 'bigint unsigned',
2426
+ MAX_LENGTH: '',
2427
+ AUTO_INCREMENT: false,
2428
+ SKIP_COLUMN_IN_POST: true
2429
+ },
2430
+ 'carbon_wp_term_taxonomy.taxonomy': {
2431
+ MYSQL_TYPE: 'varchar',
2432
+ MAX_LENGTH: '32',
2433
+ AUTO_INCREMENT: false,
2434
+ SKIP_COLUMN_IN_POST: true
2435
+ },
2436
+ 'carbon_wp_term_taxonomy.description': {
2437
+ MYSQL_TYPE: 'longtext',
2438
+ MAX_LENGTH: '',
2439
+ AUTO_INCREMENT: false,
2440
+ SKIP_COLUMN_IN_POST: false
2441
+ },
2442
+ 'carbon_wp_term_taxonomy.parent': {
2443
+ MYSQL_TYPE: 'bigint unsigned',
2444
+ MAX_LENGTH: '',
2445
+ AUTO_INCREMENT: false,
2446
+ SKIP_COLUMN_IN_POST: true
2447
+ },
2448
+ 'carbon_wp_term_taxonomy.count': {
2449
+ MYSQL_TYPE: 'bigint',
2450
+ MAX_LENGTH: '',
2451
+ AUTO_INCREMENT: false,
2452
+ SKIP_COLUMN_IN_POST: true
2453
+ },
2454
+ },
2455
+ REGEX_VALIDATION: {
2456
+ }
2457
+
2458
+ }
2459
+
2460
+
2461
+
2462
+ export interface iWp_Termmeta {
2463
+ 'meta_id'?: number;
2464
+ 'term_id'?: number;
2465
+ 'meta_key'?: string;
2466
+ 'meta_value'?: string;
2467
+ }
2468
+
2469
+ interface iDefineWp_Termmeta {
2470
+ 'META_ID': string;
2471
+ 'TERM_ID': string;
2472
+ 'META_KEY': string;
2473
+ 'META_VALUE': string;
2474
+ }
2475
+
2476
+ export const wp_termmeta : C6RestfulModel & iDefineWp_Termmeta = {
2477
+ TABLE_NAME:'wp_termmeta',
2478
+ META_ID: 'carbon_wp_termmeta.meta_id',
2479
+ TERM_ID: 'carbon_wp_termmeta.term_id',
2480
+ META_KEY: 'carbon_wp_termmeta.meta_key',
2481
+ META_VALUE: 'carbon_wp_termmeta.meta_value',
2482
+ PRIMARY: [
2483
+ 'carbon_wp_termmeta.meta_id',
2484
+ ],
2485
+ PRIMARY_SHORT: [
2486
+ 'meta_id',
2487
+ ],
2488
+ COLUMNS: {
2489
+ 'carbon_wp_termmeta.meta_id':'meta_id',
2490
+ 'carbon_wp_termmeta.term_id':'term_id',
2491
+ 'carbon_wp_termmeta.meta_key':'meta_key',
2492
+ 'carbon_wp_termmeta.meta_value':'meta_value',
2493
+ },
2494
+ TYPE_VALIDATION: {
2495
+ 'carbon_wp_termmeta.meta_id': {
2496
+ MYSQL_TYPE: 'bigint unsigned',
2497
+ MAX_LENGTH: '',
2498
+ AUTO_INCREMENT: true,
2499
+ SKIP_COLUMN_IN_POST: true
2500
+ },
2501
+ 'carbon_wp_termmeta.term_id': {
2502
+ MYSQL_TYPE: 'bigint unsigned',
2503
+ MAX_LENGTH: '',
2504
+ AUTO_INCREMENT: false,
2505
+ SKIP_COLUMN_IN_POST: true
2506
+ },
2507
+ 'carbon_wp_termmeta.meta_key': {
2508
+ MYSQL_TYPE: 'varchar',
2509
+ MAX_LENGTH: '255',
2510
+ AUTO_INCREMENT: false,
2511
+ SKIP_COLUMN_IN_POST: true
2512
+ },
2513
+ 'carbon_wp_termmeta.meta_value': {
2514
+ MYSQL_TYPE: 'longtext',
2515
+ MAX_LENGTH: '',
2516
+ AUTO_INCREMENT: false,
2517
+ SKIP_COLUMN_IN_POST: false
2518
+ },
2519
+ },
2520
+ REGEX_VALIDATION: {
2521
+ }
2522
+
2523
+ }
2524
+
2525
+
2526
+
2527
+ export interface iWp_Terms {
2528
+ 'term_id'?: number;
2529
+ 'name'?: string;
2530
+ 'slug'?: string;
2531
+ 'term_group'?: number;
2532
+ }
2533
+
2534
+ interface iDefineWp_Terms {
2535
+ 'TERM_ID': string;
2536
+ 'NAME': string;
2537
+ 'SLUG': string;
2538
+ 'TERM_GROUP': string;
2539
+ }
2540
+
2541
+ export const wp_terms : C6RestfulModel & iDefineWp_Terms = {
2542
+ TABLE_NAME:'wp_terms',
2543
+ TERM_ID: 'carbon_wp_terms.term_id',
2544
+ NAME: 'carbon_wp_terms.name',
2545
+ SLUG: 'carbon_wp_terms.slug',
2546
+ TERM_GROUP: 'carbon_wp_terms.term_group',
2547
+ PRIMARY: [
2548
+ 'carbon_wp_terms.term_id',
2549
+ ],
2550
+ PRIMARY_SHORT: [
2551
+ 'term_id',
2552
+ ],
2553
+ COLUMNS: {
2554
+ 'carbon_wp_terms.term_id':'term_id',
2555
+ 'carbon_wp_terms.name':'name',
2556
+ 'carbon_wp_terms.slug':'slug',
2557
+ 'carbon_wp_terms.term_group':'term_group',
2558
+ },
2559
+ TYPE_VALIDATION: {
2560
+ 'carbon_wp_terms.term_id': {
2561
+ MYSQL_TYPE: 'bigint unsigned',
2562
+ MAX_LENGTH: '',
2563
+ AUTO_INCREMENT: true,
2564
+ SKIP_COLUMN_IN_POST: true
2565
+ },
2566
+ 'carbon_wp_terms.name': {
2567
+ MYSQL_TYPE: 'varchar',
2568
+ MAX_LENGTH: '200',
2569
+ AUTO_INCREMENT: false,
2570
+ SKIP_COLUMN_IN_POST: true
2571
+ },
2572
+ 'carbon_wp_terms.slug': {
2573
+ MYSQL_TYPE: 'varchar',
2574
+ MAX_LENGTH: '200',
2575
+ AUTO_INCREMENT: false,
2576
+ SKIP_COLUMN_IN_POST: true
2577
+ },
2578
+ 'carbon_wp_terms.term_group': {
2579
+ MYSQL_TYPE: 'bigint',
2580
+ MAX_LENGTH: '',
2581
+ AUTO_INCREMENT: false,
2582
+ SKIP_COLUMN_IN_POST: true
2583
+ },
2584
+ },
2585
+ REGEX_VALIDATION: {
2586
+ }
2587
+
2588
+ }
2589
+
2590
+
2591
+
2592
+ export interface iWp_Usermeta {
2593
+ 'umeta_id'?: number;
2594
+ 'user_id'?: number;
2595
+ 'meta_key'?: string;
2596
+ 'meta_value'?: string;
2597
+ }
2598
+
2599
+ interface iDefineWp_Usermeta {
2600
+ 'UMETA_ID': string;
2601
+ 'USER_ID': string;
2602
+ 'META_KEY': string;
2603
+ 'META_VALUE': string;
2604
+ }
2605
+
2606
+ export const wp_usermeta : C6RestfulModel & iDefineWp_Usermeta = {
2607
+ TABLE_NAME:'wp_usermeta',
2608
+ UMETA_ID: 'carbon_wp_usermeta.umeta_id',
2609
+ USER_ID: 'carbon_wp_usermeta.user_id',
2610
+ META_KEY: 'carbon_wp_usermeta.meta_key',
2611
+ META_VALUE: 'carbon_wp_usermeta.meta_value',
2612
+ PRIMARY: [
2613
+ 'carbon_wp_usermeta.umeta_id',
2614
+ ],
2615
+ PRIMARY_SHORT: [
2616
+ 'umeta_id',
2617
+ ],
2618
+ COLUMNS: {
2619
+ 'carbon_wp_usermeta.umeta_id':'umeta_id',
2620
+ 'carbon_wp_usermeta.user_id':'user_id',
2621
+ 'carbon_wp_usermeta.meta_key':'meta_key',
2622
+ 'carbon_wp_usermeta.meta_value':'meta_value',
2623
+ },
2624
+ TYPE_VALIDATION: {
2625
+ 'carbon_wp_usermeta.umeta_id': {
2626
+ MYSQL_TYPE: 'bigint unsigned',
2627
+ MAX_LENGTH: '',
2628
+ AUTO_INCREMENT: true,
2629
+ SKIP_COLUMN_IN_POST: true
2630
+ },
2631
+ 'carbon_wp_usermeta.user_id': {
2632
+ MYSQL_TYPE: 'bigint unsigned',
2633
+ MAX_LENGTH: '',
2634
+ AUTO_INCREMENT: false,
2635
+ SKIP_COLUMN_IN_POST: true
2636
+ },
2637
+ 'carbon_wp_usermeta.meta_key': {
2638
+ MYSQL_TYPE: 'varchar',
2639
+ MAX_LENGTH: '255',
2640
+ AUTO_INCREMENT: false,
2641
+ SKIP_COLUMN_IN_POST: true
2642
+ },
2643
+ 'carbon_wp_usermeta.meta_value': {
2644
+ MYSQL_TYPE: 'longtext',
2645
+ MAX_LENGTH: '',
2646
+ AUTO_INCREMENT: false,
2647
+ SKIP_COLUMN_IN_POST: false
2648
+ },
2649
+ },
2650
+ REGEX_VALIDATION: {
2651
+ }
2652
+
2653
+ }
2654
+
2655
+
2656
+
2657
+ export interface iWp_Users {
2658
+ 'ID'?: number;
2659
+ 'user_login'?: string;
2660
+ 'user_pass'?: string;
2661
+ 'user_nicename'?: string;
2662
+ 'user_email'?: string;
2663
+ 'user_url'?: string;
2664
+ 'user_registered'?: string;
2665
+ 'user_activation_key'?: string;
2666
+ 'user_status'?: number;
2667
+ 'display_name'?: string;
2668
+ }
2669
+
2670
+ interface iDefineWp_Users {
2671
+ 'ID': string;
2672
+ 'USER_LOGIN': string;
2673
+ 'USER_PASS': string;
2674
+ 'USER_NICENAME': string;
2675
+ 'USER_EMAIL': string;
2676
+ 'USER_URL': string;
2677
+ 'USER_REGISTERED': string;
2678
+ 'USER_ACTIVATION_KEY': string;
2679
+ 'USER_STATUS': string;
2680
+ 'DISPLAY_NAME': string;
2681
+ }
2682
+
2683
+ export const wp_users : C6RestfulModel & iDefineWp_Users = {
2684
+ TABLE_NAME:'wp_users',
2685
+ ID: 'carbon_wp_users.ID',
2686
+ USER_LOGIN: 'carbon_wp_users.user_login',
2687
+ USER_PASS: 'carbon_wp_users.user_pass',
2688
+ USER_NICENAME: 'carbon_wp_users.user_nicename',
2689
+ USER_EMAIL: 'carbon_wp_users.user_email',
2690
+ USER_URL: 'carbon_wp_users.user_url',
2691
+ USER_REGISTERED: 'carbon_wp_users.user_registered',
2692
+ USER_ACTIVATION_KEY: 'carbon_wp_users.user_activation_key',
2693
+ USER_STATUS: 'carbon_wp_users.user_status',
2694
+ DISPLAY_NAME: 'carbon_wp_users.display_name',
2695
+ PRIMARY: [
2696
+ 'carbon_wp_users.ID',
2697
+ ],
2698
+ PRIMARY_SHORT: [
2699
+ 'ID',
2700
+ ],
2701
+ COLUMNS: {
2702
+ 'carbon_wp_users.ID':'ID',
2703
+ 'carbon_wp_users.user_login':'user_login',
2704
+ 'carbon_wp_users.user_pass':'user_pass',
2705
+ 'carbon_wp_users.user_nicename':'user_nicename',
2706
+ 'carbon_wp_users.user_email':'user_email',
2707
+ 'carbon_wp_users.user_url':'user_url',
2708
+ 'carbon_wp_users.user_registered':'user_registered',
2709
+ 'carbon_wp_users.user_activation_key':'user_activation_key',
2710
+ 'carbon_wp_users.user_status':'user_status',
2711
+ 'carbon_wp_users.display_name':'display_name',
2712
+ },
2713
+ TYPE_VALIDATION: {
2714
+ 'carbon_wp_users.ID': {
2715
+ MYSQL_TYPE: 'bigint unsigned',
2716
+ MAX_LENGTH: '',
2717
+ AUTO_INCREMENT: true,
2718
+ SKIP_COLUMN_IN_POST: true
2719
+ },
2720
+ 'carbon_wp_users.user_login': {
2721
+ MYSQL_TYPE: 'varchar',
2722
+ MAX_LENGTH: '60',
2723
+ AUTO_INCREMENT: false,
2724
+ SKIP_COLUMN_IN_POST: true
2725
+ },
2726
+ 'carbon_wp_users.user_pass': {
2727
+ MYSQL_TYPE: 'varchar',
2728
+ MAX_LENGTH: '255',
2729
+ AUTO_INCREMENT: false,
2730
+ SKIP_COLUMN_IN_POST: true
2731
+ },
2732
+ 'carbon_wp_users.user_nicename': {
2733
+ MYSQL_TYPE: 'varchar',
2734
+ MAX_LENGTH: '50',
2735
+ AUTO_INCREMENT: false,
2736
+ SKIP_COLUMN_IN_POST: true
2737
+ },
2738
+ 'carbon_wp_users.user_email': {
2739
+ MYSQL_TYPE: 'varchar',
2740
+ MAX_LENGTH: '100',
2741
+ AUTO_INCREMENT: false,
2742
+ SKIP_COLUMN_IN_POST: true
2743
+ },
2744
+ 'carbon_wp_users.user_url': {
2745
+ MYSQL_TYPE: 'varchar',
2746
+ MAX_LENGTH: '100',
2747
+ AUTO_INCREMENT: false,
2748
+ SKIP_COLUMN_IN_POST: true
2749
+ },
2750
+ 'carbon_wp_users.user_registered': {
2751
+ MYSQL_TYPE: 'datetime',
2752
+ MAX_LENGTH: '',
2753
+ AUTO_INCREMENT: false,
2754
+ SKIP_COLUMN_IN_POST: true
2755
+ },
2756
+ 'carbon_wp_users.user_activation_key': {
2757
+ MYSQL_TYPE: 'varchar',
2758
+ MAX_LENGTH: '255',
2759
+ AUTO_INCREMENT: false,
2760
+ SKIP_COLUMN_IN_POST: true
2761
+ },
2762
+ 'carbon_wp_users.user_status': {
2763
+ MYSQL_TYPE: 'int',
2764
+ MAX_LENGTH: '',
2765
+ AUTO_INCREMENT: false,
2766
+ SKIP_COLUMN_IN_POST: true
2767
+ },
2768
+ 'carbon_wp_users.display_name': {
2769
+ MYSQL_TYPE: 'varchar',
2770
+ MAX_LENGTH: '250',
2771
+ AUTO_INCREMENT: false,
2772
+ SKIP_COLUMN_IN_POST: true
2773
+ },
2774
+ },
2775
+ REGEX_VALIDATION: {
2776
+ }
2777
+
2778
+ }
2779
+
2780
+
2781
+
2782
+ export const TABLES = {
2783
+
2784
+ carbons: carbons,
2785
+ comments: comments,
2786
+ documentation: documentation,
2787
+ feature_group_references: feature_group_references,
2788
+ features: features,
2789
+ group_references: group_references,
2790
+ groups: groups,
2791
+ history_logs: history_logs,
2792
+ location_references: location_references,
2793
+ locations: locations,
2794
+ photos: photos,
2795
+ reports: reports,
2796
+ user_followers: user_followers,
2797
+ user_groups: user_groups,
2798
+ user_messages: user_messages,
2799
+ user_sessions: user_sessions,
2800
+ user_tasks: user_tasks,
2801
+ users: users,
2802
+ wp_commentmeta: wp_commentmeta,
2803
+ wp_comments: wp_comments,
2804
+ wp_links: wp_links,
2805
+ wp_options: wp_options,
2806
+ wp_postmeta: wp_postmeta,
2807
+ wp_posts: wp_posts,
2808
+ wp_term_relationships: wp_term_relationships,
2809
+ wp_term_taxonomy: wp_term_taxonomy,
2810
+ wp_termmeta: wp_termmeta,
2811
+ wp_terms: wp_terms,
2812
+ wp_usermeta: wp_usermeta,
2813
+ wp_users: wp_users,
2814
+ };
2815
+
2816
+ export const C6 : { TABLES: { [key: string]: (C6RestfulModel & { [key: string]: any }) } }
2817
+ & { [key: string]: any } = {
2818
+ // try to 1=1 match the Rest abstract class
2819
+ ADDDATE: 'ADDDATE',
2820
+ ADDTIME: 'ADDTIME',
2821
+ AS: 'AS',
2822
+ ASC: 'ASC',
2823
+
2824
+ BETWEEN: 'BETWEEN',
2825
+
2826
+ CONCAT: 'CONCAT',
2827
+ CONVERT_TZ: 'CONVERT_TZ',
2828
+ COUNT: 'COUNT',
2829
+ COUNT_ALL: 'COUNT_ALL',
2830
+ CURRENT_DATE: 'CURRENT_DATE',
2831
+ CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP',
2832
+
2833
+ DAY: 'DAY',
2834
+ DAY_HOUR: 'DAY_HOUR',
2835
+ DAY_MICROSECOND: 'DAY_MICROSECOND',
2836
+ DAY_MINUTE: 'DAY_MINUTE',
2837
+ DAY_SECOND: 'DAY_SECOND',
2838
+ DAYNAME: 'DAYNAME',
2839
+ DAYOFMONTH: 'DAYOFMONTH',
2840
+ DAYOFWEEK: 'DAYOFWEEK',
2841
+ DAYOFYEAR: 'DAYOFYEAR',
2842
+ DATE: 'DATE',
2843
+ DATE_ADD: 'DATE_ADD',
2844
+ DATEDIFF: 'DATEDIFF',
2845
+ DATE_SUB: 'DATE_SUB',
2846
+ DATE_FORMAT: 'DATE_FORMAT',
2847
+ DESC: 'DESC',
2848
+ DISTINCT: 'DISTINCT',
2849
+
2850
+ EXTRACT: 'EXTRACT',
2851
+ EQUAL: '=',
2852
+ EQUAL_NULL_SAFE: '<=>',
2853
+
2854
+ FALSE: 'FALSE',
2855
+ FULL_OUTER: 'FULL_OUTER',
2856
+ FROM_DAYS: 'FROM_DAYS',
2857
+ FROM_UNIXTIME: 'FROM_UNIXTIME',
2858
+
2859
+ GET_FORMAT: 'GET_FORMAT',
2860
+ GREATER_THAN: '>',
2861
+ GROUP_BY: 'GROUP_BY',
2862
+ GROUP_CONCAT: 'GROUP_CONCAT',
2863
+ GREATER_THAN_OR_EQUAL_TO: '>=',
2864
+
2865
+ HAVING: 'HAVING',
2866
+ HEX: 'HEX',
2867
+ HOUR: 'HOUR',
2868
+ HOUR_MICROSECOND: 'HOUR_MICROSECOND',
2869
+ HOUR_SECOND: 'HOUR_SECOND',
2870
+ HOUR_MINUTE: 'HOUR_MINUTE',
2871
+
2872
+ IN: 'IN',
2873
+ IS: 'IS',
2874
+ IS_NOT: 'IS_NOT',
2875
+ INNER: 'INNER',
2876
+ INTERVAL: 'INTERVAL',
2877
+
2878
+ JOIN: 'JOIN',
2879
+
2880
+ LEFT: 'LEFT',
2881
+ LEFT_OUTER: 'LEFT_OUTER',
2882
+ LESS_THAN: '<',
2883
+ LESS_THAN_OR_EQUAL_TO: '<=',
2884
+ LIKE: 'LIKE',
2885
+ LIMIT: 'LIMIT',
2886
+ LOCALTIME: 'LOCALTIME',
2887
+ LOCALTIMESTAMP: 'LOCALTIMESTAMP',
2888
+
2889
+ MAKEDATE: 'MAKEDATE',
2890
+ MAKETIME: 'MAKETIME',
2891
+ MONTHNAME: 'MONTHNAME',
2892
+ MICROSECOND: 'MICROSECOND',
2893
+ MINUTE: 'MINUTE',
2894
+ MINUTE_MICROSECOND: 'MINUTE_MICROSECOND',
2895
+ MINUTE_SECOND: 'MINUTE_SECOND',
2896
+ MIN: 'MIN',
2897
+ MAX: 'MAX',
2898
+ MONTH: 'MONTH',
2899
+
2900
+ NOT_LIKE: 'NOT_LIKE',
2901
+ NOT_EQUAL: '<>',
2902
+ NOT_IN: 'NOT_IN',
2903
+ NOW: 'NOW',
2904
+ NULL: 'NULL',
2905
+
2906
+ ORDER: 'ORDER',
2907
+
2908
+ PAGE: 'PAGE',
2909
+ PAGINATION: 'PAGINATION',
2910
+ RIGHT_OUTER: 'RIGHT_OUTER',
2911
+
2912
+ SECOND: 'SECOND',
2913
+ SECOND_MICROSECOND: 'SECOND_MICROSECOND',
2914
+ SELECT: 'SELECT',
2915
+ STR_TO_DATE: 'STR_TO_DATE',
2916
+ SUBDATE: 'SUBDATE',
2917
+ SUBTIME: 'SUBTIME',
2918
+ SUM: 'SUM',
2919
+ SYSDATE: 'SYSDATE',
2920
+
2921
+ TIME: 'TIME',
1590
2922
  TIME_FORMAT: 'TIME_FORMAT',
1591
2923
  TIME_TO_SEC: 'TIME_TO_SEC',
1592
2924
  TIMEDIFF: 'TIMEDIFF',
@@ -1754,6 +3086,112 @@ export const COLUMNS = {
1754
3086
  'carbon_users.user_location':'user_location',
1755
3087
  'carbon_users.user_creation_date':'user_creation_date',
1756
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
+
1757
3195
  };
1758
3196
 
1759
3197
  export type RestTableInterfaces = iCarbons
@@ -1773,7 +3211,19 @@ export type RestTableInterfaces = iCarbons
1773
3211
  | iUser_Messages
1774
3212
  | iUser_Sessions
1775
3213
  | iUser_Tasks
1776
- | iUsers;
3214
+ | iUsers
3215
+ | iWp_Commentmeta
3216
+ | iWp_Comments
3217
+ | iWp_Links
3218
+ | iWp_Options
3219
+ | iWp_Postmeta
3220
+ | iWp_Posts
3221
+ | iWp_Term_Relationships
3222
+ | iWp_Term_Taxonomy
3223
+ | iWp_Termmeta
3224
+ | iWp_Terms
3225
+ | iWp_Usermeta
3226
+ | iWp_Users;
1777
3227
 
1778
3228
 
1779
3229
  export type tStatefulApiData<T> = T[] | undefined | null;
@@ -1800,6 +3250,18 @@ export interface iRestfulObjectArrayTypes {
1800
3250
  user_sessions: tStatefulApiData<iUser_Sessions>,
1801
3251
  user_tasks: tStatefulApiData<iUser_Tasks>,
1802
3252
  users: tStatefulApiData<iUsers>,
3253
+ wp_commentmeta: tStatefulApiData<iWp_Commentmeta>,
3254
+ wp_comments: tStatefulApiData<iWp_Comments>,
3255
+ wp_links: tStatefulApiData<iWp_Links>,
3256
+ wp_options: tStatefulApiData<iWp_Options>,
3257
+ wp_postmeta: tStatefulApiData<iWp_Postmeta>,
3258
+ wp_posts: tStatefulApiData<iWp_Posts>,
3259
+ wp_term_relationships: tStatefulApiData<iWp_Term_Relationships>,
3260
+ wp_term_taxonomy: tStatefulApiData<iWp_Term_Taxonomy>,
3261
+ wp_termmeta: tStatefulApiData<iWp_Termmeta>,
3262
+ wp_terms: tStatefulApiData<iWp_Terms>,
3263
+ wp_usermeta: tStatefulApiData<iWp_Usermeta>,
3264
+ wp_users: tStatefulApiData<iWp_Users>,
1803
3265
  }
1804
3266
 
1805
3267
  export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
@@ -1822,10 +3284,20 @@ export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
1822
3284
  user_sessions: undefined,
1823
3285
  user_tasks: undefined,
1824
3286
  users: undefined,
3287
+ wp_commentmeta: undefined,
3288
+ wp_comments: undefined,
3289
+ wp_links: undefined,
3290
+ wp_options: undefined,
3291
+ wp_postmeta: undefined,
3292
+ wp_posts: undefined,
3293
+ wp_term_relationships: undefined,
3294
+ wp_term_taxonomy: undefined,
3295
+ wp_termmeta: undefined,
3296
+ wp_terms: undefined,
3297
+ wp_usermeta: undefined,
3298
+ wp_users: undefined,
1825
3299
  };
1826
3300
 
1827
3301
  export type tRestfulObjectArrayValues = iRestfulObjectArrayTypes[keyof iRestfulObjectArrayTypes];
1828
3302
 
1829
3303
 
1830
-
1831
-