@carbonorm/carbonreact 3.4.1 → 3.4.4

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 (111) hide show
  1. package/dist/CarbonReact.d.ts +0 -3
  2. package/dist/api/hoc/getStatefulObjectWithWhere.d.ts +11 -0
  3. package/dist/api/hoc/watchInputElementChangeEvent.d.ts +2 -0
  4. package/dist/api/rest/C6.d.ts +579 -0
  5. package/dist/api/rest/Carbons.d.ts +88 -0
  6. package/dist/api/rest/Carbons.test.d.ts +14 -0
  7. package/dist/api/rest/Chat_Messages.d.ts +88 -0
  8. package/dist/api/rest/Chat_Messages.test.d.ts +20 -0
  9. package/dist/api/rest/Documentation.d.ts +88 -0
  10. package/dist/api/rest/Documentation.test.d.ts +11 -0
  11. package/dist/api/rest/Feature_Group_References.d.ts +88 -0
  12. package/dist/api/rest/Feature_Group_References.test.d.ts +13 -0
  13. package/dist/api/rest/Features.d.ts +88 -0
  14. package/dist/api/rest/Features.test.d.ts +14 -0
  15. package/dist/api/rest/Group_References.d.ts +88 -0
  16. package/dist/api/rest/Group_References.test.d.ts +13 -0
  17. package/dist/api/rest/Groups.d.ts +88 -0
  18. package/dist/api/rest/Groups.test.d.ts +15 -0
  19. package/dist/api/rest/History_Logs.d.ts +88 -0
  20. package/dist/api/rest/History_Logs.test.d.ts +13 -0
  21. package/dist/api/rest/Likes.d.ts +88 -0
  22. package/dist/api/rest/Likes.test.d.ts +13 -0
  23. package/dist/api/rest/Location_References.d.ts +88 -0
  24. package/dist/api/rest/Location_References.test.d.ts +14 -0
  25. package/dist/api/rest/Locations.d.ts +88 -0
  26. package/dist/api/rest/Locations.test.d.ts +18 -0
  27. package/dist/api/rest/Photos.d.ts +88 -0
  28. package/dist/api/rest/Photos.test.d.ts +20 -0
  29. package/dist/api/rest/Posts.d.ts +88 -0
  30. package/dist/api/rest/Posts.test.d.ts +22 -0
  31. package/dist/api/rest/Projects.d.ts +88 -0
  32. package/dist/api/rest/Projects.test.d.ts +21 -0
  33. package/dist/api/rest/Reports.d.ts +88 -0
  34. package/dist/api/rest/Reports.test.d.ts +11 -0
  35. package/dist/api/rest/Sessions.d.ts +88 -0
  36. package/dist/api/rest/Sessions.test.d.ts +14 -0
  37. package/dist/api/rest/Subscription.d.ts +88 -0
  38. package/dist/api/rest/Subscription.test.d.ts +20 -0
  39. package/dist/api/rest/User_Followers.d.ts +88 -0
  40. package/dist/api/rest/User_Followers.test.d.ts +16 -0
  41. package/dist/api/rest/User_Groups.d.ts +88 -0
  42. package/dist/api/rest/User_Groups.test.d.ts +13 -0
  43. package/dist/api/rest/User_Messages.d.ts +88 -0
  44. package/dist/api/rest/User_Messages.test.d.ts +20 -0
  45. package/dist/api/rest/User_Sessions.d.ts +88 -0
  46. package/dist/api/rest/User_Sessions.test.d.ts +14 -0
  47. package/dist/api/rest/User_Tasks.d.ts +88 -0
  48. package/dist/api/rest/User_Tasks.test.d.ts +22 -0
  49. package/dist/api/rest/Users.d.ts +88 -0
  50. package/dist/api/rest/Users.test.d.ts +44 -0
  51. package/dist/api/rest/WsLiveUpdates.d.ts +3 -0
  52. package/dist/components/WebSocket/CarbonWebSocket.d.ts +8 -4
  53. package/dist/index.cjs.js +5056 -2124
  54. package/dist/index.cjs.js.map +1 -1
  55. package/dist/index.d.ts +53 -0
  56. package/dist/index.esm.js +4957 -2105
  57. package/dist/index.esm.js.map +1 -1
  58. package/package.json +2 -2
  59. package/src/CarbonReact.tsx +0 -3
  60. package/src/api/hoc/getStatefulObjectWithWhere.tsx +17 -0
  61. package/src/api/hoc/watchInputElementChangeEvent.tsx +24 -0
  62. package/src/api/rest/C6.tsx +2687 -0
  63. package/src/api/rest/Carbons.test.tsx +128 -0
  64. package/src/api/rest/Carbons.tsx +145 -0
  65. package/src/api/rest/Chat_Messages.test.tsx +138 -0
  66. package/src/api/rest/Chat_Messages.tsx +151 -0
  67. package/src/api/rest/Documentation.test.tsx +128 -0
  68. package/src/api/rest/Documentation.tsx +142 -0
  69. package/src/api/rest/Feature_Group_References.test.tsx +126 -0
  70. package/src/api/rest/Feature_Group_References.tsx +144 -0
  71. package/src/api/rest/Features.test.tsx +128 -0
  72. package/src/api/rest/Features.tsx +145 -0
  73. package/src/api/rest/Group_References.test.tsx +126 -0
  74. package/src/api/rest/Group_References.tsx +144 -0
  75. package/src/api/rest/Groups.test.tsx +130 -0
  76. package/src/api/rest/Groups.tsx +146 -0
  77. package/src/api/rest/History_Logs.test.tsx +130 -0
  78. package/src/api/rest/History_Logs.tsx +144 -0
  79. package/src/api/rest/Likes.test.tsx +126 -0
  80. package/src/api/rest/Likes.tsx +144 -0
  81. package/src/api/rest/Location_References.test.tsx +128 -0
  82. package/src/api/rest/Location_References.tsx +145 -0
  83. package/src/api/rest/Locations.test.tsx +137 -0
  84. package/src/api/rest/Locations.tsx +149 -0
  85. package/src/api/rest/Photos.test.tsx +139 -0
  86. package/src/api/rest/Photos.tsx +151 -0
  87. package/src/api/rest/Posts.test.tsx +142 -0
  88. package/src/api/rest/Posts.tsx +153 -0
  89. package/src/api/rest/Projects.test.tsx +144 -0
  90. package/src/api/rest/Projects.tsx +152 -0
  91. package/src/api/rest/Reports.test.tsx +128 -0
  92. package/src/api/rest/Reports.tsx +142 -0
  93. package/src/api/rest/Sessions.test.tsx +133 -0
  94. package/src/api/rest/Sessions.tsx +145 -0
  95. package/src/api/rest/Subscription.test.tsx +138 -0
  96. package/src/api/rest/Subscription.tsx +151 -0
  97. package/src/api/rest/User_Followers.test.tsx +130 -0
  98. package/src/api/rest/User_Followers.tsx +147 -0
  99. package/src/api/rest/User_Groups.test.tsx +126 -0
  100. package/src/api/rest/User_Groups.tsx +144 -0
  101. package/src/api/rest/User_Messages.test.tsx +137 -0
  102. package/src/api/rest/User_Messages.tsx +151 -0
  103. package/src/api/rest/User_Sessions.test.tsx +133 -0
  104. package/src/api/rest/User_Sessions.tsx +145 -0
  105. package/src/api/rest/User_Tasks.test.tsx +141 -0
  106. package/src/api/rest/User_Tasks.tsx +153 -0
  107. package/src/api/rest/Users.test.tsx +193 -0
  108. package/src/api/rest/Users.tsx +175 -0
  109. package/src/api/rest/WsLiveUpdates.tsx +150 -0
  110. package/src/components/WebSocket/CarbonWebSocket.tsx +22 -11
  111. package/src/index.ts +53 -0
@@ -0,0 +1,2687 @@
1
+ import {
2
+ C6RestfulModel,
3
+ C6Constants,
4
+ tC6Tables
5
+ } from "@carbonorm/carbonnode";
6
+ import { putStateCarbons, postStateCarbons, deleteStateCarbons } from "./Carbons";
7
+ import { putStateChat_Messages, postStateChat_Messages, deleteStateChat_Messages } from "./Chat_Messages";
8
+ import { putStateDocumentation, postStateDocumentation, deleteStateDocumentation } from "./Documentation";
9
+ import { putStateFeature_Group_References, postStateFeature_Group_References, deleteStateFeature_Group_References } from "./Feature_Group_References";
10
+ import { putStateFeatures, postStateFeatures, deleteStateFeatures } from "./Features";
11
+ import { putStateGroup_References, postStateGroup_References, deleteStateGroup_References } from "./Group_References";
12
+ import { putStateGroups, postStateGroups, deleteStateGroups } from "./Groups";
13
+ import { putStateHistory_Logs, postStateHistory_Logs, deleteStateHistory_Logs } from "./History_Logs";
14
+ import { putStateLikes, postStateLikes, deleteStateLikes } from "./Likes";
15
+ import { putStateLocation_References, postStateLocation_References, deleteStateLocation_References } from "./Location_References";
16
+ import { putStateLocations, postStateLocations, deleteStateLocations } from "./Locations";
17
+ import { putStatePhotos, postStatePhotos, deleteStatePhotos } from "./Photos";
18
+ import { putStatePosts, postStatePosts, deleteStatePosts } from "./Posts";
19
+ import { putStateProjects, postStateProjects, deleteStateProjects } from "./Projects";
20
+ import { putStateReports, postStateReports, deleteStateReports } from "./Reports";
21
+ import { putStateSessions, postStateSessions, deleteStateSessions } from "./Sessions";
22
+ import { putStateSubscription, postStateSubscription, deleteStateSubscription } from "./Subscription";
23
+ import { putStateUser_Followers, postStateUser_Followers, deleteStateUser_Followers } from "./User_Followers";
24
+ import { putStateUser_Groups, postStateUser_Groups, deleteStateUser_Groups } from "./User_Groups";
25
+ import { putStateUser_Messages, postStateUser_Messages, deleteStateUser_Messages } from "./User_Messages";
26
+ import { putStateUser_Sessions, postStateUser_Sessions, deleteStateUser_Sessions } from "./User_Sessions";
27
+ import { putStateUser_Tasks, postStateUser_Tasks, deleteStateUser_Tasks } from "./User_Tasks";
28
+ import { putStateUsers, postStateUsers, deleteStateUsers } from "./Users";
29
+
30
+ export type RestTableNames = 'carbon_carbons'
31
+ | 'carbon_chat_messages'
32
+ | 'carbon_documentation'
33
+ | 'carbon_feature_group_references'
34
+ | 'carbon_features'
35
+ | 'carbon_group_references'
36
+ | 'carbon_groups'
37
+ | 'carbon_history_logs'
38
+ | 'carbon_likes'
39
+ | 'carbon_location_references'
40
+ | 'carbon_locations'
41
+ | 'carbon_photos'
42
+ | 'carbon_posts'
43
+ | 'carbon_projects'
44
+ | 'carbon_reports'
45
+ | 'carbon_sessions'
46
+ | 'carbon_subscription'
47
+ | 'carbon_user_followers'
48
+ | 'carbon_user_groups'
49
+ | 'carbon_user_messages'
50
+ | 'carbon_user_sessions'
51
+ | 'carbon_user_tasks'
52
+ | 'carbon_users';
53
+
54
+ export type RestShortTableNames = 'carbons'
55
+ | 'chat_messages'
56
+ | 'documentation'
57
+ | 'feature_group_references'
58
+ | 'features'
59
+ | 'group_references'
60
+ | 'groups'
61
+ | 'history_logs'
62
+ | 'likes'
63
+ | 'location_references'
64
+ | 'locations'
65
+ | 'photos'
66
+ | 'posts'
67
+ | 'projects'
68
+ | 'reports'
69
+ | 'sessions'
70
+ | 'subscription'
71
+ | 'user_followers'
72
+ | 'user_groups'
73
+ | 'user_messages'
74
+ | 'user_sessions'
75
+ | 'user_tasks'
76
+ | 'users';
77
+
78
+
79
+ export interface iCarbons {
80
+ 'entity_pk'?: string;
81
+ 'entity_fk'?: string;
82
+ 'entity_tag'?: string;
83
+ }
84
+
85
+ interface iDefineCarbons {
86
+ 'ENTITY_PK': string;
87
+ 'ENTITY_FK': string;
88
+ 'ENTITY_TAG': string;
89
+ }
90
+
91
+ export const carbons: C6RestfulModel<RestTableNames> & iDefineCarbons = {
92
+ TABLE_NAME: 'carbon_carbons',
93
+ ENTITY_PK: 'carbon_carbons.entity_pk',
94
+ ENTITY_FK: 'carbon_carbons.entity_fk',
95
+ ENTITY_TAG: 'carbon_carbons.entity_tag',
96
+ PRIMARY: [
97
+ 'carbon_carbons.entity_pk',
98
+ ],
99
+ PRIMARY_SHORT: [
100
+ 'entity_pk',
101
+ ],
102
+ COLUMNS: {
103
+ 'carbon_carbons.entity_pk': 'entity_pk',
104
+ 'carbon_carbons.entity_fk': 'entity_fk',
105
+ 'carbon_carbons.entity_tag': 'entity_tag',
106
+ },
107
+ TYPE_VALIDATION: {
108
+ 'carbon_carbons.entity_pk': {
109
+ MYSQL_TYPE: 'binary',
110
+ MAX_LENGTH: '16',
111
+ AUTO_INCREMENT: false,
112
+ SKIP_COLUMN_IN_POST: false
113
+ },
114
+ 'carbon_carbons.entity_fk': {
115
+ MYSQL_TYPE: 'binary',
116
+ MAX_LENGTH: '16',
117
+ AUTO_INCREMENT: false,
118
+ SKIP_COLUMN_IN_POST: false
119
+ },
120
+ 'carbon_carbons.entity_tag': {
121
+ MYSQL_TYPE: 'varchar',
122
+ MAX_LENGTH: '100',
123
+ AUTO_INCREMENT: false,
124
+ SKIP_COLUMN_IN_POST: false
125
+ },
126
+ },
127
+ REGEX_VALIDATION: {
128
+ },
129
+ TABLE_REFERENCES: {
130
+ 'entity_fk': [{
131
+ TABLE: 'carbon_carbons',
132
+ COLUMN: 'entity_pk',
133
+ CONSTRAINT: 'entity_entity_entity_pk_fk',
134
+ },],
135
+ },
136
+ TABLE_REFERENCED_BY: {
137
+ 'entity_pk': [{
138
+ TABLE: 'carbon_carbons',
139
+ COLUMN: 'entity_fk',
140
+ CONSTRAINT: 'entity_entity_entity_pk_fk',
141
+ },{
142
+ TABLE: 'carbon_chat_messages',
143
+ COLUMN: 'chat_message_id',
144
+ CONSTRAINT: 'carbon_chat_messages_carbon_carbons_entity_pk_fk',
145
+ },{
146
+ TABLE: 'carbon_feature_group_references',
147
+ COLUMN: 'group_entity_id',
148
+ CONSTRAINT: 'carbon_feature_group_references_carbons_entity_pk_fk',
149
+ },{
150
+ TABLE: 'carbon_feature_group_references',
151
+ COLUMN: 'feature_entity_id',
152
+ CONSTRAINT: 'carbon_feature_references_carbons_entity_pk_fk',
153
+ },{
154
+ TABLE: 'carbon_features',
155
+ COLUMN: 'feature_entity_id',
156
+ CONSTRAINT: 'carbon_features_carbons_entity_pk_fk',
157
+ },{
158
+ TABLE: 'carbon_group_references',
159
+ COLUMN: 'group_id',
160
+ CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk',
161
+ },{
162
+ TABLE: 'carbon_group_references',
163
+ COLUMN: 'allowed_to_grant_group_id',
164
+ CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk_2',
165
+ },{
166
+ TABLE: 'carbon_groups',
167
+ COLUMN: 'entity_id',
168
+ CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk',
169
+ },{
170
+ TABLE: 'carbon_groups',
171
+ COLUMN: 'created_by',
172
+ CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk_2',
173
+ },{
174
+ TABLE: 'carbon_likes',
175
+ COLUMN: 'like_user_id',
176
+ CONSTRAINT: 'carbon_likes_carbon_carbons_entity_pk_fk',
177
+ },{
178
+ TABLE: 'carbon_likes',
179
+ COLUMN: 'like_entity_id',
180
+ CONSTRAINT: 'carbon_likes_carbon_carbons_entity_pk_fk2',
181
+ },{
182
+ TABLE: 'carbon_location_references',
183
+ COLUMN: 'entity_reference',
184
+ CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk',
185
+ },{
186
+ TABLE: 'carbon_location_references',
187
+ COLUMN: 'location_reference',
188
+ CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk_2',
189
+ },{
190
+ TABLE: 'carbon_locations',
191
+ COLUMN: 'entity_id',
192
+ CONSTRAINT: 'entity_location_entity_entity_pk_fk',
193
+ },{
194
+ TABLE: 'carbon_photos',
195
+ COLUMN: 'photo_id',
196
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk',
197
+ },{
198
+ TABLE: 'carbon_photos',
199
+ COLUMN: 'parent_id',
200
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk2',
201
+ },{
202
+ TABLE: 'carbon_photos',
203
+ COLUMN: 'user_id',
204
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk3',
205
+ },{
206
+ TABLE: 'carbon_posts',
207
+ COLUMN: 'post_id',
208
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk',
209
+ },{
210
+ TABLE: 'carbon_posts',
211
+ COLUMN: 'post_author',
212
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk2',
213
+ },{
214
+ TABLE: 'carbon_posts',
215
+ COLUMN: 'post_project_id',
216
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk3',
217
+ },{
218
+ TABLE: 'carbon_posts',
219
+ COLUMN: 'post_parent_id',
220
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk4',
221
+ },{
222
+ TABLE: 'carbon_projects',
223
+ COLUMN: 'project_id',
224
+ CONSTRAINT: 'carbon_projects_carbon_carbons_entity_pk_fk',
225
+ },{
226
+ TABLE: 'carbon_projects',
227
+ COLUMN: 'project_leader',
228
+ CONSTRAINT: 'carbon_projects_carbon_carbons_entity_pk_fk2',
229
+ },{
230
+ TABLE: 'carbon_subscription',
231
+ COLUMN: 'subscription_id',
232
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk',
233
+ },{
234
+ TABLE: 'carbon_subscription',
235
+ COLUMN: 'subscription_to_entity_id',
236
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk2',
237
+ },{
238
+ TABLE: 'carbon_subscription',
239
+ COLUMN: 'subscription_for_entity_id',
240
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk3',
241
+ },{
242
+ TABLE: 'carbon_user_followers',
243
+ COLUMN: 'follower_table_id',
244
+ CONSTRAINT: 'carbon_user_followers_carbons_entity_pk_fk',
245
+ },{
246
+ TABLE: 'carbon_user_followers',
247
+ COLUMN: 'follows_user_id',
248
+ CONSTRAINT: 'followers_entity_entity_follows_pk_fk',
249
+ },{
250
+ TABLE: 'carbon_user_followers',
251
+ COLUMN: 'user_id',
252
+ CONSTRAINT: 'followers_entity_followers_pk_fk',
253
+ },{
254
+ TABLE: 'carbon_user_groups',
255
+ COLUMN: 'group_id',
256
+ CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk',
257
+ },{
258
+ TABLE: 'carbon_user_groups',
259
+ COLUMN: 'user_id',
260
+ CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk_2',
261
+ },{
262
+ TABLE: 'carbon_user_messages',
263
+ COLUMN: 'from_user_id',
264
+ CONSTRAINT: 'carbon_user_messages_carbon_entity_pk_fk',
265
+ },{
266
+ TABLE: 'carbon_user_messages',
267
+ COLUMN: 'message_id',
268
+ CONSTRAINT: 'messages_entity_entity_pk_fk',
269
+ },{
270
+ TABLE: 'carbon_user_messages',
271
+ COLUMN: 'to_user_id',
272
+ CONSTRAINT: 'messages_entity_user_from_pk_fk',
273
+ },{
274
+ TABLE: 'carbon_user_tasks',
275
+ COLUMN: 'task_id',
276
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk',
277
+ },{
278
+ TABLE: 'carbon_user_tasks',
279
+ COLUMN: 'user_id',
280
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_2',
281
+ },{
282
+ TABLE: 'carbon_user_tasks',
283
+ COLUMN: 'from_id',
284
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_3',
285
+ },{
286
+ TABLE: 'carbon_users',
287
+ COLUMN: 'user_id',
288
+ CONSTRAINT: 'user_entity_entity_pk_fk',
289
+ },],
290
+ },
291
+ REST_STATE_OPERATIONS: {
292
+ PUT: putStateCarbons,
293
+ POST: postStateCarbons,
294
+ DELETE: deleteStateCarbons,
295
+ },
296
+ }
297
+
298
+ export interface iChat_Messages {
299
+ 'chat_message_id'?: string;
300
+ 'chat_message_from_user'?: string;
301
+ 'chat_private_group'?: string;
302
+ 'chat_message'?: string;
303
+ 'chat_message_datetime'?: string;
304
+ 'chat_message_advertisement'?: number;
305
+ 'chat_message_unfiltered'?: string;
306
+ }
307
+
308
+ interface iDefineChat_Messages {
309
+ 'CHAT_MESSAGE_ID': string;
310
+ 'CHAT_MESSAGE_FROM_USER': string;
311
+ 'CHAT_PRIVATE_GROUP': string;
312
+ 'CHAT_MESSAGE': string;
313
+ 'CHAT_MESSAGE_DATETIME': string;
314
+ 'CHAT_MESSAGE_ADVERTISEMENT': string;
315
+ 'CHAT_MESSAGE_UNFILTERED': string;
316
+ }
317
+
318
+ export const chat_messages: C6RestfulModel<RestTableNames> & iDefineChat_Messages = {
319
+ TABLE_NAME: 'carbon_chat_messages',
320
+ CHAT_MESSAGE_ID: 'carbon_chat_messages.chat_message_id',
321
+ CHAT_MESSAGE_FROM_USER: 'carbon_chat_messages.chat_message_from_user',
322
+ CHAT_PRIVATE_GROUP: 'carbon_chat_messages.chat_private_group',
323
+ CHAT_MESSAGE: 'carbon_chat_messages.chat_message',
324
+ CHAT_MESSAGE_DATETIME: 'carbon_chat_messages.chat_message_datetime',
325
+ CHAT_MESSAGE_ADVERTISEMENT: 'carbon_chat_messages.chat_message_advertisement',
326
+ CHAT_MESSAGE_UNFILTERED: 'carbon_chat_messages.chat_message_unfiltered',
327
+ PRIMARY: [
328
+ 'carbon_chat_messages.chat_message_id',
329
+ ],
330
+ PRIMARY_SHORT: [
331
+ 'chat_message_id',
332
+ ],
333
+ COLUMNS: {
334
+ 'carbon_chat_messages.chat_message_id': 'chat_message_id',
335
+ 'carbon_chat_messages.chat_message_from_user': 'chat_message_from_user',
336
+ 'carbon_chat_messages.chat_private_group': 'chat_private_group',
337
+ 'carbon_chat_messages.chat_message': 'chat_message',
338
+ 'carbon_chat_messages.chat_message_datetime': 'chat_message_datetime',
339
+ 'carbon_chat_messages.chat_message_advertisement': 'chat_message_advertisement',
340
+ 'carbon_chat_messages.chat_message_unfiltered': 'chat_message_unfiltered',
341
+ },
342
+ TYPE_VALIDATION: {
343
+ 'carbon_chat_messages.chat_message_id': {
344
+ MYSQL_TYPE: 'binary',
345
+ MAX_LENGTH: '16',
346
+ AUTO_INCREMENT: false,
347
+ SKIP_COLUMN_IN_POST: false
348
+ },
349
+ 'carbon_chat_messages.chat_message_from_user': {
350
+ MYSQL_TYPE: 'binary',
351
+ MAX_LENGTH: '16',
352
+ AUTO_INCREMENT: false,
353
+ SKIP_COLUMN_IN_POST: false
354
+ },
355
+ 'carbon_chat_messages.chat_private_group': {
356
+ MYSQL_TYPE: 'binary',
357
+ MAX_LENGTH: '16',
358
+ AUTO_INCREMENT: false,
359
+ SKIP_COLUMN_IN_POST: false
360
+ },
361
+ 'carbon_chat_messages.chat_message': {
362
+ MYSQL_TYPE: 'varchar',
363
+ MAX_LENGTH: '255',
364
+ AUTO_INCREMENT: false,
365
+ SKIP_COLUMN_IN_POST: false
366
+ },
367
+ 'carbon_chat_messages.chat_message_datetime': {
368
+ MYSQL_TYPE: 'datetime',
369
+ MAX_LENGTH: '',
370
+ AUTO_INCREMENT: false,
371
+ SKIP_COLUMN_IN_POST: false
372
+ },
373
+ 'carbon_chat_messages.chat_message_advertisement': {
374
+ MYSQL_TYPE: 'smallint',
375
+ MAX_LENGTH: '',
376
+ AUTO_INCREMENT: false,
377
+ SKIP_COLUMN_IN_POST: false
378
+ },
379
+ 'carbon_chat_messages.chat_message_unfiltered': {
380
+ MYSQL_TYPE: 'varchar',
381
+ MAX_LENGTH: '255',
382
+ AUTO_INCREMENT: false,
383
+ SKIP_COLUMN_IN_POST: false
384
+ },
385
+ },
386
+ REGEX_VALIDATION: {
387
+ },
388
+ TABLE_REFERENCES: {
389
+ 'chat_message_id': [{
390
+ TABLE: 'carbon_carbons',
391
+ COLUMN: 'entity_pk',
392
+ CONSTRAINT: 'carbon_chat_messages_carbon_carbons_entity_pk_fk',
393
+ },],'chat_message_from_user': [{
394
+ TABLE: 'carbon_users',
395
+ COLUMN: 'user_id',
396
+ CONSTRAINT: 'chat_chat_messages_users_ID_fk',
397
+ },],
398
+ },
399
+ TABLE_REFERENCED_BY: {
400
+
401
+ },
402
+ REST_STATE_OPERATIONS: {
403
+ PUT: putStateChat_Messages,
404
+ POST: postStateChat_Messages,
405
+ DELETE: deleteStateChat_Messages,
406
+ },
407
+ }
408
+
409
+ export interface iDocumentation {
410
+ 'documentation_uri'?: string;
411
+ 'documentation_data'?: string;
412
+ 'documentation_version'?: string;
413
+ 'documentation_active'?: string;
414
+ }
415
+
416
+ interface iDefineDocumentation {
417
+ 'DOCUMENTATION_URI': string;
418
+ 'DOCUMENTATION_DATA': string;
419
+ 'DOCUMENTATION_VERSION': string;
420
+ 'DOCUMENTATION_ACTIVE': string;
421
+ }
422
+
423
+ export const documentation: C6RestfulModel<RestTableNames> & iDefineDocumentation = {
424
+ TABLE_NAME: 'carbon_documentation',
425
+ DOCUMENTATION_URI: 'carbon_documentation.documentation_uri',
426
+ DOCUMENTATION_DATA: 'carbon_documentation.documentation_data',
427
+ DOCUMENTATION_VERSION: 'carbon_documentation.documentation_version',
428
+ DOCUMENTATION_ACTIVE: 'carbon_documentation.documentation_active',
429
+ PRIMARY: [
430
+ ],
431
+ PRIMARY_SHORT: [
432
+ ],
433
+ COLUMNS: {
434
+ 'carbon_documentation.documentation_uri': 'documentation_uri',
435
+ 'carbon_documentation.documentation_data': 'documentation_data',
436
+ 'carbon_documentation.documentation_version': 'documentation_version',
437
+ 'carbon_documentation.documentation_active': 'documentation_active',
438
+ },
439
+ TYPE_VALIDATION: {
440
+ 'carbon_documentation.documentation_uri': {
441
+ MYSQL_TYPE: 'varchar',
442
+ MAX_LENGTH: '255',
443
+ AUTO_INCREMENT: false,
444
+ SKIP_COLUMN_IN_POST: false
445
+ },
446
+ 'carbon_documentation.documentation_data': {
447
+ MYSQL_TYPE: 'longblob',
448
+ MAX_LENGTH: '',
449
+ AUTO_INCREMENT: false,
450
+ SKIP_COLUMN_IN_POST: true
451
+ },
452
+ 'carbon_documentation.documentation_version': {
453
+ MYSQL_TYPE: 'varchar',
454
+ MAX_LENGTH: '40',
455
+ AUTO_INCREMENT: false,
456
+ SKIP_COLUMN_IN_POST: false
457
+ },
458
+ 'carbon_documentation.documentation_active': {
459
+ MYSQL_TYPE: 'tinyint',
460
+ MAX_LENGTH: '',
461
+ AUTO_INCREMENT: false,
462
+ SKIP_COLUMN_IN_POST: false
463
+ },
464
+ },
465
+ REGEX_VALIDATION: {
466
+ },
467
+ TABLE_REFERENCES: {
468
+
469
+ },
470
+ TABLE_REFERENCED_BY: {
471
+
472
+ },
473
+ REST_STATE_OPERATIONS: {
474
+ PUT: putStateDocumentation,
475
+ POST: postStateDocumentation,
476
+ DELETE: deleteStateDocumentation,
477
+ },
478
+ }
479
+
480
+ export interface iFeature_Group_References {
481
+ 'feature_entity_id'?: string;
482
+ 'group_entity_id'?: string;
483
+ }
484
+
485
+ interface iDefineFeature_Group_References {
486
+ 'FEATURE_ENTITY_ID': string;
487
+ 'GROUP_ENTITY_ID': string;
488
+ }
489
+
490
+ export const feature_group_references: C6RestfulModel<RestTableNames> & iDefineFeature_Group_References = {
491
+ TABLE_NAME: 'carbon_feature_group_references',
492
+ FEATURE_ENTITY_ID: 'carbon_feature_group_references.feature_entity_id',
493
+ GROUP_ENTITY_ID: 'carbon_feature_group_references.group_entity_id',
494
+ PRIMARY: [
495
+ ],
496
+ PRIMARY_SHORT: [
497
+ ],
498
+ COLUMNS: {
499
+ 'carbon_feature_group_references.feature_entity_id': 'feature_entity_id',
500
+ 'carbon_feature_group_references.group_entity_id': 'group_entity_id',
501
+ },
502
+ TYPE_VALIDATION: {
503
+ 'carbon_feature_group_references.feature_entity_id': {
504
+ MYSQL_TYPE: 'binary',
505
+ MAX_LENGTH: '16',
506
+ AUTO_INCREMENT: false,
507
+ SKIP_COLUMN_IN_POST: false
508
+ },
509
+ 'carbon_feature_group_references.group_entity_id': {
510
+ MYSQL_TYPE: 'binary',
511
+ MAX_LENGTH: '16',
512
+ AUTO_INCREMENT: false,
513
+ SKIP_COLUMN_IN_POST: false
514
+ },
515
+ },
516
+ REGEX_VALIDATION: {
517
+ },
518
+ TABLE_REFERENCES: {
519
+ 'group_entity_id': [{
520
+ TABLE: 'carbon_carbons',
521
+ COLUMN: 'entity_pk',
522
+ CONSTRAINT: 'carbon_feature_group_references_carbons_entity_pk_fk',
523
+ },],'feature_entity_id': [{
524
+ TABLE: 'carbon_carbons',
525
+ COLUMN: 'entity_pk',
526
+ CONSTRAINT: 'carbon_feature_references_carbons_entity_pk_fk',
527
+ },],
528
+ },
529
+ TABLE_REFERENCED_BY: {
530
+
531
+ },
532
+ REST_STATE_OPERATIONS: {
533
+ PUT: putStateFeature_Group_References,
534
+ POST: postStateFeature_Group_References,
535
+ DELETE: deleteStateFeature_Group_References,
536
+ },
537
+ }
538
+
539
+ export interface iFeatures {
540
+ 'feature_entity_id'?: string;
541
+ 'feature_code'?: string;
542
+ 'feature_creation_date'?: string;
543
+ }
544
+
545
+ interface iDefineFeatures {
546
+ 'FEATURE_ENTITY_ID': string;
547
+ 'FEATURE_CODE': string;
548
+ 'FEATURE_CREATION_DATE': string;
549
+ }
550
+
551
+ export const features: C6RestfulModel<RestTableNames> & iDefineFeatures = {
552
+ TABLE_NAME: 'carbon_features',
553
+ FEATURE_ENTITY_ID: 'carbon_features.feature_entity_id',
554
+ FEATURE_CODE: 'carbon_features.feature_code',
555
+ FEATURE_CREATION_DATE: 'carbon_features.feature_creation_date',
556
+ PRIMARY: [
557
+ 'carbon_features.feature_entity_id',
558
+ ],
559
+ PRIMARY_SHORT: [
560
+ 'feature_entity_id',
561
+ ],
562
+ COLUMNS: {
563
+ 'carbon_features.feature_entity_id': 'feature_entity_id',
564
+ 'carbon_features.feature_code': 'feature_code',
565
+ 'carbon_features.feature_creation_date': 'feature_creation_date',
566
+ },
567
+ TYPE_VALIDATION: {
568
+ 'carbon_features.feature_entity_id': {
569
+ MYSQL_TYPE: 'binary',
570
+ MAX_LENGTH: '16',
571
+ AUTO_INCREMENT: false,
572
+ SKIP_COLUMN_IN_POST: false
573
+ },
574
+ 'carbon_features.feature_code': {
575
+ MYSQL_TYPE: 'varchar',
576
+ MAX_LENGTH: '30',
577
+ AUTO_INCREMENT: false,
578
+ SKIP_COLUMN_IN_POST: false
579
+ },
580
+ 'carbon_features.feature_creation_date': {
581
+ MYSQL_TYPE: 'datetime',
582
+ MAX_LENGTH: '',
583
+ AUTO_INCREMENT: false,
584
+ SKIP_COLUMN_IN_POST: false
585
+ },
586
+ },
587
+ REGEX_VALIDATION: {
588
+ },
589
+ TABLE_REFERENCES: {
590
+ 'feature_entity_id': [{
591
+ TABLE: 'carbon_carbons',
592
+ COLUMN: 'entity_pk',
593
+ CONSTRAINT: 'carbon_features_carbons_entity_pk_fk',
594
+ },],
595
+ },
596
+ TABLE_REFERENCED_BY: {
597
+
598
+ },
599
+ REST_STATE_OPERATIONS: {
600
+ PUT: putStateFeatures,
601
+ POST: postStateFeatures,
602
+ DELETE: deleteStateFeatures,
603
+ },
604
+ }
605
+
606
+ export interface iGroup_References {
607
+ 'group_id'?: string;
608
+ 'allowed_to_grant_group_id'?: string;
609
+ }
610
+
611
+ interface iDefineGroup_References {
612
+ 'GROUP_ID': string;
613
+ 'ALLOWED_TO_GRANT_GROUP_ID': string;
614
+ }
615
+
616
+ export const group_references: C6RestfulModel<RestTableNames> & iDefineGroup_References = {
617
+ TABLE_NAME: 'carbon_group_references',
618
+ GROUP_ID: 'carbon_group_references.group_id',
619
+ ALLOWED_TO_GRANT_GROUP_ID: 'carbon_group_references.allowed_to_grant_group_id',
620
+ PRIMARY: [
621
+ ],
622
+ PRIMARY_SHORT: [
623
+ ],
624
+ COLUMNS: {
625
+ 'carbon_group_references.group_id': 'group_id',
626
+ 'carbon_group_references.allowed_to_grant_group_id': 'allowed_to_grant_group_id',
627
+ },
628
+ TYPE_VALIDATION: {
629
+ 'carbon_group_references.group_id': {
630
+ MYSQL_TYPE: 'binary',
631
+ MAX_LENGTH: '16',
632
+ AUTO_INCREMENT: false,
633
+ SKIP_COLUMN_IN_POST: false
634
+ },
635
+ 'carbon_group_references.allowed_to_grant_group_id': {
636
+ MYSQL_TYPE: 'binary',
637
+ MAX_LENGTH: '16',
638
+ AUTO_INCREMENT: false,
639
+ SKIP_COLUMN_IN_POST: false
640
+ },
641
+ },
642
+ REGEX_VALIDATION: {
643
+ },
644
+ TABLE_REFERENCES: {
645
+ 'group_id': [{
646
+ TABLE: 'carbon_carbons',
647
+ COLUMN: 'entity_pk',
648
+ CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk',
649
+ },],'allowed_to_grant_group_id': [{
650
+ TABLE: 'carbon_carbons',
651
+ COLUMN: 'entity_pk',
652
+ CONSTRAINT: 'carbon_group_references_carbons_entity_pk_fk_2',
653
+ },],
654
+ },
655
+ TABLE_REFERENCED_BY: {
656
+
657
+ },
658
+ REST_STATE_OPERATIONS: {
659
+ PUT: putStateGroup_References,
660
+ POST: postStateGroup_References,
661
+ DELETE: deleteStateGroup_References,
662
+ },
663
+ }
664
+
665
+ export interface iGroups {
666
+ 'group_name'?: string;
667
+ 'entity_id'?: string;
668
+ 'created_by'?: string;
669
+ 'creation_date'?: string;
670
+ }
671
+
672
+ interface iDefineGroups {
673
+ 'GROUP_NAME': string;
674
+ 'ENTITY_ID': string;
675
+ 'CREATED_BY': string;
676
+ 'CREATION_DATE': string;
677
+ }
678
+
679
+ export const groups: C6RestfulModel<RestTableNames> & iDefineGroups = {
680
+ TABLE_NAME: 'carbon_groups',
681
+ GROUP_NAME: 'carbon_groups.group_name',
682
+ ENTITY_ID: 'carbon_groups.entity_id',
683
+ CREATED_BY: 'carbon_groups.created_by',
684
+ CREATION_DATE: 'carbon_groups.creation_date',
685
+ PRIMARY: [
686
+ 'carbon_groups.entity_id',
687
+ ],
688
+ PRIMARY_SHORT: [
689
+ 'entity_id',
690
+ ],
691
+ COLUMNS: {
692
+ 'carbon_groups.group_name': 'group_name',
693
+ 'carbon_groups.entity_id': 'entity_id',
694
+ 'carbon_groups.created_by': 'created_by',
695
+ 'carbon_groups.creation_date': 'creation_date',
696
+ },
697
+ TYPE_VALIDATION: {
698
+ 'carbon_groups.group_name': {
699
+ MYSQL_TYPE: 'varchar',
700
+ MAX_LENGTH: '20',
701
+ AUTO_INCREMENT: false,
702
+ SKIP_COLUMN_IN_POST: false
703
+ },
704
+ 'carbon_groups.entity_id': {
705
+ MYSQL_TYPE: 'binary',
706
+ MAX_LENGTH: '16',
707
+ AUTO_INCREMENT: false,
708
+ SKIP_COLUMN_IN_POST: false
709
+ },
710
+ 'carbon_groups.created_by': {
711
+ MYSQL_TYPE: 'binary',
712
+ MAX_LENGTH: '16',
713
+ AUTO_INCREMENT: false,
714
+ SKIP_COLUMN_IN_POST: false
715
+ },
716
+ 'carbon_groups.creation_date': {
717
+ MYSQL_TYPE: 'datetime',
718
+ MAX_LENGTH: '',
719
+ AUTO_INCREMENT: false,
720
+ SKIP_COLUMN_IN_POST: false
721
+ },
722
+ },
723
+ REGEX_VALIDATION: {
724
+ },
725
+ TABLE_REFERENCES: {
726
+ 'entity_id': [{
727
+ TABLE: 'carbon_carbons',
728
+ COLUMN: 'entity_pk',
729
+ CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk',
730
+ },],'created_by': [{
731
+ TABLE: 'carbon_carbons',
732
+ COLUMN: 'entity_pk',
733
+ CONSTRAINT: 'carbon_feature_groups_carbons_entity_pk_fk_2',
734
+ },],
735
+ },
736
+ TABLE_REFERENCED_BY: {
737
+
738
+ },
739
+ REST_STATE_OPERATIONS: {
740
+ PUT: putStateGroups,
741
+ POST: postStateGroups,
742
+ DELETE: deleteStateGroups,
743
+ },
744
+ }
745
+
746
+ export interface iHistory_Logs {
747
+ 'history_uuid'?: string;
748
+ 'history_table'?: string;
749
+ 'history_type'?: string;
750
+ 'history_data'?: string;
751
+ 'history_original_query'?: string;
752
+ 'history_time'?: string;
753
+ }
754
+
755
+ interface iDefineHistory_Logs {
756
+ 'HISTORY_UUID': string;
757
+ 'HISTORY_TABLE': string;
758
+ 'HISTORY_TYPE': string;
759
+ 'HISTORY_DATA': string;
760
+ 'HISTORY_ORIGINAL_QUERY': string;
761
+ 'HISTORY_TIME': string;
762
+ }
763
+
764
+ export const history_logs: C6RestfulModel<RestTableNames> & iDefineHistory_Logs = {
765
+ TABLE_NAME: 'carbon_history_logs',
766
+ HISTORY_UUID: 'carbon_history_logs.history_uuid',
767
+ HISTORY_TABLE: 'carbon_history_logs.history_table',
768
+ HISTORY_TYPE: 'carbon_history_logs.history_type',
769
+ HISTORY_DATA: 'carbon_history_logs.history_data',
770
+ HISTORY_ORIGINAL_QUERY: 'carbon_history_logs.history_original_query',
771
+ HISTORY_TIME: 'carbon_history_logs.history_time',
772
+ PRIMARY: [
773
+ ],
774
+ PRIMARY_SHORT: [
775
+ ],
776
+ COLUMNS: {
777
+ 'carbon_history_logs.history_uuid': 'history_uuid',
778
+ 'carbon_history_logs.history_table': 'history_table',
779
+ 'carbon_history_logs.history_type': 'history_type',
780
+ 'carbon_history_logs.history_data': 'history_data',
781
+ 'carbon_history_logs.history_original_query': 'history_original_query',
782
+ 'carbon_history_logs.history_time': 'history_time',
783
+ },
784
+ TYPE_VALIDATION: {
785
+ 'carbon_history_logs.history_uuid': {
786
+ MYSQL_TYPE: 'binary',
787
+ MAX_LENGTH: '16',
788
+ AUTO_INCREMENT: false,
789
+ SKIP_COLUMN_IN_POST: false
790
+ },
791
+ 'carbon_history_logs.history_table': {
792
+ MYSQL_TYPE: 'varchar',
793
+ MAX_LENGTH: '255',
794
+ AUTO_INCREMENT: false,
795
+ SKIP_COLUMN_IN_POST: false
796
+ },
797
+ 'carbon_history_logs.history_type': {
798
+ MYSQL_TYPE: 'varchar',
799
+ MAX_LENGTH: '20',
800
+ AUTO_INCREMENT: false,
801
+ SKIP_COLUMN_IN_POST: false
802
+ },
803
+ 'carbon_history_logs.history_data': {
804
+ MYSQL_TYPE: 'json',
805
+ MAX_LENGTH: '',
806
+ AUTO_INCREMENT: false,
807
+ SKIP_COLUMN_IN_POST: false
808
+ },
809
+ 'carbon_history_logs.history_original_query': {
810
+ MYSQL_TYPE: 'varchar',
811
+ MAX_LENGTH: '1024',
812
+ AUTO_INCREMENT: false,
813
+ SKIP_COLUMN_IN_POST: false
814
+ },
815
+ 'carbon_history_logs.history_time': {
816
+ MYSQL_TYPE: 'datetime',
817
+ MAX_LENGTH: '',
818
+ AUTO_INCREMENT: false,
819
+ SKIP_COLUMN_IN_POST: false
820
+ },
821
+ },
822
+ REGEX_VALIDATION: {
823
+ },
824
+ TABLE_REFERENCES: {
825
+
826
+ },
827
+ TABLE_REFERENCED_BY: {
828
+
829
+ },
830
+ REST_STATE_OPERATIONS: {
831
+ PUT: putStateHistory_Logs,
832
+ POST: postStateHistory_Logs,
833
+ DELETE: deleteStateHistory_Logs,
834
+ },
835
+ }
836
+
837
+ export interface iLikes {
838
+ 'like_user_id'?: string;
839
+ 'like_entity_id'?: string;
840
+ }
841
+
842
+ interface iDefineLikes {
843
+ 'LIKE_USER_ID': string;
844
+ 'LIKE_ENTITY_ID': string;
845
+ }
846
+
847
+ export const likes: C6RestfulModel<RestTableNames> & iDefineLikes = {
848
+ TABLE_NAME: 'carbon_likes',
849
+ LIKE_USER_ID: 'carbon_likes.like_user_id',
850
+ LIKE_ENTITY_ID: 'carbon_likes.like_entity_id',
851
+ PRIMARY: [
852
+ ],
853
+ PRIMARY_SHORT: [
854
+ ],
855
+ COLUMNS: {
856
+ 'carbon_likes.like_user_id': 'like_user_id',
857
+ 'carbon_likes.like_entity_id': 'like_entity_id',
858
+ },
859
+ TYPE_VALIDATION: {
860
+ 'carbon_likes.like_user_id': {
861
+ MYSQL_TYPE: 'binary',
862
+ MAX_LENGTH: '16',
863
+ AUTO_INCREMENT: false,
864
+ SKIP_COLUMN_IN_POST: false
865
+ },
866
+ 'carbon_likes.like_entity_id': {
867
+ MYSQL_TYPE: 'binary',
868
+ MAX_LENGTH: '16',
869
+ AUTO_INCREMENT: false,
870
+ SKIP_COLUMN_IN_POST: false
871
+ },
872
+ },
873
+ REGEX_VALIDATION: {
874
+ },
875
+ TABLE_REFERENCES: {
876
+ 'like_user_id': [{
877
+ TABLE: 'carbon_carbons',
878
+ COLUMN: 'entity_pk',
879
+ CONSTRAINT: 'carbon_likes_carbon_carbons_entity_pk_fk',
880
+ },],'like_entity_id': [{
881
+ TABLE: 'carbon_carbons',
882
+ COLUMN: 'entity_pk',
883
+ CONSTRAINT: 'carbon_likes_carbon_carbons_entity_pk_fk2',
884
+ },],
885
+ },
886
+ TABLE_REFERENCED_BY: {
887
+
888
+ },
889
+ REST_STATE_OPERATIONS: {
890
+ PUT: putStateLikes,
891
+ POST: postStateLikes,
892
+ DELETE: deleteStateLikes,
893
+ },
894
+ }
895
+
896
+ export interface iLocation_References {
897
+ 'entity_reference'?: string;
898
+ 'location_reference'?: string;
899
+ 'location_time'?: string;
900
+ }
901
+
902
+ interface iDefineLocation_References {
903
+ 'ENTITY_REFERENCE': string;
904
+ 'LOCATION_REFERENCE': string;
905
+ 'LOCATION_TIME': string;
906
+ }
907
+
908
+ export const location_references: C6RestfulModel<RestTableNames> & iDefineLocation_References = {
909
+ TABLE_NAME: 'carbon_location_references',
910
+ ENTITY_REFERENCE: 'carbon_location_references.entity_reference',
911
+ LOCATION_REFERENCE: 'carbon_location_references.location_reference',
912
+ LOCATION_TIME: 'carbon_location_references.location_time',
913
+ PRIMARY: [
914
+ ],
915
+ PRIMARY_SHORT: [
916
+ ],
917
+ COLUMNS: {
918
+ 'carbon_location_references.entity_reference': 'entity_reference',
919
+ 'carbon_location_references.location_reference': 'location_reference',
920
+ 'carbon_location_references.location_time': 'location_time',
921
+ },
922
+ TYPE_VALIDATION: {
923
+ 'carbon_location_references.entity_reference': {
924
+ MYSQL_TYPE: 'binary',
925
+ MAX_LENGTH: '16',
926
+ AUTO_INCREMENT: false,
927
+ SKIP_COLUMN_IN_POST: false
928
+ },
929
+ 'carbon_location_references.location_reference': {
930
+ MYSQL_TYPE: 'binary',
931
+ MAX_LENGTH: '16',
932
+ AUTO_INCREMENT: false,
933
+ SKIP_COLUMN_IN_POST: false
934
+ },
935
+ 'carbon_location_references.location_time': {
936
+ MYSQL_TYPE: 'datetime',
937
+ MAX_LENGTH: '',
938
+ AUTO_INCREMENT: false,
939
+ SKIP_COLUMN_IN_POST: false
940
+ },
941
+ },
942
+ REGEX_VALIDATION: {
943
+ },
944
+ TABLE_REFERENCES: {
945
+ 'entity_reference': [{
946
+ TABLE: 'carbon_carbons',
947
+ COLUMN: 'entity_pk',
948
+ CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk',
949
+ },],'location_reference': [{
950
+ TABLE: 'carbon_carbons',
951
+ COLUMN: 'entity_pk',
952
+ CONSTRAINT: 'carbon_location_references_carbons_entity_pk_fk_2',
953
+ },],
954
+ },
955
+ TABLE_REFERENCED_BY: {
956
+
957
+ },
958
+ REST_STATE_OPERATIONS: {
959
+ PUT: putStateLocation_References,
960
+ POST: postStateLocation_References,
961
+ DELETE: deleteStateLocation_References,
962
+ },
963
+ }
964
+
965
+ export interface iLocations {
966
+ 'entity_id'?: string;
967
+ 'latitude'?: string;
968
+ 'longitude'?: string;
969
+ 'street'?: string;
970
+ 'city'?: string;
971
+ 'state'?: string;
972
+ 'elevation'?: string;
973
+ 'zip'?: number;
974
+ }
975
+
976
+ interface iDefineLocations {
977
+ 'ENTITY_ID': string;
978
+ 'LATITUDE': string;
979
+ 'LONGITUDE': string;
980
+ 'STREET': string;
981
+ 'CITY': string;
982
+ 'STATE': string;
983
+ 'ELEVATION': string;
984
+ 'ZIP': string;
985
+ }
986
+
987
+ export const locations: C6RestfulModel<RestTableNames> & iDefineLocations = {
988
+ TABLE_NAME: 'carbon_locations',
989
+ ENTITY_ID: 'carbon_locations.entity_id',
990
+ LATITUDE: 'carbon_locations.latitude',
991
+ LONGITUDE: 'carbon_locations.longitude',
992
+ STREET: 'carbon_locations.street',
993
+ CITY: 'carbon_locations.city',
994
+ STATE: 'carbon_locations.state',
995
+ ELEVATION: 'carbon_locations.elevation',
996
+ ZIP: 'carbon_locations.zip',
997
+ PRIMARY: [
998
+ 'carbon_locations.entity_id',
999
+ ],
1000
+ PRIMARY_SHORT: [
1001
+ 'entity_id',
1002
+ ],
1003
+ COLUMNS: {
1004
+ 'carbon_locations.entity_id': 'entity_id',
1005
+ 'carbon_locations.latitude': 'latitude',
1006
+ 'carbon_locations.longitude': 'longitude',
1007
+ 'carbon_locations.street': 'street',
1008
+ 'carbon_locations.city': 'city',
1009
+ 'carbon_locations.state': 'state',
1010
+ 'carbon_locations.elevation': 'elevation',
1011
+ 'carbon_locations.zip': 'zip',
1012
+ },
1013
+ TYPE_VALIDATION: {
1014
+ 'carbon_locations.entity_id': {
1015
+ MYSQL_TYPE: 'binary',
1016
+ MAX_LENGTH: '16',
1017
+ AUTO_INCREMENT: false,
1018
+ SKIP_COLUMN_IN_POST: false
1019
+ },
1020
+ 'carbon_locations.latitude': {
1021
+ MYSQL_TYPE: 'varchar',
1022
+ MAX_LENGTH: '225',
1023
+ AUTO_INCREMENT: false,
1024
+ SKIP_COLUMN_IN_POST: false
1025
+ },
1026
+ 'carbon_locations.longitude': {
1027
+ MYSQL_TYPE: 'varchar',
1028
+ MAX_LENGTH: '225',
1029
+ AUTO_INCREMENT: false,
1030
+ SKIP_COLUMN_IN_POST: false
1031
+ },
1032
+ 'carbon_locations.street': {
1033
+ MYSQL_TYPE: 'varchar',
1034
+ MAX_LENGTH: '225',
1035
+ AUTO_INCREMENT: false,
1036
+ SKIP_COLUMN_IN_POST: false
1037
+ },
1038
+ 'carbon_locations.city': {
1039
+ MYSQL_TYPE: 'varchar',
1040
+ MAX_LENGTH: '40',
1041
+ AUTO_INCREMENT: false,
1042
+ SKIP_COLUMN_IN_POST: false
1043
+ },
1044
+ 'carbon_locations.state': {
1045
+ MYSQL_TYPE: 'varchar',
1046
+ MAX_LENGTH: '10',
1047
+ AUTO_INCREMENT: false,
1048
+ SKIP_COLUMN_IN_POST: false
1049
+ },
1050
+ 'carbon_locations.elevation': {
1051
+ MYSQL_TYPE: 'varchar',
1052
+ MAX_LENGTH: '40',
1053
+ AUTO_INCREMENT: false,
1054
+ SKIP_COLUMN_IN_POST: false
1055
+ },
1056
+ 'carbon_locations.zip': {
1057
+ MYSQL_TYPE: 'int',
1058
+ MAX_LENGTH: '',
1059
+ AUTO_INCREMENT: false,
1060
+ SKIP_COLUMN_IN_POST: false
1061
+ },
1062
+ },
1063
+ REGEX_VALIDATION: {
1064
+ },
1065
+ TABLE_REFERENCES: {
1066
+ 'entity_id': [{
1067
+ TABLE: 'carbon_carbons',
1068
+ COLUMN: 'entity_pk',
1069
+ CONSTRAINT: 'entity_location_entity_entity_pk_fk',
1070
+ },],
1071
+ },
1072
+ TABLE_REFERENCED_BY: {
1073
+
1074
+ },
1075
+ REST_STATE_OPERATIONS: {
1076
+ PUT: putStateLocations,
1077
+ POST: postStateLocations,
1078
+ DELETE: deleteStateLocations,
1079
+ },
1080
+ }
1081
+
1082
+ export interface iPhotos {
1083
+ 'parent_id'?: string;
1084
+ 'photo_id'?: string;
1085
+ 'user_id'?: string;
1086
+ 'photo_src'?: string;
1087
+ 'photo_description'?: string;
1088
+ 'photo_upload_date'?: string;
1089
+ }
1090
+
1091
+ interface iDefinePhotos {
1092
+ 'PARENT_ID': string;
1093
+ 'PHOTO_ID': string;
1094
+ 'USER_ID': string;
1095
+ 'PHOTO_SRC': string;
1096
+ 'PHOTO_DESCRIPTION': string;
1097
+ 'PHOTO_UPLOAD_DATE': string;
1098
+ }
1099
+
1100
+ export const photos: C6RestfulModel<RestTableNames> & iDefinePhotos = {
1101
+ TABLE_NAME: 'carbon_photos',
1102
+ PARENT_ID: 'carbon_photos.parent_id',
1103
+ PHOTO_ID: 'carbon_photos.photo_id',
1104
+ USER_ID: 'carbon_photos.user_id',
1105
+ PHOTO_SRC: 'carbon_photos.photo_src',
1106
+ PHOTO_DESCRIPTION: 'carbon_photos.photo_description',
1107
+ PHOTO_UPLOAD_DATE: 'carbon_photos.photo_upload_date',
1108
+ PRIMARY: [
1109
+ 'carbon_photos.photo_id',
1110
+ ],
1111
+ PRIMARY_SHORT: [
1112
+ 'photo_id',
1113
+ ],
1114
+ COLUMNS: {
1115
+ 'carbon_photos.parent_id': 'parent_id',
1116
+ 'carbon_photos.photo_id': 'photo_id',
1117
+ 'carbon_photos.user_id': 'user_id',
1118
+ 'carbon_photos.photo_src': 'photo_src',
1119
+ 'carbon_photos.photo_description': 'photo_description',
1120
+ 'carbon_photos.photo_upload_date': 'photo_upload_date',
1121
+ },
1122
+ TYPE_VALIDATION: {
1123
+ 'carbon_photos.parent_id': {
1124
+ MYSQL_TYPE: 'binary',
1125
+ MAX_LENGTH: '16',
1126
+ AUTO_INCREMENT: false,
1127
+ SKIP_COLUMN_IN_POST: false
1128
+ },
1129
+ 'carbon_photos.photo_id': {
1130
+ MYSQL_TYPE: 'binary',
1131
+ MAX_LENGTH: '16',
1132
+ AUTO_INCREMENT: false,
1133
+ SKIP_COLUMN_IN_POST: false
1134
+ },
1135
+ 'carbon_photos.user_id': {
1136
+ MYSQL_TYPE: 'binary',
1137
+ MAX_LENGTH: '16',
1138
+ AUTO_INCREMENT: false,
1139
+ SKIP_COLUMN_IN_POST: false
1140
+ },
1141
+ 'carbon_photos.photo_src': {
1142
+ MYSQL_TYPE: 'longblob',
1143
+ MAX_LENGTH: '',
1144
+ AUTO_INCREMENT: false,
1145
+ SKIP_COLUMN_IN_POST: false
1146
+ },
1147
+ 'carbon_photos.photo_description': {
1148
+ MYSQL_TYPE: 'text',
1149
+ MAX_LENGTH: '',
1150
+ AUTO_INCREMENT: false,
1151
+ SKIP_COLUMN_IN_POST: true
1152
+ },
1153
+ 'carbon_photos.photo_upload_date': {
1154
+ MYSQL_TYPE: 'datetime',
1155
+ MAX_LENGTH: '',
1156
+ AUTO_INCREMENT: false,
1157
+ SKIP_COLUMN_IN_POST: false
1158
+ },
1159
+ },
1160
+ REGEX_VALIDATION: {
1161
+ },
1162
+ TABLE_REFERENCES: {
1163
+ 'photo_id': [{
1164
+ TABLE: 'carbon_carbons',
1165
+ COLUMN: 'entity_pk',
1166
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk',
1167
+ },],'parent_id': [{
1168
+ TABLE: 'carbon_carbons',
1169
+ COLUMN: 'entity_pk',
1170
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk2',
1171
+ },],'user_id': [{
1172
+ TABLE: 'carbon_carbons',
1173
+ COLUMN: 'entity_pk',
1174
+ CONSTRAINT: 'carbon_photos_carbon_carbons_entity_pk_fk3',
1175
+ },],
1176
+ },
1177
+ TABLE_REFERENCED_BY: {
1178
+
1179
+ },
1180
+ REST_STATE_OPERATIONS: {
1181
+ PUT: putStatePhotos,
1182
+ POST: postStatePhotos,
1183
+ DELETE: deleteStatePhotos,
1184
+ },
1185
+ }
1186
+
1187
+ export interface iPosts {
1188
+ 'post_id'?: string;
1189
+ 'post_data'?: string;
1190
+ 'post_author'?: string;
1191
+ 'post_status'?: string;
1192
+ 'post_created_datetime'?: string;
1193
+ 'post_project_id'?: string;
1194
+ 'post_parent_id'?: string;
1195
+ }
1196
+
1197
+ interface iDefinePosts {
1198
+ 'POST_ID': string;
1199
+ 'POST_DATA': string;
1200
+ 'POST_AUTHOR': string;
1201
+ 'POST_STATUS': string;
1202
+ 'POST_CREATED_DATETIME': string;
1203
+ 'POST_PROJECT_ID': string;
1204
+ 'POST_PARENT_ID': string;
1205
+ }
1206
+
1207
+ export const posts: C6RestfulModel<RestTableNames> & iDefinePosts = {
1208
+ TABLE_NAME: 'carbon_posts',
1209
+ POST_ID: 'carbon_posts.post_id',
1210
+ POST_DATA: 'carbon_posts.post_data',
1211
+ POST_AUTHOR: 'carbon_posts.post_author',
1212
+ POST_STATUS: 'carbon_posts.post_status',
1213
+ POST_CREATED_DATETIME: 'carbon_posts.post_created_datetime',
1214
+ POST_PROJECT_ID: 'carbon_posts.post_project_id',
1215
+ POST_PARENT_ID: 'carbon_posts.post_parent_id',
1216
+ PRIMARY: [
1217
+ 'carbon_posts.post_id',
1218
+ ],
1219
+ PRIMARY_SHORT: [
1220
+ 'post_id',
1221
+ ],
1222
+ COLUMNS: {
1223
+ 'carbon_posts.post_id': 'post_id',
1224
+ 'carbon_posts.post_data': 'post_data',
1225
+ 'carbon_posts.post_author': 'post_author',
1226
+ 'carbon_posts.post_status': 'post_status',
1227
+ 'carbon_posts.post_created_datetime': 'post_created_datetime',
1228
+ 'carbon_posts.post_project_id': 'post_project_id',
1229
+ 'carbon_posts.post_parent_id': 'post_parent_id',
1230
+ },
1231
+ TYPE_VALIDATION: {
1232
+ 'carbon_posts.post_id': {
1233
+ MYSQL_TYPE: 'binary',
1234
+ MAX_LENGTH: '16',
1235
+ AUTO_INCREMENT: false,
1236
+ SKIP_COLUMN_IN_POST: false
1237
+ },
1238
+ 'carbon_posts.post_data': {
1239
+ MYSQL_TYPE: 'blob',
1240
+ MAX_LENGTH: '',
1241
+ AUTO_INCREMENT: false,
1242
+ SKIP_COLUMN_IN_POST: true
1243
+ },
1244
+ 'carbon_posts.post_author': {
1245
+ MYSQL_TYPE: 'binary',
1246
+ MAX_LENGTH: '16',
1247
+ AUTO_INCREMENT: false,
1248
+ SKIP_COLUMN_IN_POST: false
1249
+ },
1250
+ 'carbon_posts.post_status': {
1251
+ MYSQL_TYPE: 'varchar',
1252
+ MAX_LENGTH: '16',
1253
+ AUTO_INCREMENT: false,
1254
+ SKIP_COLUMN_IN_POST: false
1255
+ },
1256
+ 'carbon_posts.post_created_datetime': {
1257
+ MYSQL_TYPE: 'datetime',
1258
+ MAX_LENGTH: '',
1259
+ AUTO_INCREMENT: false,
1260
+ SKIP_COLUMN_IN_POST: false
1261
+ },
1262
+ 'carbon_posts.post_project_id': {
1263
+ MYSQL_TYPE: 'binary',
1264
+ MAX_LENGTH: '16',
1265
+ AUTO_INCREMENT: false,
1266
+ SKIP_COLUMN_IN_POST: false
1267
+ },
1268
+ 'carbon_posts.post_parent_id': {
1269
+ MYSQL_TYPE: 'binary',
1270
+ MAX_LENGTH: '16',
1271
+ AUTO_INCREMENT: false,
1272
+ SKIP_COLUMN_IN_POST: false
1273
+ },
1274
+ },
1275
+ REGEX_VALIDATION: {
1276
+ },
1277
+ TABLE_REFERENCES: {
1278
+ 'post_id': [{
1279
+ TABLE: 'carbon_carbons',
1280
+ COLUMN: 'entity_pk',
1281
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk',
1282
+ },],'post_author': [{
1283
+ TABLE: 'carbon_carbons',
1284
+ COLUMN: 'entity_pk',
1285
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk2',
1286
+ },],'post_project_id': [{
1287
+ TABLE: 'carbon_carbons',
1288
+ COLUMN: 'entity_pk',
1289
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk3',
1290
+ },],'post_parent_id': [{
1291
+ TABLE: 'carbon_carbons',
1292
+ COLUMN: 'entity_pk',
1293
+ CONSTRAINT: 'carbon_posts_carbon_carbons_entity_pk_fk4',
1294
+ },],
1295
+ },
1296
+ TABLE_REFERENCED_BY: {
1297
+
1298
+ },
1299
+ REST_STATE_OPERATIONS: {
1300
+ PUT: putStatePosts,
1301
+ POST: postStatePosts,
1302
+ DELETE: deleteStatePosts,
1303
+ },
1304
+ }
1305
+
1306
+ export interface iProjects {
1307
+ 'project_id'?: string;
1308
+ 'project_name'?: string;
1309
+ 'project_start_date'?: string;
1310
+ 'project_end_date'?: string;
1311
+ 'project_description'?: string;
1312
+ 'project_leader'?: string;
1313
+ 'project_cost'?: number;
1314
+ 'project_overview_top'?: string;
1315
+ 'project_overview_bottom'?: string;
1316
+ 'project_ends'?: string;
1317
+ }
1318
+
1319
+ interface iDefineProjects {
1320
+ 'PROJECT_ID': string;
1321
+ 'PROJECT_NAME': string;
1322
+ 'PROJECT_START_DATE': string;
1323
+ 'PROJECT_END_DATE': string;
1324
+ 'PROJECT_DESCRIPTION': string;
1325
+ 'PROJECT_LEADER': string;
1326
+ 'PROJECT_COST': string;
1327
+ 'PROJECT_OVERVIEW_TOP': string;
1328
+ 'PROJECT_OVERVIEW_BOTTOM': string;
1329
+ 'PROJECT_ENDS': string;
1330
+ }
1331
+
1332
+ export const projects: C6RestfulModel<RestTableNames> & iDefineProjects = {
1333
+ TABLE_NAME: 'carbon_projects',
1334
+ PROJECT_ID: 'carbon_projects.project_id',
1335
+ PROJECT_NAME: 'carbon_projects.project_name',
1336
+ PROJECT_START_DATE: 'carbon_projects.project_start_date',
1337
+ PROJECT_END_DATE: 'carbon_projects.project_end_date',
1338
+ PROJECT_DESCRIPTION: 'carbon_projects.project_description',
1339
+ PROJECT_LEADER: 'carbon_projects.project_leader',
1340
+ PROJECT_COST: 'carbon_projects.project_cost',
1341
+ PROJECT_OVERVIEW_TOP: 'carbon_projects.project_overview_top',
1342
+ PROJECT_OVERVIEW_BOTTOM: 'carbon_projects.project_overview_bottom',
1343
+ PROJECT_ENDS: 'carbon_projects.project_ends',
1344
+ PRIMARY: [
1345
+ 'carbon_projects.project_id',
1346
+ ],
1347
+ PRIMARY_SHORT: [
1348
+ 'project_id',
1349
+ ],
1350
+ COLUMNS: {
1351
+ 'carbon_projects.project_id': 'project_id',
1352
+ 'carbon_projects.project_name': 'project_name',
1353
+ 'carbon_projects.project_start_date': 'project_start_date',
1354
+ 'carbon_projects.project_end_date': 'project_end_date',
1355
+ 'carbon_projects.project_description': 'project_description',
1356
+ 'carbon_projects.project_leader': 'project_leader',
1357
+ 'carbon_projects.project_cost': 'project_cost',
1358
+ 'carbon_projects.project_overview_top': 'project_overview_top',
1359
+ 'carbon_projects.project_overview_bottom': 'project_overview_bottom',
1360
+ 'carbon_projects.project_ends': 'project_ends',
1361
+ },
1362
+ TYPE_VALIDATION: {
1363
+ 'carbon_projects.project_id': {
1364
+ MYSQL_TYPE: 'binary',
1365
+ MAX_LENGTH: '16',
1366
+ AUTO_INCREMENT: false,
1367
+ SKIP_COLUMN_IN_POST: false
1368
+ },
1369
+ 'carbon_projects.project_name': {
1370
+ MYSQL_TYPE: 'varchar',
1371
+ MAX_LENGTH: '255',
1372
+ AUTO_INCREMENT: false,
1373
+ SKIP_COLUMN_IN_POST: false
1374
+ },
1375
+ 'carbon_projects.project_start_date': {
1376
+ MYSQL_TYPE: 'datetime',
1377
+ MAX_LENGTH: '',
1378
+ AUTO_INCREMENT: false,
1379
+ SKIP_COLUMN_IN_POST: false
1380
+ },
1381
+ 'carbon_projects.project_end_date': {
1382
+ MYSQL_TYPE: 'datetime',
1383
+ MAX_LENGTH: '',
1384
+ AUTO_INCREMENT: false,
1385
+ SKIP_COLUMN_IN_POST: false
1386
+ },
1387
+ 'carbon_projects.project_description': {
1388
+ MYSQL_TYPE: 'text',
1389
+ MAX_LENGTH: '',
1390
+ AUTO_INCREMENT: false,
1391
+ SKIP_COLUMN_IN_POST: true
1392
+ },
1393
+ 'carbon_projects.project_leader': {
1394
+ MYSQL_TYPE: 'binary',
1395
+ MAX_LENGTH: '16',
1396
+ AUTO_INCREMENT: false,
1397
+ SKIP_COLUMN_IN_POST: false
1398
+ },
1399
+ 'carbon_projects.project_cost': {
1400
+ MYSQL_TYPE: 'float',
1401
+ MAX_LENGTH: '',
1402
+ AUTO_INCREMENT: false,
1403
+ SKIP_COLUMN_IN_POST: false
1404
+ },
1405
+ 'carbon_projects.project_overview_top': {
1406
+ MYSQL_TYPE: 'varchar',
1407
+ MAX_LENGTH: '255',
1408
+ AUTO_INCREMENT: false,
1409
+ SKIP_COLUMN_IN_POST: false
1410
+ },
1411
+ 'carbon_projects.project_overview_bottom': {
1412
+ MYSQL_TYPE: 'varchar',
1413
+ MAX_LENGTH: '255',
1414
+ AUTO_INCREMENT: false,
1415
+ SKIP_COLUMN_IN_POST: false
1416
+ },
1417
+ 'carbon_projects.project_ends': {
1418
+ MYSQL_TYPE: 'tinyint',
1419
+ MAX_LENGTH: '1',
1420
+ AUTO_INCREMENT: false,
1421
+ SKIP_COLUMN_IN_POST: false
1422
+ },
1423
+ },
1424
+ REGEX_VALIDATION: {
1425
+ },
1426
+ TABLE_REFERENCES: {
1427
+ 'project_id': [{
1428
+ TABLE: 'carbon_carbons',
1429
+ COLUMN: 'entity_pk',
1430
+ CONSTRAINT: 'carbon_projects_carbon_carbons_entity_pk_fk',
1431
+ },],'project_leader': [{
1432
+ TABLE: 'carbon_carbons',
1433
+ COLUMN: 'entity_pk',
1434
+ CONSTRAINT: 'carbon_projects_carbon_carbons_entity_pk_fk2',
1435
+ },],
1436
+ },
1437
+ TABLE_REFERENCED_BY: {
1438
+
1439
+ },
1440
+ REST_STATE_OPERATIONS: {
1441
+ PUT: putStateProjects,
1442
+ POST: postStateProjects,
1443
+ DELETE: deleteStateProjects,
1444
+ },
1445
+ }
1446
+
1447
+ export interface iReports {
1448
+ 'log_level'?: string;
1449
+ 'report'?: string;
1450
+ 'date'?: string;
1451
+ 'call_trace'?: string;
1452
+ }
1453
+
1454
+ interface iDefineReports {
1455
+ 'LOG_LEVEL': string;
1456
+ 'REPORT': string;
1457
+ 'DATE': string;
1458
+ 'CALL_TRACE': string;
1459
+ }
1460
+
1461
+ export const reports: C6RestfulModel<RestTableNames> & iDefineReports = {
1462
+ TABLE_NAME: 'carbon_reports',
1463
+ LOG_LEVEL: 'carbon_reports.log_level',
1464
+ REPORT: 'carbon_reports.report',
1465
+ DATE: 'carbon_reports.date',
1466
+ CALL_TRACE: 'carbon_reports.call_trace',
1467
+ PRIMARY: [
1468
+ ],
1469
+ PRIMARY_SHORT: [
1470
+ ],
1471
+ COLUMNS: {
1472
+ 'carbon_reports.log_level': 'log_level',
1473
+ 'carbon_reports.report': 'report',
1474
+ 'carbon_reports.date': 'date',
1475
+ 'carbon_reports.call_trace': 'call_trace',
1476
+ },
1477
+ TYPE_VALIDATION: {
1478
+ 'carbon_reports.log_level': {
1479
+ MYSQL_TYPE: 'varchar',
1480
+ MAX_LENGTH: '20',
1481
+ AUTO_INCREMENT: false,
1482
+ SKIP_COLUMN_IN_POST: false
1483
+ },
1484
+ 'carbon_reports.report': {
1485
+ MYSQL_TYPE: 'text',
1486
+ MAX_LENGTH: '',
1487
+ AUTO_INCREMENT: false,
1488
+ SKIP_COLUMN_IN_POST: true
1489
+ },
1490
+ 'carbon_reports.date': {
1491
+ MYSQL_TYPE: 'datetime',
1492
+ MAX_LENGTH: '',
1493
+ AUTO_INCREMENT: false,
1494
+ SKIP_COLUMN_IN_POST: false
1495
+ },
1496
+ 'carbon_reports.call_trace': {
1497
+ MYSQL_TYPE: 'text',
1498
+ MAX_LENGTH: '',
1499
+ AUTO_INCREMENT: false,
1500
+ SKIP_COLUMN_IN_POST: false
1501
+ },
1502
+ },
1503
+ REGEX_VALIDATION: {
1504
+ },
1505
+ TABLE_REFERENCES: {
1506
+
1507
+ },
1508
+ TABLE_REFERENCED_BY: {
1509
+
1510
+ },
1511
+ REST_STATE_OPERATIONS: {
1512
+ PUT: putStateReports,
1513
+ POST: postStateReports,
1514
+ DELETE: deleteStateReports,
1515
+ },
1516
+ }
1517
+
1518
+ export interface iSessions {
1519
+ 'user_id'?: string;
1520
+ 'user_ip'?: string;
1521
+ 'session_id'?: string;
1522
+ 'session_expires'?: string;
1523
+ 'session_data'?: string;
1524
+ 'user_online_status'?: string;
1525
+ }
1526
+
1527
+ interface iDefineSessions {
1528
+ 'USER_ID': string;
1529
+ 'USER_IP': string;
1530
+ 'SESSION_ID': string;
1531
+ 'SESSION_EXPIRES': string;
1532
+ 'SESSION_DATA': string;
1533
+ 'USER_ONLINE_STATUS': string;
1534
+ }
1535
+
1536
+ export const sessions: C6RestfulModel<RestTableNames> & iDefineSessions = {
1537
+ TABLE_NAME: 'carbon_sessions',
1538
+ USER_ID: 'carbon_sessions.user_id',
1539
+ USER_IP: 'carbon_sessions.user_ip',
1540
+ SESSION_ID: 'carbon_sessions.session_id',
1541
+ SESSION_EXPIRES: 'carbon_sessions.session_expires',
1542
+ SESSION_DATA: 'carbon_sessions.session_data',
1543
+ USER_ONLINE_STATUS: 'carbon_sessions.user_online_status',
1544
+ PRIMARY: [
1545
+ 'carbon_sessions.session_id',
1546
+ ],
1547
+ PRIMARY_SHORT: [
1548
+ 'session_id',
1549
+ ],
1550
+ COLUMNS: {
1551
+ 'carbon_sessions.user_id': 'user_id',
1552
+ 'carbon_sessions.user_ip': 'user_ip',
1553
+ 'carbon_sessions.session_id': 'session_id',
1554
+ 'carbon_sessions.session_expires': 'session_expires',
1555
+ 'carbon_sessions.session_data': 'session_data',
1556
+ 'carbon_sessions.user_online_status': 'user_online_status',
1557
+ },
1558
+ TYPE_VALIDATION: {
1559
+ 'carbon_sessions.user_id': {
1560
+ MYSQL_TYPE: 'binary',
1561
+ MAX_LENGTH: '16',
1562
+ AUTO_INCREMENT: false,
1563
+ SKIP_COLUMN_IN_POST: false
1564
+ },
1565
+ 'carbon_sessions.user_ip': {
1566
+ MYSQL_TYPE: 'varchar',
1567
+ MAX_LENGTH: '20',
1568
+ AUTO_INCREMENT: false,
1569
+ SKIP_COLUMN_IN_POST: false
1570
+ },
1571
+ 'carbon_sessions.session_id': {
1572
+ MYSQL_TYPE: 'varchar',
1573
+ MAX_LENGTH: '255',
1574
+ AUTO_INCREMENT: false,
1575
+ SKIP_COLUMN_IN_POST: false
1576
+ },
1577
+ 'carbon_sessions.session_expires': {
1578
+ MYSQL_TYPE: 'datetime',
1579
+ MAX_LENGTH: '',
1580
+ AUTO_INCREMENT: false,
1581
+ SKIP_COLUMN_IN_POST: false
1582
+ },
1583
+ 'carbon_sessions.session_data': {
1584
+ MYSQL_TYPE: 'text',
1585
+ MAX_LENGTH: '',
1586
+ AUTO_INCREMENT: false,
1587
+ SKIP_COLUMN_IN_POST: true
1588
+ },
1589
+ 'carbon_sessions.user_online_status': {
1590
+ MYSQL_TYPE: 'tinyint',
1591
+ MAX_LENGTH: '',
1592
+ AUTO_INCREMENT: false,
1593
+ SKIP_COLUMN_IN_POST: false
1594
+ },
1595
+ },
1596
+ REGEX_VALIDATION: {
1597
+ },
1598
+ TABLE_REFERENCES: {
1599
+
1600
+ },
1601
+ TABLE_REFERENCED_BY: {
1602
+
1603
+ },
1604
+ REST_STATE_OPERATIONS: {
1605
+ PUT: putStateSessions,
1606
+ POST: postStateSessions,
1607
+ DELETE: deleteStateSessions,
1608
+ },
1609
+ }
1610
+
1611
+ export interface iSubscription {
1612
+ 'subscription_id'?: string;
1613
+ 'subscription_to_entity_id'?: string;
1614
+ 'subscription_for_entity_id'?: string;
1615
+ 'subscription_price'?: string;
1616
+ 'subscription_start_date'?: string;
1617
+ 'subscription_end_date'?: string;
1618
+ 'subscription_transaction_id'?: string;
1619
+ }
1620
+
1621
+ interface iDefineSubscription {
1622
+ 'SUBSCRIPTION_ID': string;
1623
+ 'SUBSCRIPTION_TO_ENTITY_ID': string;
1624
+ 'SUBSCRIPTION_FOR_ENTITY_ID': string;
1625
+ 'SUBSCRIPTION_PRICE': string;
1626
+ 'SUBSCRIPTION_START_DATE': string;
1627
+ 'SUBSCRIPTION_END_DATE': string;
1628
+ 'SUBSCRIPTION_TRANSACTION_ID': string;
1629
+ }
1630
+
1631
+ export const subscription: C6RestfulModel<RestTableNames> & iDefineSubscription = {
1632
+ TABLE_NAME: 'carbon_subscription',
1633
+ SUBSCRIPTION_ID: 'carbon_subscription.subscription_id',
1634
+ SUBSCRIPTION_TO_ENTITY_ID: 'carbon_subscription.subscription_to_entity_id',
1635
+ SUBSCRIPTION_FOR_ENTITY_ID: 'carbon_subscription.subscription_for_entity_id',
1636
+ SUBSCRIPTION_PRICE: 'carbon_subscription.subscription_price',
1637
+ SUBSCRIPTION_START_DATE: 'carbon_subscription.subscription_start_date',
1638
+ SUBSCRIPTION_END_DATE: 'carbon_subscription.subscription_end_date',
1639
+ SUBSCRIPTION_TRANSACTION_ID: 'carbon_subscription.subscription_transaction_id',
1640
+ PRIMARY: [
1641
+ 'carbon_subscription.subscription_id',
1642
+ ],
1643
+ PRIMARY_SHORT: [
1644
+ 'subscription_id',
1645
+ ],
1646
+ COLUMNS: {
1647
+ 'carbon_subscription.subscription_id': 'subscription_id',
1648
+ 'carbon_subscription.subscription_to_entity_id': 'subscription_to_entity_id',
1649
+ 'carbon_subscription.subscription_for_entity_id': 'subscription_for_entity_id',
1650
+ 'carbon_subscription.subscription_price': 'subscription_price',
1651
+ 'carbon_subscription.subscription_start_date': 'subscription_start_date',
1652
+ 'carbon_subscription.subscription_end_date': 'subscription_end_date',
1653
+ 'carbon_subscription.subscription_transaction_id': 'subscription_transaction_id',
1654
+ },
1655
+ TYPE_VALIDATION: {
1656
+ 'carbon_subscription.subscription_id': {
1657
+ MYSQL_TYPE: 'binary',
1658
+ MAX_LENGTH: '16',
1659
+ AUTO_INCREMENT: false,
1660
+ SKIP_COLUMN_IN_POST: false
1661
+ },
1662
+ 'carbon_subscription.subscription_to_entity_id': {
1663
+ MYSQL_TYPE: 'binary',
1664
+ MAX_LENGTH: '16',
1665
+ AUTO_INCREMENT: false,
1666
+ SKIP_COLUMN_IN_POST: false
1667
+ },
1668
+ 'carbon_subscription.subscription_for_entity_id': {
1669
+ MYSQL_TYPE: 'binary',
1670
+ MAX_LENGTH: '16',
1671
+ AUTO_INCREMENT: false,
1672
+ SKIP_COLUMN_IN_POST: false
1673
+ },
1674
+ 'carbon_subscription.subscription_price': {
1675
+ MYSQL_TYPE: 'varchar',
1676
+ MAX_LENGTH: '16',
1677
+ AUTO_INCREMENT: false,
1678
+ SKIP_COLUMN_IN_POST: false
1679
+ },
1680
+ 'carbon_subscription.subscription_start_date': {
1681
+ MYSQL_TYPE: 'datetime',
1682
+ MAX_LENGTH: '',
1683
+ AUTO_INCREMENT: false,
1684
+ SKIP_COLUMN_IN_POST: false
1685
+ },
1686
+ 'carbon_subscription.subscription_end_date': {
1687
+ MYSQL_TYPE: 'datetime',
1688
+ MAX_LENGTH: '',
1689
+ AUTO_INCREMENT: false,
1690
+ SKIP_COLUMN_IN_POST: false
1691
+ },
1692
+ 'carbon_subscription.subscription_transaction_id': {
1693
+ MYSQL_TYPE: 'varchar',
1694
+ MAX_LENGTH: '255',
1695
+ AUTO_INCREMENT: false,
1696
+ SKIP_COLUMN_IN_POST: false
1697
+ },
1698
+ },
1699
+ REGEX_VALIDATION: {
1700
+ },
1701
+ TABLE_REFERENCES: {
1702
+ 'subscription_id': [{
1703
+ TABLE: 'carbon_carbons',
1704
+ COLUMN: 'entity_pk',
1705
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk',
1706
+ },],'subscription_to_entity_id': [{
1707
+ TABLE: 'carbon_carbons',
1708
+ COLUMN: 'entity_pk',
1709
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk2',
1710
+ },],'subscription_for_entity_id': [{
1711
+ TABLE: 'carbon_carbons',
1712
+ COLUMN: 'entity_pk',
1713
+ CONSTRAINT: 'carbon_subscription_carbon_carbons_entity_pk_fk3',
1714
+ },],
1715
+ },
1716
+ TABLE_REFERENCED_BY: {
1717
+
1718
+ },
1719
+ REST_STATE_OPERATIONS: {
1720
+ PUT: putStateSubscription,
1721
+ POST: postStateSubscription,
1722
+ DELETE: deleteStateSubscription,
1723
+ },
1724
+ }
1725
+
1726
+ export interface iUser_Followers {
1727
+ 'follower_table_id'?: string;
1728
+ 'follows_user_id'?: string;
1729
+ 'user_id'?: string;
1730
+ }
1731
+
1732
+ interface iDefineUser_Followers {
1733
+ 'FOLLOWER_TABLE_ID': string;
1734
+ 'FOLLOWS_USER_ID': string;
1735
+ 'USER_ID': string;
1736
+ }
1737
+
1738
+ export const user_followers: C6RestfulModel<RestTableNames> & iDefineUser_Followers = {
1739
+ TABLE_NAME: 'carbon_user_followers',
1740
+ FOLLOWER_TABLE_ID: 'carbon_user_followers.follower_table_id',
1741
+ FOLLOWS_USER_ID: 'carbon_user_followers.follows_user_id',
1742
+ USER_ID: 'carbon_user_followers.user_id',
1743
+ PRIMARY: [
1744
+ 'carbon_user_followers.follower_table_id',
1745
+ ],
1746
+ PRIMARY_SHORT: [
1747
+ 'follower_table_id',
1748
+ ],
1749
+ COLUMNS: {
1750
+ 'carbon_user_followers.follower_table_id': 'follower_table_id',
1751
+ 'carbon_user_followers.follows_user_id': 'follows_user_id',
1752
+ 'carbon_user_followers.user_id': 'user_id',
1753
+ },
1754
+ TYPE_VALIDATION: {
1755
+ 'carbon_user_followers.follower_table_id': {
1756
+ MYSQL_TYPE: 'binary',
1757
+ MAX_LENGTH: '16',
1758
+ AUTO_INCREMENT: false,
1759
+ SKIP_COLUMN_IN_POST: false
1760
+ },
1761
+ 'carbon_user_followers.follows_user_id': {
1762
+ MYSQL_TYPE: 'binary',
1763
+ MAX_LENGTH: '16',
1764
+ AUTO_INCREMENT: false,
1765
+ SKIP_COLUMN_IN_POST: false
1766
+ },
1767
+ 'carbon_user_followers.user_id': {
1768
+ MYSQL_TYPE: 'binary',
1769
+ MAX_LENGTH: '16',
1770
+ AUTO_INCREMENT: false,
1771
+ SKIP_COLUMN_IN_POST: false
1772
+ },
1773
+ },
1774
+ REGEX_VALIDATION: {
1775
+ },
1776
+ TABLE_REFERENCES: {
1777
+ 'follower_table_id': [{
1778
+ TABLE: 'carbon_carbons',
1779
+ COLUMN: 'entity_pk',
1780
+ CONSTRAINT: 'carbon_user_followers_carbons_entity_pk_fk',
1781
+ },],'follows_user_id': [{
1782
+ TABLE: 'carbon_carbons',
1783
+ COLUMN: 'entity_pk',
1784
+ CONSTRAINT: 'followers_entity_entity_follows_pk_fk',
1785
+ },],'user_id': [{
1786
+ TABLE: 'carbon_carbons',
1787
+ COLUMN: 'entity_pk',
1788
+ CONSTRAINT: 'followers_entity_followers_pk_fk',
1789
+ },],
1790
+ },
1791
+ TABLE_REFERENCED_BY: {
1792
+
1793
+ },
1794
+ REST_STATE_OPERATIONS: {
1795
+ PUT: putStateUser_Followers,
1796
+ POST: postStateUser_Followers,
1797
+ DELETE: deleteStateUser_Followers,
1798
+ },
1799
+ }
1800
+
1801
+ export interface iUser_Groups {
1802
+ 'group_id'?: string;
1803
+ 'user_id'?: string;
1804
+ }
1805
+
1806
+ interface iDefineUser_Groups {
1807
+ 'GROUP_ID': string;
1808
+ 'USER_ID': string;
1809
+ }
1810
+
1811
+ export const user_groups: C6RestfulModel<RestTableNames> & iDefineUser_Groups = {
1812
+ TABLE_NAME: 'carbon_user_groups',
1813
+ GROUP_ID: 'carbon_user_groups.group_id',
1814
+ USER_ID: 'carbon_user_groups.user_id',
1815
+ PRIMARY: [
1816
+ ],
1817
+ PRIMARY_SHORT: [
1818
+ ],
1819
+ COLUMNS: {
1820
+ 'carbon_user_groups.group_id': 'group_id',
1821
+ 'carbon_user_groups.user_id': 'user_id',
1822
+ },
1823
+ TYPE_VALIDATION: {
1824
+ 'carbon_user_groups.group_id': {
1825
+ MYSQL_TYPE: 'binary',
1826
+ MAX_LENGTH: '16',
1827
+ AUTO_INCREMENT: false,
1828
+ SKIP_COLUMN_IN_POST: false
1829
+ },
1830
+ 'carbon_user_groups.user_id': {
1831
+ MYSQL_TYPE: 'binary',
1832
+ MAX_LENGTH: '16',
1833
+ AUTO_INCREMENT: false,
1834
+ SKIP_COLUMN_IN_POST: false
1835
+ },
1836
+ },
1837
+ REGEX_VALIDATION: {
1838
+ },
1839
+ TABLE_REFERENCES: {
1840
+ 'group_id': [{
1841
+ TABLE: 'carbon_carbons',
1842
+ COLUMN: 'entity_pk',
1843
+ CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk',
1844
+ },],'user_id': [{
1845
+ TABLE: 'carbon_carbons',
1846
+ COLUMN: 'entity_pk',
1847
+ CONSTRAINT: 'carbon_user_groups_carbons_entity_pk_fk_2',
1848
+ },],
1849
+ },
1850
+ TABLE_REFERENCED_BY: {
1851
+
1852
+ },
1853
+ REST_STATE_OPERATIONS: {
1854
+ PUT: putStateUser_Groups,
1855
+ POST: postStateUser_Groups,
1856
+ DELETE: deleteStateUser_Groups,
1857
+ },
1858
+ }
1859
+
1860
+ export interface iUser_Messages {
1861
+ 'message_id'?: string;
1862
+ 'from_user_id'?: string;
1863
+ 'to_user_id'?: string;
1864
+ 'message'?: string;
1865
+ 'message_read'?: string;
1866
+ 'creation_date'?: string;
1867
+ }
1868
+
1869
+ interface iDefineUser_Messages {
1870
+ 'MESSAGE_ID': string;
1871
+ 'FROM_USER_ID': string;
1872
+ 'TO_USER_ID': string;
1873
+ 'MESSAGE': string;
1874
+ 'MESSAGE_READ': string;
1875
+ 'CREATION_DATE': string;
1876
+ }
1877
+
1878
+ export const user_messages: C6RestfulModel<RestTableNames> & iDefineUser_Messages = {
1879
+ TABLE_NAME: 'carbon_user_messages',
1880
+ MESSAGE_ID: 'carbon_user_messages.message_id',
1881
+ FROM_USER_ID: 'carbon_user_messages.from_user_id',
1882
+ TO_USER_ID: 'carbon_user_messages.to_user_id',
1883
+ MESSAGE: 'carbon_user_messages.message',
1884
+ MESSAGE_READ: 'carbon_user_messages.message_read',
1885
+ CREATION_DATE: 'carbon_user_messages.creation_date',
1886
+ PRIMARY: [
1887
+ 'carbon_user_messages.message_id',
1888
+ ],
1889
+ PRIMARY_SHORT: [
1890
+ 'message_id',
1891
+ ],
1892
+ COLUMNS: {
1893
+ 'carbon_user_messages.message_id': 'message_id',
1894
+ 'carbon_user_messages.from_user_id': 'from_user_id',
1895
+ 'carbon_user_messages.to_user_id': 'to_user_id',
1896
+ 'carbon_user_messages.message': 'message',
1897
+ 'carbon_user_messages.message_read': 'message_read',
1898
+ 'carbon_user_messages.creation_date': 'creation_date',
1899
+ },
1900
+ TYPE_VALIDATION: {
1901
+ 'carbon_user_messages.message_id': {
1902
+ MYSQL_TYPE: 'binary',
1903
+ MAX_LENGTH: '16',
1904
+ AUTO_INCREMENT: false,
1905
+ SKIP_COLUMN_IN_POST: false
1906
+ },
1907
+ 'carbon_user_messages.from_user_id': {
1908
+ MYSQL_TYPE: 'binary',
1909
+ MAX_LENGTH: '16',
1910
+ AUTO_INCREMENT: false,
1911
+ SKIP_COLUMN_IN_POST: false
1912
+ },
1913
+ 'carbon_user_messages.to_user_id': {
1914
+ MYSQL_TYPE: 'binary',
1915
+ MAX_LENGTH: '16',
1916
+ AUTO_INCREMENT: false,
1917
+ SKIP_COLUMN_IN_POST: false
1918
+ },
1919
+ 'carbon_user_messages.message': {
1920
+ MYSQL_TYPE: 'text',
1921
+ MAX_LENGTH: '',
1922
+ AUTO_INCREMENT: false,
1923
+ SKIP_COLUMN_IN_POST: false
1924
+ },
1925
+ 'carbon_user_messages.message_read': {
1926
+ MYSQL_TYPE: 'tinyint',
1927
+ MAX_LENGTH: '',
1928
+ AUTO_INCREMENT: false,
1929
+ SKIP_COLUMN_IN_POST: false
1930
+ },
1931
+ 'carbon_user_messages.creation_date': {
1932
+ MYSQL_TYPE: 'datetime',
1933
+ MAX_LENGTH: '',
1934
+ AUTO_INCREMENT: false,
1935
+ SKIP_COLUMN_IN_POST: false
1936
+ },
1937
+ },
1938
+ REGEX_VALIDATION: {
1939
+ },
1940
+ TABLE_REFERENCES: {
1941
+ 'from_user_id': [{
1942
+ TABLE: 'carbon_carbons',
1943
+ COLUMN: 'entity_pk',
1944
+ CONSTRAINT: 'carbon_user_messages_carbon_entity_pk_fk',
1945
+ },],'message_id': [{
1946
+ TABLE: 'carbon_carbons',
1947
+ COLUMN: 'entity_pk',
1948
+ CONSTRAINT: 'messages_entity_entity_pk_fk',
1949
+ },],'to_user_id': [{
1950
+ TABLE: 'carbon_carbons',
1951
+ COLUMN: 'entity_pk',
1952
+ CONSTRAINT: 'messages_entity_user_from_pk_fk',
1953
+ },],
1954
+ },
1955
+ TABLE_REFERENCED_BY: {
1956
+
1957
+ },
1958
+ REST_STATE_OPERATIONS: {
1959
+ PUT: putStateUser_Messages,
1960
+ POST: postStateUser_Messages,
1961
+ DELETE: deleteStateUser_Messages,
1962
+ },
1963
+ }
1964
+
1965
+ export interface iUser_Sessions {
1966
+ 'user_id'?: string;
1967
+ 'user_ip'?: string;
1968
+ 'session_id'?: string;
1969
+ 'session_expires'?: string;
1970
+ 'session_data'?: string;
1971
+ 'user_online_status'?: string;
1972
+ }
1973
+
1974
+ interface iDefineUser_Sessions {
1975
+ 'USER_ID': string;
1976
+ 'USER_IP': string;
1977
+ 'SESSION_ID': string;
1978
+ 'SESSION_EXPIRES': string;
1979
+ 'SESSION_DATA': string;
1980
+ 'USER_ONLINE_STATUS': string;
1981
+ }
1982
+
1983
+ export const user_sessions: C6RestfulModel<RestTableNames> & iDefineUser_Sessions = {
1984
+ TABLE_NAME: 'carbon_user_sessions',
1985
+ USER_ID: 'carbon_user_sessions.user_id',
1986
+ USER_IP: 'carbon_user_sessions.user_ip',
1987
+ SESSION_ID: 'carbon_user_sessions.session_id',
1988
+ SESSION_EXPIRES: 'carbon_user_sessions.session_expires',
1989
+ SESSION_DATA: 'carbon_user_sessions.session_data',
1990
+ USER_ONLINE_STATUS: 'carbon_user_sessions.user_online_status',
1991
+ PRIMARY: [
1992
+ 'carbon_user_sessions.session_id',
1993
+ ],
1994
+ PRIMARY_SHORT: [
1995
+ 'session_id',
1996
+ ],
1997
+ COLUMNS: {
1998
+ 'carbon_user_sessions.user_id': 'user_id',
1999
+ 'carbon_user_sessions.user_ip': 'user_ip',
2000
+ 'carbon_user_sessions.session_id': 'session_id',
2001
+ 'carbon_user_sessions.session_expires': 'session_expires',
2002
+ 'carbon_user_sessions.session_data': 'session_data',
2003
+ 'carbon_user_sessions.user_online_status': 'user_online_status',
2004
+ },
2005
+ TYPE_VALIDATION: {
2006
+ 'carbon_user_sessions.user_id': {
2007
+ MYSQL_TYPE: 'binary',
2008
+ MAX_LENGTH: '16',
2009
+ AUTO_INCREMENT: false,
2010
+ SKIP_COLUMN_IN_POST: false
2011
+ },
2012
+ 'carbon_user_sessions.user_ip': {
2013
+ MYSQL_TYPE: 'varchar',
2014
+ MAX_LENGTH: '60',
2015
+ AUTO_INCREMENT: false,
2016
+ SKIP_COLUMN_IN_POST: false
2017
+ },
2018
+ 'carbon_user_sessions.session_id': {
2019
+ MYSQL_TYPE: 'varchar',
2020
+ MAX_LENGTH: '255',
2021
+ AUTO_INCREMENT: false,
2022
+ SKIP_COLUMN_IN_POST: false
2023
+ },
2024
+ 'carbon_user_sessions.session_expires': {
2025
+ MYSQL_TYPE: 'datetime',
2026
+ MAX_LENGTH: '',
2027
+ AUTO_INCREMENT: false,
2028
+ SKIP_COLUMN_IN_POST: false
2029
+ },
2030
+ 'carbon_user_sessions.session_data': {
2031
+ MYSQL_TYPE: 'text',
2032
+ MAX_LENGTH: '',
2033
+ AUTO_INCREMENT: false,
2034
+ SKIP_COLUMN_IN_POST: true
2035
+ },
2036
+ 'carbon_user_sessions.user_online_status': {
2037
+ MYSQL_TYPE: 'tinyint',
2038
+ MAX_LENGTH: '',
2039
+ AUTO_INCREMENT: false,
2040
+ SKIP_COLUMN_IN_POST: false
2041
+ },
2042
+ },
2043
+ REGEX_VALIDATION: {
2044
+ },
2045
+ TABLE_REFERENCES: {
2046
+
2047
+ },
2048
+ TABLE_REFERENCED_BY: {
2049
+
2050
+ },
2051
+ REST_STATE_OPERATIONS: {
2052
+ PUT: putStateUser_Sessions,
2053
+ POST: postStateUser_Sessions,
2054
+ DELETE: deleteStateUser_Sessions,
2055
+ },
2056
+ }
2057
+
2058
+ export interface iUser_Tasks {
2059
+ 'task_id'?: string;
2060
+ 'user_id'?: string;
2061
+ 'from_id'?: string;
2062
+ 'task_name'?: string;
2063
+ 'task_description'?: string;
2064
+ 'percent_complete'?: number;
2065
+ 'start_date'?: string;
2066
+ 'end_date'?: string;
2067
+ }
2068
+
2069
+ interface iDefineUser_Tasks {
2070
+ 'TASK_ID': string;
2071
+ 'USER_ID': string;
2072
+ 'FROM_ID': string;
2073
+ 'TASK_NAME': string;
2074
+ 'TASK_DESCRIPTION': string;
2075
+ 'PERCENT_COMPLETE': string;
2076
+ 'START_DATE': string;
2077
+ 'END_DATE': string;
2078
+ }
2079
+
2080
+ export const user_tasks: C6RestfulModel<RestTableNames> & iDefineUser_Tasks = {
2081
+ TABLE_NAME: 'carbon_user_tasks',
2082
+ TASK_ID: 'carbon_user_tasks.task_id',
2083
+ USER_ID: 'carbon_user_tasks.user_id',
2084
+ FROM_ID: 'carbon_user_tasks.from_id',
2085
+ TASK_NAME: 'carbon_user_tasks.task_name',
2086
+ TASK_DESCRIPTION: 'carbon_user_tasks.task_description',
2087
+ PERCENT_COMPLETE: 'carbon_user_tasks.percent_complete',
2088
+ START_DATE: 'carbon_user_tasks.start_date',
2089
+ END_DATE: 'carbon_user_tasks.end_date',
2090
+ PRIMARY: [
2091
+ 'carbon_user_tasks.task_id',
2092
+ ],
2093
+ PRIMARY_SHORT: [
2094
+ 'task_id',
2095
+ ],
2096
+ COLUMNS: {
2097
+ 'carbon_user_tasks.task_id': 'task_id',
2098
+ 'carbon_user_tasks.user_id': 'user_id',
2099
+ 'carbon_user_tasks.from_id': 'from_id',
2100
+ 'carbon_user_tasks.task_name': 'task_name',
2101
+ 'carbon_user_tasks.task_description': 'task_description',
2102
+ 'carbon_user_tasks.percent_complete': 'percent_complete',
2103
+ 'carbon_user_tasks.start_date': 'start_date',
2104
+ 'carbon_user_tasks.end_date': 'end_date',
2105
+ },
2106
+ TYPE_VALIDATION: {
2107
+ 'carbon_user_tasks.task_id': {
2108
+ MYSQL_TYPE: 'binary',
2109
+ MAX_LENGTH: '16',
2110
+ AUTO_INCREMENT: false,
2111
+ SKIP_COLUMN_IN_POST: false
2112
+ },
2113
+ 'carbon_user_tasks.user_id': {
2114
+ MYSQL_TYPE: 'binary',
2115
+ MAX_LENGTH: '16',
2116
+ AUTO_INCREMENT: false,
2117
+ SKIP_COLUMN_IN_POST: false
2118
+ },
2119
+ 'carbon_user_tasks.from_id': {
2120
+ MYSQL_TYPE: 'binary',
2121
+ MAX_LENGTH: '16',
2122
+ AUTO_INCREMENT: false,
2123
+ SKIP_COLUMN_IN_POST: false
2124
+ },
2125
+ 'carbon_user_tasks.task_name': {
2126
+ MYSQL_TYPE: 'varchar',
2127
+ MAX_LENGTH: '40',
2128
+ AUTO_INCREMENT: false,
2129
+ SKIP_COLUMN_IN_POST: false
2130
+ },
2131
+ 'carbon_user_tasks.task_description': {
2132
+ MYSQL_TYPE: 'varchar',
2133
+ MAX_LENGTH: '225',
2134
+ AUTO_INCREMENT: false,
2135
+ SKIP_COLUMN_IN_POST: false
2136
+ },
2137
+ 'carbon_user_tasks.percent_complete': {
2138
+ MYSQL_TYPE: 'int',
2139
+ MAX_LENGTH: '',
2140
+ AUTO_INCREMENT: false,
2141
+ SKIP_COLUMN_IN_POST: false
2142
+ },
2143
+ 'carbon_user_tasks.start_date': {
2144
+ MYSQL_TYPE: 'datetime',
2145
+ MAX_LENGTH: '',
2146
+ AUTO_INCREMENT: false,
2147
+ SKIP_COLUMN_IN_POST: false
2148
+ },
2149
+ 'carbon_user_tasks.end_date': {
2150
+ MYSQL_TYPE: 'datetime',
2151
+ MAX_LENGTH: '',
2152
+ AUTO_INCREMENT: false,
2153
+ SKIP_COLUMN_IN_POST: false
2154
+ },
2155
+ },
2156
+ REGEX_VALIDATION: {
2157
+ },
2158
+ TABLE_REFERENCES: {
2159
+ 'task_id': [{
2160
+ TABLE: 'carbon_carbons',
2161
+ COLUMN: 'entity_pk',
2162
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk',
2163
+ },],'user_id': [{
2164
+ TABLE: 'carbon_carbons',
2165
+ COLUMN: 'entity_pk',
2166
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_2',
2167
+ },],'from_id': [{
2168
+ TABLE: 'carbon_carbons',
2169
+ COLUMN: 'entity_pk',
2170
+ CONSTRAINT: 'carbon_user_tasks_carbons_entity_pk_fk_3',
2171
+ },],
2172
+ },
2173
+ TABLE_REFERENCED_BY: {
2174
+
2175
+ },
2176
+ REST_STATE_OPERATIONS: {
2177
+ PUT: putStateUser_Tasks,
2178
+ POST: postStateUser_Tasks,
2179
+ DELETE: deleteStateUser_Tasks,
2180
+ },
2181
+ }
2182
+
2183
+ export interface iUsers {
2184
+ 'user_username'?: string;
2185
+ 'user_password'?: string;
2186
+ 'user_id'?: string;
2187
+ 'user_type'?: string;
2188
+ 'user_sport'?: string;
2189
+ 'user_session_id'?: string;
2190
+ 'user_facebook_id'?: string;
2191
+ 'user_first_name'?: string;
2192
+ 'user_last_name'?: string;
2193
+ 'user_profile_pic'?: string;
2194
+ 'user_profile_uri'?: string;
2195
+ 'user_cover_photo'?: string;
2196
+ 'user_birthday'?: string;
2197
+ 'user_gender'?: string;
2198
+ 'user_about_me'?: string;
2199
+ 'user_rank'?: number;
2200
+ 'user_email'?: string;
2201
+ 'user_email_code'?: string;
2202
+ 'user_email_confirmed'?: string;
2203
+ 'user_generated_string'?: string;
2204
+ 'user_membership'?: number;
2205
+ 'user_deactivated'?: string;
2206
+ 'user_last_login'?: string;
2207
+ 'user_ip'?: string;
2208
+ 'user_education_history'?: string;
2209
+ 'user_creation_date'?: string;
2210
+ 'user_education'?: string;
2211
+ 'user_notes'?: string;
2212
+ 'user_skills'?: string;
2213
+ 'user_is_moderator'?: string;
2214
+ 'user_is_administrator'?: string;
2215
+ 'user_is_caller'?: string;
2216
+ }
2217
+
2218
+ interface iDefineUsers {
2219
+ 'USER_USERNAME': string;
2220
+ 'USER_PASSWORD': string;
2221
+ 'USER_ID': string;
2222
+ 'USER_TYPE': string;
2223
+ 'USER_SPORT': string;
2224
+ 'USER_SESSION_ID': string;
2225
+ 'USER_FACEBOOK_ID': string;
2226
+ 'USER_FIRST_NAME': string;
2227
+ 'USER_LAST_NAME': string;
2228
+ 'USER_PROFILE_PIC': string;
2229
+ 'USER_PROFILE_URI': string;
2230
+ 'USER_COVER_PHOTO': string;
2231
+ 'USER_BIRTHDAY': string;
2232
+ 'USER_GENDER': string;
2233
+ 'USER_ABOUT_ME': string;
2234
+ 'USER_RANK': string;
2235
+ 'USER_EMAIL': string;
2236
+ 'USER_EMAIL_CODE': string;
2237
+ 'USER_EMAIL_CONFIRMED': string;
2238
+ 'USER_GENERATED_STRING': string;
2239
+ 'USER_MEMBERSHIP': string;
2240
+ 'USER_DEACTIVATED': string;
2241
+ 'USER_LAST_LOGIN': string;
2242
+ 'USER_IP': string;
2243
+ 'USER_EDUCATION_HISTORY': string;
2244
+ 'USER_CREATION_DATE': string;
2245
+ 'USER_EDUCATION': string;
2246
+ 'USER_NOTES': string;
2247
+ 'USER_SKILLS': string;
2248
+ 'USER_IS_MODERATOR': string;
2249
+ 'USER_IS_ADMINISTRATOR': string;
2250
+ 'USER_IS_CALLER': string;
2251
+ }
2252
+
2253
+ export const users: C6RestfulModel<RestTableNames> & iDefineUsers = {
2254
+ TABLE_NAME: 'carbon_users',
2255
+ USER_USERNAME: 'carbon_users.user_username',
2256
+ USER_PASSWORD: 'carbon_users.user_password',
2257
+ USER_ID: 'carbon_users.user_id',
2258
+ USER_TYPE: 'carbon_users.user_type',
2259
+ USER_SPORT: 'carbon_users.user_sport',
2260
+ USER_SESSION_ID: 'carbon_users.user_session_id',
2261
+ USER_FACEBOOK_ID: 'carbon_users.user_facebook_id',
2262
+ USER_FIRST_NAME: 'carbon_users.user_first_name',
2263
+ USER_LAST_NAME: 'carbon_users.user_last_name',
2264
+ USER_PROFILE_PIC: 'carbon_users.user_profile_pic',
2265
+ USER_PROFILE_URI: 'carbon_users.user_profile_uri',
2266
+ USER_COVER_PHOTO: 'carbon_users.user_cover_photo',
2267
+ USER_BIRTHDAY: 'carbon_users.user_birthday',
2268
+ USER_GENDER: 'carbon_users.user_gender',
2269
+ USER_ABOUT_ME: 'carbon_users.user_about_me',
2270
+ USER_RANK: 'carbon_users.user_rank',
2271
+ USER_EMAIL: 'carbon_users.user_email',
2272
+ USER_EMAIL_CODE: 'carbon_users.user_email_code',
2273
+ USER_EMAIL_CONFIRMED: 'carbon_users.user_email_confirmed',
2274
+ USER_GENERATED_STRING: 'carbon_users.user_generated_string',
2275
+ USER_MEMBERSHIP: 'carbon_users.user_membership',
2276
+ USER_DEACTIVATED: 'carbon_users.user_deactivated',
2277
+ USER_LAST_LOGIN: 'carbon_users.user_last_login',
2278
+ USER_IP: 'carbon_users.user_ip',
2279
+ USER_EDUCATION_HISTORY: 'carbon_users.user_education_history',
2280
+ USER_CREATION_DATE: 'carbon_users.user_creation_date',
2281
+ USER_EDUCATION: 'carbon_users.user_education',
2282
+ USER_NOTES: 'carbon_users.user_notes',
2283
+ USER_SKILLS: 'carbon_users.user_skills',
2284
+ USER_IS_MODERATOR: 'carbon_users.user_is_moderator',
2285
+ USER_IS_ADMINISTRATOR: 'carbon_users.user_is_administrator',
2286
+ USER_IS_CALLER: 'carbon_users.user_is_caller',
2287
+ PRIMARY: [
2288
+ 'carbon_users.user_id',
2289
+ ],
2290
+ PRIMARY_SHORT: [
2291
+ 'user_id',
2292
+ ],
2293
+ COLUMNS: {
2294
+ 'carbon_users.user_username': 'user_username',
2295
+ 'carbon_users.user_password': 'user_password',
2296
+ 'carbon_users.user_id': 'user_id',
2297
+ 'carbon_users.user_type': 'user_type',
2298
+ 'carbon_users.user_sport': 'user_sport',
2299
+ 'carbon_users.user_session_id': 'user_session_id',
2300
+ 'carbon_users.user_facebook_id': 'user_facebook_id',
2301
+ 'carbon_users.user_first_name': 'user_first_name',
2302
+ 'carbon_users.user_last_name': 'user_last_name',
2303
+ 'carbon_users.user_profile_pic': 'user_profile_pic',
2304
+ 'carbon_users.user_profile_uri': 'user_profile_uri',
2305
+ 'carbon_users.user_cover_photo': 'user_cover_photo',
2306
+ 'carbon_users.user_birthday': 'user_birthday',
2307
+ 'carbon_users.user_gender': 'user_gender',
2308
+ 'carbon_users.user_about_me': 'user_about_me',
2309
+ 'carbon_users.user_rank': 'user_rank',
2310
+ 'carbon_users.user_email': 'user_email',
2311
+ 'carbon_users.user_email_code': 'user_email_code',
2312
+ 'carbon_users.user_email_confirmed': 'user_email_confirmed',
2313
+ 'carbon_users.user_generated_string': 'user_generated_string',
2314
+ 'carbon_users.user_membership': 'user_membership',
2315
+ 'carbon_users.user_deactivated': 'user_deactivated',
2316
+ 'carbon_users.user_last_login': 'user_last_login',
2317
+ 'carbon_users.user_ip': 'user_ip',
2318
+ 'carbon_users.user_education_history': 'user_education_history',
2319
+ 'carbon_users.user_creation_date': 'user_creation_date',
2320
+ 'carbon_users.user_education': 'user_education',
2321
+ 'carbon_users.user_notes': 'user_notes',
2322
+ 'carbon_users.user_skills': 'user_skills',
2323
+ 'carbon_users.user_is_moderator': 'user_is_moderator',
2324
+ 'carbon_users.user_is_administrator': 'user_is_administrator',
2325
+ 'carbon_users.user_is_caller': 'user_is_caller',
2326
+ },
2327
+ TYPE_VALIDATION: {
2328
+ 'carbon_users.user_username': {
2329
+ MYSQL_TYPE: 'varchar',
2330
+ MAX_LENGTH: '100',
2331
+ AUTO_INCREMENT: false,
2332
+ SKIP_COLUMN_IN_POST: false
2333
+ },
2334
+ 'carbon_users.user_password': {
2335
+ MYSQL_TYPE: 'varchar',
2336
+ MAX_LENGTH: '225',
2337
+ AUTO_INCREMENT: false,
2338
+ SKIP_COLUMN_IN_POST: false
2339
+ },
2340
+ 'carbon_users.user_id': {
2341
+ MYSQL_TYPE: 'binary',
2342
+ MAX_LENGTH: '16',
2343
+ AUTO_INCREMENT: false,
2344
+ SKIP_COLUMN_IN_POST: false
2345
+ },
2346
+ 'carbon_users.user_type': {
2347
+ MYSQL_TYPE: 'varchar',
2348
+ MAX_LENGTH: '20',
2349
+ AUTO_INCREMENT: false,
2350
+ SKIP_COLUMN_IN_POST: false
2351
+ },
2352
+ 'carbon_users.user_sport': {
2353
+ MYSQL_TYPE: 'varchar',
2354
+ MAX_LENGTH: '20',
2355
+ AUTO_INCREMENT: false,
2356
+ SKIP_COLUMN_IN_POST: false
2357
+ },
2358
+ 'carbon_users.user_session_id': {
2359
+ MYSQL_TYPE: 'varchar',
2360
+ MAX_LENGTH: '225',
2361
+ AUTO_INCREMENT: false,
2362
+ SKIP_COLUMN_IN_POST: false
2363
+ },
2364
+ 'carbon_users.user_facebook_id': {
2365
+ MYSQL_TYPE: 'varchar',
2366
+ MAX_LENGTH: '225',
2367
+ AUTO_INCREMENT: false,
2368
+ SKIP_COLUMN_IN_POST: false
2369
+ },
2370
+ 'carbon_users.user_first_name': {
2371
+ MYSQL_TYPE: 'varchar',
2372
+ MAX_LENGTH: '25',
2373
+ AUTO_INCREMENT: false,
2374
+ SKIP_COLUMN_IN_POST: false
2375
+ },
2376
+ 'carbon_users.user_last_name': {
2377
+ MYSQL_TYPE: 'varchar',
2378
+ MAX_LENGTH: '25',
2379
+ AUTO_INCREMENT: false,
2380
+ SKIP_COLUMN_IN_POST: false
2381
+ },
2382
+ 'carbon_users.user_profile_pic': {
2383
+ MYSQL_TYPE: 'longblob',
2384
+ MAX_LENGTH: '',
2385
+ AUTO_INCREMENT: false,
2386
+ SKIP_COLUMN_IN_POST: true
2387
+ },
2388
+ 'carbon_users.user_profile_uri': {
2389
+ MYSQL_TYPE: 'varchar',
2390
+ MAX_LENGTH: '225',
2391
+ AUTO_INCREMENT: false,
2392
+ SKIP_COLUMN_IN_POST: false
2393
+ },
2394
+ 'carbon_users.user_cover_photo': {
2395
+ MYSQL_TYPE: 'longblob',
2396
+ MAX_LENGTH: '',
2397
+ AUTO_INCREMENT: false,
2398
+ SKIP_COLUMN_IN_POST: true
2399
+ },
2400
+ 'carbon_users.user_birthday': {
2401
+ MYSQL_TYPE: 'varchar',
2402
+ MAX_LENGTH: '9',
2403
+ AUTO_INCREMENT: false,
2404
+ SKIP_COLUMN_IN_POST: false
2405
+ },
2406
+ 'carbon_users.user_gender': {
2407
+ MYSQL_TYPE: 'varchar',
2408
+ MAX_LENGTH: '25',
2409
+ AUTO_INCREMENT: false,
2410
+ SKIP_COLUMN_IN_POST: false
2411
+ },
2412
+ 'carbon_users.user_about_me': {
2413
+ MYSQL_TYPE: 'varchar',
2414
+ MAX_LENGTH: '225',
2415
+ AUTO_INCREMENT: false,
2416
+ SKIP_COLUMN_IN_POST: false
2417
+ },
2418
+ 'carbon_users.user_rank': {
2419
+ MYSQL_TYPE: 'int',
2420
+ MAX_LENGTH: '',
2421
+ AUTO_INCREMENT: false,
2422
+ SKIP_COLUMN_IN_POST: false
2423
+ },
2424
+ 'carbon_users.user_email': {
2425
+ MYSQL_TYPE: 'varchar',
2426
+ MAX_LENGTH: '50',
2427
+ AUTO_INCREMENT: false,
2428
+ SKIP_COLUMN_IN_POST: false
2429
+ },
2430
+ 'carbon_users.user_email_code': {
2431
+ MYSQL_TYPE: 'varchar',
2432
+ MAX_LENGTH: '225',
2433
+ AUTO_INCREMENT: false,
2434
+ SKIP_COLUMN_IN_POST: false
2435
+ },
2436
+ 'carbon_users.user_email_confirmed': {
2437
+ MYSQL_TYPE: 'tinyint',
2438
+ MAX_LENGTH: '',
2439
+ AUTO_INCREMENT: false,
2440
+ SKIP_COLUMN_IN_POST: false
2441
+ },
2442
+ 'carbon_users.user_generated_string': {
2443
+ MYSQL_TYPE: 'varchar',
2444
+ MAX_LENGTH: '200',
2445
+ AUTO_INCREMENT: false,
2446
+ SKIP_COLUMN_IN_POST: false
2447
+ },
2448
+ 'carbon_users.user_membership': {
2449
+ MYSQL_TYPE: 'int',
2450
+ MAX_LENGTH: '',
2451
+ AUTO_INCREMENT: false,
2452
+ SKIP_COLUMN_IN_POST: false
2453
+ },
2454
+ 'carbon_users.user_deactivated': {
2455
+ MYSQL_TYPE: 'tinyint',
2456
+ MAX_LENGTH: '',
2457
+ AUTO_INCREMENT: false,
2458
+ SKIP_COLUMN_IN_POST: false
2459
+ },
2460
+ 'carbon_users.user_last_login': {
2461
+ MYSQL_TYPE: 'datetime',
2462
+ MAX_LENGTH: '',
2463
+ AUTO_INCREMENT: false,
2464
+ SKIP_COLUMN_IN_POST: false
2465
+ },
2466
+ 'carbon_users.user_ip': {
2467
+ MYSQL_TYPE: 'varchar',
2468
+ MAX_LENGTH: '20',
2469
+ AUTO_INCREMENT: false,
2470
+ SKIP_COLUMN_IN_POST: false
2471
+ },
2472
+ 'carbon_users.user_education_history': {
2473
+ MYSQL_TYPE: 'varchar',
2474
+ MAX_LENGTH: '200',
2475
+ AUTO_INCREMENT: false,
2476
+ SKIP_COLUMN_IN_POST: false
2477
+ },
2478
+ 'carbon_users.user_creation_date': {
2479
+ MYSQL_TYPE: 'datetime',
2480
+ MAX_LENGTH: '',
2481
+ AUTO_INCREMENT: false,
2482
+ SKIP_COLUMN_IN_POST: false
2483
+ },
2484
+ 'carbon_users.user_education': {
2485
+ MYSQL_TYPE: 'varchar',
2486
+ MAX_LENGTH: '255',
2487
+ AUTO_INCREMENT: false,
2488
+ SKIP_COLUMN_IN_POST: false
2489
+ },
2490
+ 'carbon_users.user_notes': {
2491
+ MYSQL_TYPE: 'text',
2492
+ MAX_LENGTH: '',
2493
+ AUTO_INCREMENT: false,
2494
+ SKIP_COLUMN_IN_POST: true
2495
+ },
2496
+ 'carbon_users.user_skills': {
2497
+ MYSQL_TYPE: 'varchar',
2498
+ MAX_LENGTH: '255',
2499
+ AUTO_INCREMENT: false,
2500
+ SKIP_COLUMN_IN_POST: false
2501
+ },
2502
+ 'carbon_users.user_is_moderator': {
2503
+ MYSQL_TYPE: 'tinyint',
2504
+ MAX_LENGTH: '1',
2505
+ AUTO_INCREMENT: false,
2506
+ SKIP_COLUMN_IN_POST: false
2507
+ },
2508
+ 'carbon_users.user_is_administrator': {
2509
+ MYSQL_TYPE: 'tinyint',
2510
+ MAX_LENGTH: '1',
2511
+ AUTO_INCREMENT: false,
2512
+ SKIP_COLUMN_IN_POST: false
2513
+ },
2514
+ 'carbon_users.user_is_caller': {
2515
+ MYSQL_TYPE: 'tinyint',
2516
+ MAX_LENGTH: '1',
2517
+ AUTO_INCREMENT: false,
2518
+ SKIP_COLUMN_IN_POST: false
2519
+ },
2520
+ },
2521
+ REGEX_VALIDATION: {
2522
+ },
2523
+ TABLE_REFERENCES: {
2524
+ 'user_id': [{
2525
+ TABLE: 'carbon_carbons',
2526
+ COLUMN: 'entity_pk',
2527
+ CONSTRAINT: 'user_entity_entity_pk_fk',
2528
+ },],
2529
+ },
2530
+ TABLE_REFERENCED_BY: {
2531
+ 'user_id': [{
2532
+ TABLE: 'carbon_chat_messages',
2533
+ COLUMN: 'chat_message_from_user',
2534
+ CONSTRAINT: 'chat_chat_messages_users_ID_fk',
2535
+ },],
2536
+ },
2537
+ REST_STATE_OPERATIONS: {
2538
+ PUT: putStateUsers,
2539
+ POST: postStateUsers,
2540
+ DELETE: deleteStateUsers,
2541
+ },
2542
+ }
2543
+
2544
+
2545
+ export const TABLES: tC6Tables = {
2546
+ carbons: carbons,
2547
+ chat_messages: chat_messages,
2548
+ documentation: documentation,
2549
+ feature_group_references: feature_group_references,
2550
+ features: features,
2551
+ group_references: group_references,
2552
+ groups: groups,
2553
+ history_logs: history_logs,
2554
+ likes: likes,
2555
+ location_references: location_references,
2556
+ locations: locations,
2557
+ photos: photos,
2558
+ posts: posts,
2559
+ projects: projects,
2560
+ reports: reports,
2561
+ sessions: sessions,
2562
+ subscription: subscription,
2563
+ user_followers: user_followers,
2564
+ user_groups: user_groups,
2565
+ user_messages: user_messages,
2566
+ user_sessions: user_sessions,
2567
+ user_tasks: user_tasks,
2568
+ users: users,
2569
+ };
2570
+
2571
+ export const C6 : { TABLES: tC6Tables }
2572
+ & { [key: string]: any } = {
2573
+ ...C6Constants,
2574
+ TABLES: TABLES,
2575
+ ...TABLES
2576
+ };
2577
+
2578
+ export const COLUMNS = {
2579
+ 'carbon_carbons.entity_pk': 'entity_pk','carbon_carbons.entity_fk': 'entity_fk','carbon_carbons.entity_tag': 'entity_tag',
2580
+ 'carbon_chat_messages.chat_message_id': 'chat_message_id','carbon_chat_messages.chat_message_from_user': 'chat_message_from_user','carbon_chat_messages.chat_private_group': 'chat_private_group','carbon_chat_messages.chat_message': 'chat_message','carbon_chat_messages.chat_message_datetime': 'chat_message_datetime','carbon_chat_messages.chat_message_advertisement': 'chat_message_advertisement','carbon_chat_messages.chat_message_unfiltered': 'chat_message_unfiltered',
2581
+ 'carbon_documentation.documentation_uri': 'documentation_uri','carbon_documentation.documentation_data': 'documentation_data','carbon_documentation.documentation_version': 'documentation_version','carbon_documentation.documentation_active': 'documentation_active',
2582
+ 'carbon_feature_group_references.feature_entity_id': 'feature_entity_id','carbon_feature_group_references.group_entity_id': 'group_entity_id',
2583
+ 'carbon_features.feature_entity_id': 'feature_entity_id','carbon_features.feature_code': 'feature_code','carbon_features.feature_creation_date': 'feature_creation_date',
2584
+ 'carbon_group_references.group_id': 'group_id','carbon_group_references.allowed_to_grant_group_id': 'allowed_to_grant_group_id',
2585
+ 'carbon_groups.group_name': 'group_name','carbon_groups.entity_id': 'entity_id','carbon_groups.created_by': 'created_by','carbon_groups.creation_date': 'creation_date',
2586
+ 'carbon_history_logs.history_uuid': 'history_uuid','carbon_history_logs.history_table': 'history_table','carbon_history_logs.history_type': 'history_type','carbon_history_logs.history_data': 'history_data','carbon_history_logs.history_original_query': 'history_original_query','carbon_history_logs.history_time': 'history_time',
2587
+ 'carbon_likes.like_user_id': 'like_user_id','carbon_likes.like_entity_id': 'like_entity_id',
2588
+ 'carbon_location_references.entity_reference': 'entity_reference','carbon_location_references.location_reference': 'location_reference','carbon_location_references.location_time': 'location_time',
2589
+ 'carbon_locations.entity_id': 'entity_id','carbon_locations.latitude': 'latitude','carbon_locations.longitude': 'longitude','carbon_locations.street': 'street','carbon_locations.city': 'city','carbon_locations.state': 'state','carbon_locations.elevation': 'elevation','carbon_locations.zip': 'zip',
2590
+ 'carbon_photos.parent_id': 'parent_id','carbon_photos.photo_id': 'photo_id','carbon_photos.user_id': 'user_id','carbon_photos.photo_src': 'photo_src','carbon_photos.photo_description': 'photo_description','carbon_photos.photo_upload_date': 'photo_upload_date',
2591
+ 'carbon_posts.post_id': 'post_id','carbon_posts.post_data': 'post_data','carbon_posts.post_author': 'post_author','carbon_posts.post_status': 'post_status','carbon_posts.post_created_datetime': 'post_created_datetime','carbon_posts.post_project_id': 'post_project_id','carbon_posts.post_parent_id': 'post_parent_id',
2592
+ 'carbon_projects.project_id': 'project_id','carbon_projects.project_name': 'project_name','carbon_projects.project_start_date': 'project_start_date','carbon_projects.project_end_date': 'project_end_date','carbon_projects.project_description': 'project_description','carbon_projects.project_leader': 'project_leader','carbon_projects.project_cost': 'project_cost','carbon_projects.project_overview_top': 'project_overview_top','carbon_projects.project_overview_bottom': 'project_overview_bottom','carbon_projects.project_ends': 'project_ends',
2593
+ 'carbon_reports.log_level': 'log_level','carbon_reports.report': 'report','carbon_reports.date': 'date','carbon_reports.call_trace': 'call_trace',
2594
+ 'carbon_sessions.user_id': 'user_id','carbon_sessions.user_ip': 'user_ip','carbon_sessions.session_id': 'session_id','carbon_sessions.session_expires': 'session_expires','carbon_sessions.session_data': 'session_data','carbon_sessions.user_online_status': 'user_online_status',
2595
+ 'carbon_subscription.subscription_id': 'subscription_id','carbon_subscription.subscription_to_entity_id': 'subscription_to_entity_id','carbon_subscription.subscription_for_entity_id': 'subscription_for_entity_id','carbon_subscription.subscription_price': 'subscription_price','carbon_subscription.subscription_start_date': 'subscription_start_date','carbon_subscription.subscription_end_date': 'subscription_end_date','carbon_subscription.subscription_transaction_id': 'subscription_transaction_id',
2596
+ 'carbon_user_followers.follower_table_id': 'follower_table_id','carbon_user_followers.follows_user_id': 'follows_user_id','carbon_user_followers.user_id': 'user_id',
2597
+ 'carbon_user_groups.group_id': 'group_id','carbon_user_groups.user_id': 'user_id',
2598
+ 'carbon_user_messages.message_id': 'message_id','carbon_user_messages.from_user_id': 'from_user_id','carbon_user_messages.to_user_id': 'to_user_id','carbon_user_messages.message': 'message','carbon_user_messages.message_read': 'message_read','carbon_user_messages.creation_date': 'creation_date',
2599
+ 'carbon_user_sessions.user_id': 'user_id','carbon_user_sessions.user_ip': 'user_ip','carbon_user_sessions.session_id': 'session_id','carbon_user_sessions.session_expires': 'session_expires','carbon_user_sessions.session_data': 'session_data','carbon_user_sessions.user_online_status': 'user_online_status',
2600
+ 'carbon_user_tasks.task_id': 'task_id','carbon_user_tasks.user_id': 'user_id','carbon_user_tasks.from_id': 'from_id','carbon_user_tasks.task_name': 'task_name','carbon_user_tasks.task_description': 'task_description','carbon_user_tasks.percent_complete': 'percent_complete','carbon_user_tasks.start_date': 'start_date','carbon_user_tasks.end_date': 'end_date',
2601
+ 'carbon_users.user_username': 'user_username','carbon_users.user_password': 'user_password','carbon_users.user_id': 'user_id','carbon_users.user_type': 'user_type','carbon_users.user_sport': 'user_sport','carbon_users.user_session_id': 'user_session_id','carbon_users.user_facebook_id': 'user_facebook_id','carbon_users.user_first_name': 'user_first_name','carbon_users.user_last_name': 'user_last_name','carbon_users.user_profile_pic': 'user_profile_pic','carbon_users.user_profile_uri': 'user_profile_uri','carbon_users.user_cover_photo': 'user_cover_photo','carbon_users.user_birthday': 'user_birthday','carbon_users.user_gender': 'user_gender','carbon_users.user_about_me': 'user_about_me','carbon_users.user_rank': 'user_rank','carbon_users.user_email': 'user_email','carbon_users.user_email_code': 'user_email_code','carbon_users.user_email_confirmed': 'user_email_confirmed','carbon_users.user_generated_string': 'user_generated_string','carbon_users.user_membership': 'user_membership','carbon_users.user_deactivated': 'user_deactivated','carbon_users.user_last_login': 'user_last_login','carbon_users.user_ip': 'user_ip','carbon_users.user_education_history': 'user_education_history','carbon_users.user_creation_date': 'user_creation_date','carbon_users.user_education': 'user_education','carbon_users.user_notes': 'user_notes','carbon_users.user_skills': 'user_skills','carbon_users.user_is_moderator': 'user_is_moderator','carbon_users.user_is_administrator': 'user_is_administrator','carbon_users.user_is_caller': 'user_is_caller',
2602
+
2603
+ };
2604
+
2605
+
2606
+ export type RestTableInterfaces = iCarbons
2607
+ | iChat_Messages
2608
+ | iDocumentation
2609
+ | iFeature_Group_References
2610
+ | iFeatures
2611
+ | iGroup_References
2612
+ | iGroups
2613
+ | iHistory_Logs
2614
+ | iLikes
2615
+ | iLocation_References
2616
+ | iLocations
2617
+ | iPhotos
2618
+ | iPosts
2619
+ | iProjects
2620
+ | iReports
2621
+ | iSessions
2622
+ | iSubscription
2623
+ | iUser_Followers
2624
+ | iUser_Groups
2625
+ | iUser_Messages
2626
+ | iUser_Sessions
2627
+ | iUser_Tasks
2628
+ | iUsers;
2629
+
2630
+ export type tStatefulApiData<T> = T[] | undefined | null;
2631
+
2632
+
2633
+ // this refers to the value types of the keys above, aka values in the state
2634
+ export interface iRestfulObjectArrayTypes {
2635
+ carbons: tStatefulApiData<iCarbons>,
2636
+ chat_messages: tStatefulApiData<iChat_Messages>,
2637
+ documentation: tStatefulApiData<iDocumentation>,
2638
+ feature_group_references: tStatefulApiData<iFeature_Group_References>,
2639
+ features: tStatefulApiData<iFeatures>,
2640
+ group_references: tStatefulApiData<iGroup_References>,
2641
+ groups: tStatefulApiData<iGroups>,
2642
+ history_logs: tStatefulApiData<iHistory_Logs>,
2643
+ likes: tStatefulApiData<iLikes>,
2644
+ location_references: tStatefulApiData<iLocation_References>,
2645
+ locations: tStatefulApiData<iLocations>,
2646
+ photos: tStatefulApiData<iPhotos>,
2647
+ posts: tStatefulApiData<iPosts>,
2648
+ projects: tStatefulApiData<iProjects>,
2649
+ reports: tStatefulApiData<iReports>,
2650
+ sessions: tStatefulApiData<iSessions>,
2651
+ subscription: tStatefulApiData<iSubscription>,
2652
+ user_followers: tStatefulApiData<iUser_Followers>,
2653
+ user_groups: tStatefulApiData<iUser_Groups>,
2654
+ user_messages: tStatefulApiData<iUser_Messages>,
2655
+ user_sessions: tStatefulApiData<iUser_Sessions>,
2656
+ user_tasks: tStatefulApiData<iUser_Tasks>,
2657
+ users: tStatefulApiData<iUsers>,
2658
+ }
2659
+
2660
+ export const initialRestfulObjectsState: iRestfulObjectArrayTypes = {
2661
+ carbons: undefined,
2662
+ chat_messages: undefined,
2663
+ documentation: undefined,
2664
+ feature_group_references: undefined,
2665
+ features: undefined,
2666
+ group_references: undefined,
2667
+ groups: undefined,
2668
+ history_logs: undefined,
2669
+ likes: undefined,
2670
+ location_references: undefined,
2671
+ locations: undefined,
2672
+ photos: undefined,
2673
+ posts: undefined,
2674
+ projects: undefined,
2675
+ reports: undefined,
2676
+ sessions: undefined,
2677
+ subscription: undefined,
2678
+ user_followers: undefined,
2679
+ user_groups: undefined,
2680
+ user_messages: undefined,
2681
+ user_sessions: undefined,
2682
+ user_tasks: undefined,
2683
+ users: undefined,
2684
+ };
2685
+
2686
+ export type tRestfulObjectArrayValues = iRestfulObjectArrayTypes[keyof iRestfulObjectArrayTypes];
2687
+