@admc-go-th/admc-library 1.0.129 → 1.0.132

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 (94) hide show
  1. package/appQueue-HW5J6Gb9.d.ts +162 -0
  2. package/{authAssignment-BAUCoEP6.d.ts → authAssignment-De3034JH.d.ts} +16 -0
  3. package/databases/schema/appQueue.ts +93 -3
  4. package/databases/schema/appReportCorruption.ts +1 -1
  5. package/databases/schema/appScore.ts +8 -0
  6. package/databases/schema/files.ts +7 -0
  7. package/databases/schema/formFaq.ts +126 -126
  8. package/databases/schema/index.ts +10 -5
  9. package/databases/schema/informationIndex.ts +211 -211
  10. package/databases/schema/informationIndexGroup.ts +103 -103
  11. package/databases/schema/mdBanner.ts +8 -0
  12. package/databases/schema/mdDownloadBk.ts +136 -136
  13. package/databases/schema/mdEbookGroup.ts +8 -0
  14. package/databases/schema/msConsultCase.ts +0 -8
  15. package/databases/schema/msConsultChannels.ts +14 -1
  16. package/databases/schema/msConsultSiteCase.ts +91 -0
  17. package/databases/schema/msConsultSiteIssue.ts +84 -0
  18. package/databases/schema/msExecutiveActing.ts +75 -0
  19. package/databases/schema/msExecutiveBoard.ts +82 -82
  20. package/databases/schema/msExecutiveBoardBk.ts +83 -0
  21. package/databases/schema/msExecutivePosition.ts +117 -117
  22. package/databases/schema/msExecutivePositionBk.ts +112 -0
  23. package/databases/schema/msGuidelines.ts +88 -88
  24. package/databases/schema/msOrganization.ts +139 -0
  25. package/databases/schema/msPosition.ts +76 -0
  26. package/databases/schema/msQueueTourFaq.ts +90 -0
  27. package/databases/schema/msQueueTourGuidelines.ts +90 -0
  28. package/databases/schema/msWebsite.ts +7 -1
  29. package/databases/schema/setting.ts +73 -73
  30. package/databases/schema/userPermissionV.ts +78 -0
  31. package/databases/schema/users.ts +62 -0
  32. package/databases/tables/appQueue.d.ts +2 -62
  33. package/databases/tables/appQueue.js +380 -54
  34. package/databases/tables/appReportCorruption.js +1 -1
  35. package/databases/tables/appReportCorruptionTransaction.js +1 -1
  36. package/databases/tables/appScore.d.ts +2 -0
  37. package/databases/tables/appScore.js +7 -0
  38. package/databases/tables/authAssignment.d.ts +1 -1
  39. package/databases/tables/authAssignment.js +54 -0
  40. package/databases/tables/authRole.d.ts +1 -1
  41. package/databases/tables/authRole.js +54 -0
  42. package/databases/tables/authRoleChild.d.ts +1 -1
  43. package/databases/tables/authRoleChild.js +54 -0
  44. package/databases/tables/files.d.ts +1 -1
  45. package/databases/tables/files.js +13 -0
  46. package/databases/tables/index.d.ts +15 -11
  47. package/databases/tables/index.js +4440 -3810
  48. package/databases/tables/mdBanner.d.ts +1 -1
  49. package/databases/tables/mdBanner.js +13 -0
  50. package/databases/tables/mdContent.d.ts +1 -1
  51. package/databases/tables/mdContent.js +54 -0
  52. package/databases/tables/mdContentGroup.d.ts +1 -1
  53. package/databases/tables/mdContentGroup.js +54 -0
  54. package/databases/tables/mdEbook.d.ts +1 -1
  55. package/databases/tables/mdEbook.js +7 -0
  56. package/databases/tables/mdEbookGroup.d.ts +1 -1
  57. package/databases/tables/mdEbookGroup.js +7 -0
  58. package/databases/tables/mdQuestionnaire.d.ts +1 -1
  59. package/databases/tables/mdQuestionnaire.js +54 -0
  60. package/databases/tables/mdQuestionnaireData.d.ts +1 -1
  61. package/databases/tables/mdQuestionnaireData.js +54 -0
  62. package/databases/tables/msConsultCase.d.ts +0 -2
  63. package/databases/tables/msConsultCase.js +0 -7
  64. package/databases/tables/msConsultChannels.d.ts +2 -24
  65. package/databases/tables/msConsultChannels.js +469 -13
  66. package/databases/tables/msConsultSiteCase.d.ts +28 -0
  67. package/databases/tables/msConsultSiteCase.js +113 -0
  68. package/databases/tables/msConsultSiteIssue.d.ts +26 -0
  69. package/databases/tables/msConsultSiteIssue.js +107 -0
  70. package/databases/tables/msExecutiveActing.d.ts +24 -0
  71. package/databases/tables/msExecutiveActing.js +99 -0
  72. package/databases/tables/msExecutiveBoardBk.d.ts +26 -0
  73. package/databases/tables/msExecutiveBoardBk.js +106 -0
  74. package/databases/tables/msExecutivePositionBk.d.ts +34 -0
  75. package/databases/tables/msExecutivePositionBk.js +131 -0
  76. package/databases/tables/msOrganization.d.ts +40 -0
  77. package/databases/tables/msOrganization.js +155 -0
  78. package/databases/tables/msPosition.d.ts +24 -0
  79. package/databases/tables/msPosition.js +100 -0
  80. package/databases/tables/msQueueTourFaq.d.ts +28 -0
  81. package/databases/tables/msQueueTourFaq.js +112 -0
  82. package/databases/tables/msQueueTourGuidelines.d.ts +28 -0
  83. package/databases/tables/msQueueTourGuidelines.js +112 -0
  84. package/databases/tables/msWebsite.d.ts +2 -56
  85. package/databases/tables/msWebsite.js +400 -46
  86. package/databases/tables/userPermissionV.d.ts +26 -0
  87. package/databases/tables/userPermissionV.js +101 -0
  88. package/databases/tables/users.d.ts +1 -1
  89. package/databases/tables/users.js +54 -0
  90. package/databases/tables/usersVerify.d.ts +1 -1
  91. package/databases/tables/usersVerify.js +54 -0
  92. package/{files-Dp2zDQAj.d.ts → files-CXIMD4Bk.d.ts} +4 -0
  93. package/{mdEbook-yzNQjFhx.d.ts → mdEbook-DVvRlFVe.d.ts} +2 -0
  94. package/package.json +1 -1
@@ -31,8 +31,14 @@ __export(msConsultChannels_exports, {
31
31
  msConsultChannels: () => msConsultChannels
32
32
  });
33
33
  module.exports = __toCommonJS(msConsultChannels_exports);
34
+ var import_sequelize_typescript3 = require("sequelize-typescript");
35
+
36
+ // src/databases/tables/appQueue.ts
37
+ var import_sequelize_typescript2 = require("sequelize-typescript");
38
+
39
+ // src/databases/tables/msWebsite.ts
34
40
  var import_sequelize_typescript = require("sequelize-typescript");
35
- var msConsultChannels = class extends import_sequelize_typescript.Model {
41
+ var msWebsite = class extends import_sequelize_typescript.Model {
36
42
  };
37
43
  __decorateClass([
38
44
  (0, import_sequelize_typescript.Column)({
@@ -40,55 +46,505 @@ __decorateClass([
40
46
  autoIncrement: true,
41
47
  type: import_sequelize_typescript.DataType.INTEGER
42
48
  })
43
- ], msConsultChannels.prototype, "id", 2);
49
+ ], msWebsite.prototype, "id", 2);
44
50
  __decorateClass([
45
51
  (0, import_sequelize_typescript.Column)({
46
52
  allowNull: true,
47
53
  type: import_sequelize_typescript.DataType.STRING(255)
48
54
  })
49
- ], msConsultChannels.prototype, "name", 2);
55
+ ], msWebsite.prototype, "code", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ allowNull: true,
59
+ type: import_sequelize_typescript.DataType.STRING(60)
60
+ })
61
+ ], msWebsite.prototype, "uuid", 2);
62
+ __decorateClass([
63
+ (0, import_sequelize_typescript.Column)({
64
+ allowNull: true,
65
+ type: import_sequelize_typescript.DataType.STRING(255)
66
+ })
67
+ ], msWebsite.prototype, "name", 2);
68
+ __decorateClass([
69
+ (0, import_sequelize_typescript.Column)({
70
+ allowNull: true,
71
+ type: import_sequelize_typescript.DataType.STRING(255)
72
+ })
73
+ ], msWebsite.prototype, "description", 2);
74
+ __decorateClass([
75
+ (0, import_sequelize_typescript.Column)({
76
+ allowNull: true,
77
+ type: import_sequelize_typescript.DataType.STRING(255)
78
+ })
79
+ ], msWebsite.prototype, "url", 2);
80
+ __decorateClass([
81
+ (0, import_sequelize_typescript.Column)({
82
+ allowNull: true,
83
+ type: import_sequelize_typescript.DataType.INTEGER,
84
+ defaultValue: "1"
85
+ })
86
+ ], msWebsite.prototype, "layout", 2);
50
87
  __decorateClass([
51
88
  (0, import_sequelize_typescript.Column)({
52
89
  allowNull: true,
53
90
  type: import_sequelize_typescript.DataType.INTEGER
54
91
  })
55
- ], msConsultChannels.prototype, "sort", 2);
92
+ ], msWebsite.prototype, "type", 2);
93
+ __decorateClass([
94
+ (0, import_sequelize_typescript.Column)({
95
+ allowNull: true,
96
+ type: import_sequelize_typescript.DataType.INTEGER,
97
+ defaultValue: "1"
98
+ })
99
+ ], msWebsite.prototype, "status", 2);
100
+ __decorateClass([
101
+ (0, import_sequelize_typescript.Column)({
102
+ allowNull: true,
103
+ type: import_sequelize_typescript.DataType.STRING(20)
104
+ })
105
+ ], msWebsite.prototype, "region", 2);
56
106
  __decorateClass([
57
107
  (0, import_sequelize_typescript.Column)({
58
108
  allowNull: true,
59
109
  type: import_sequelize_typescript.DataType.INTEGER
60
110
  })
61
- ], msConsultChannels.prototype, "status", 2);
111
+ ], msWebsite.prototype, "sort", 2);
112
+ __decorateClass([
113
+ (0, import_sequelize_typescript.Column)({
114
+ allowNull: true,
115
+ type: import_sequelize_typescript.DataType.STRING(255)
116
+ })
117
+ ], msWebsite.prototype, "image", 2);
118
+ __decorateClass([
119
+ (0, import_sequelize_typescript.Column)({
120
+ allowNull: true,
121
+ type: import_sequelize_typescript.DataType.STRING(255)
122
+ })
123
+ ], msWebsite.prototype, "address", 2);
124
+ __decorateClass([
125
+ (0, import_sequelize_typescript.Column)({
126
+ allowNull: true,
127
+ type: import_sequelize_typescript.DataType.STRING(100)
128
+ })
129
+ ], msWebsite.prototype, "phone", 2);
130
+ __decorateClass([
131
+ (0, import_sequelize_typescript.Column)({
132
+ allowNull: true,
133
+ type: import_sequelize_typescript.DataType.STRING(100)
134
+ })
135
+ ], msWebsite.prototype, "fax", 2);
136
+ __decorateClass([
137
+ (0, import_sequelize_typescript.Column)({
138
+ allowNull: true,
139
+ type: import_sequelize_typescript.DataType.STRING(255)
140
+ })
141
+ ], msWebsite.prototype, "office", 2);
142
+ __decorateClass([
143
+ (0, import_sequelize_typescript.Column)({
144
+ allowNull: true,
145
+ type: import_sequelize_typescript.DataType.DATEONLY
146
+ })
147
+ ], msWebsite.prototype, "opened", 2);
148
+ __decorateClass([
149
+ (0, import_sequelize_typescript.Column)({
150
+ allowNull: true,
151
+ type: import_sequelize_typescript.DataType.DECIMAL(10, 8)
152
+ })
153
+ ], msWebsite.prototype, "latitude", 2);
154
+ __decorateClass([
155
+ (0, import_sequelize_typescript.Column)({
156
+ allowNull: true,
157
+ type: import_sequelize_typescript.DataType.DECIMAL(11, 8)
158
+ })
159
+ ], msWebsite.prototype, "longitude", 2);
160
+ __decorateClass([
161
+ (0, import_sequelize_typescript.Column)({
162
+ allowNull: true,
163
+ type: import_sequelize_typescript.DataType.JSON
164
+ })
165
+ ], msWebsite.prototype, "info", 2);
62
166
  __decorateClass([
63
167
  (0, import_sequelize_typescript.Column)({
64
168
  field: "created_by",
65
169
  allowNull: true,
66
- type: import_sequelize_typescript.DataType.STRING(60)
170
+ type: import_sequelize_typescript.DataType.STRING(60),
171
+ comment: "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E42\u0E14\u0E22"
67
172
  })
68
- ], msConsultChannels.prototype, "createdBy", 2);
173
+ ], msWebsite.prototype, "createdBy", 2);
69
174
  __decorateClass([
70
175
  (0, import_sequelize_typescript.Column)({
71
176
  field: "created_date",
72
177
  allowNull: true,
73
- type: import_sequelize_typescript.DataType.DATE
178
+ type: import_sequelize_typescript.DataType.DATE,
179
+ comment: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E2A\u0E23\u0E49\u0E32\u0E07"
74
180
  })
75
- ], msConsultChannels.prototype, "createdDate", 2);
181
+ ], msWebsite.prototype, "createdDate", 2);
76
182
  __decorateClass([
77
183
  (0, import_sequelize_typescript.Column)({
78
184
  field: "updated_by",
79
185
  allowNull: true,
80
- type: import_sequelize_typescript.DataType.STRING(60)
186
+ type: import_sequelize_typescript.DataType.STRING(60),
187
+ comment: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E14\u0E22"
81
188
  })
82
- ], msConsultChannels.prototype, "updatedBy", 2);
189
+ ], msWebsite.prototype, "updatedBy", 2);
83
190
  __decorateClass([
84
191
  (0, import_sequelize_typescript.Column)({
85
192
  field: "updated_date",
86
193
  allowNull: true,
87
- type: import_sequelize_typescript.DataType.DATE
194
+ type: import_sequelize_typescript.DataType.DATE,
195
+ comment: "\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E01\u0E49\u0E44\u0E02"
196
+ })
197
+ ], msWebsite.prototype, "updatedDate", 2);
198
+ __decorateClass([
199
+ (0, import_sequelize_typescript.HasMany)(() => appQueue, {
200
+ sourceKey: "id"
201
+ })
202
+ ], msWebsite.prototype, "appQueues", 2);
203
+ msWebsite = __decorateClass([
204
+ (0, import_sequelize_typescript.Table)({
205
+ tableName: "ms_website",
206
+ timestamps: false
207
+ })
208
+ ], msWebsite);
209
+
210
+ // src/databases/tables/appQueue.ts
211
+ var appQueue = class extends import_sequelize_typescript2.Model {
212
+ };
213
+ __decorateClass([
214
+ (0, import_sequelize_typescript2.Column)({
215
+ primaryKey: true,
216
+ autoIncrement: true,
217
+ type: import_sequelize_typescript2.DataType.INTEGER
218
+ })
219
+ ], appQueue.prototype, "id", 2);
220
+ __decorateClass([
221
+ (0, import_sequelize_typescript2.Column)({
222
+ allowNull: true,
223
+ type: import_sequelize_typescript2.DataType.STRING(60)
224
+ })
225
+ ], appQueue.prototype, "uuid", 2);
226
+ __decorateClass([
227
+ (0, import_sequelize_typescript2.Column)({
228
+ allowNull: true,
229
+ type: import_sequelize_typescript2.DataType.STRING(15)
230
+ })
231
+ ], appQueue.prototype, "code", 2);
232
+ __decorateClass([
233
+ (0, import_sequelize_typescript2.ForeignKey)(() => msWebsite),
234
+ (0, import_sequelize_typescript2.Column)({
235
+ field: "site_id",
236
+ allowNull: true,
237
+ type: import_sequelize_typescript2.DataType.INTEGER
238
+ })
239
+ ], appQueue.prototype, "siteId", 2);
240
+ __decorateClass([
241
+ (0, import_sequelize_typescript2.Column)({
242
+ field: "request_date",
243
+ allowNull: true,
244
+ type: import_sequelize_typescript2.DataType.DATEONLY
245
+ })
246
+ ], appQueue.prototype, "requestDate", 2);
247
+ __decorateClass([
248
+ (0, import_sequelize_typescript2.Column)({
249
+ field: "request_from",
250
+ allowNull: true,
251
+ type: import_sequelize_typescript2.DataType.TIME
252
+ })
253
+ ], appQueue.prototype, "requestFrom", 2);
254
+ __decorateClass([
255
+ (0, import_sequelize_typescript2.Column)({
256
+ field: "request_to",
257
+ allowNull: true,
258
+ type: import_sequelize_typescript2.DataType.TIME
259
+ })
260
+ ], appQueue.prototype, "requestTo", 2);
261
+ __decorateClass([
262
+ (0, import_sequelize_typescript2.Column)({
263
+ field: "approve_date",
264
+ allowNull: true,
265
+ type: import_sequelize_typescript2.DataType.DATEONLY
266
+ })
267
+ ], appQueue.prototype, "approveDate", 2);
268
+ __decorateClass([
269
+ (0, import_sequelize_typescript2.Column)({
270
+ field: "time_slot",
271
+ allowNull: true,
272
+ type: import_sequelize_typescript2.DataType.INTEGER
273
+ })
274
+ ], appQueue.prototype, "timeSlot", 2);
275
+ __decorateClass([
276
+ (0, import_sequelize_typescript2.Column)({
277
+ field: "full_name",
278
+ allowNull: true,
279
+ type: import_sequelize_typescript2.DataType.STRING(255)
280
+ })
281
+ ], appQueue.prototype, "fullName", 2);
282
+ __decorateClass([
283
+ (0, import_sequelize_typescript2.Column)({
284
+ allowNull: true,
285
+ type: import_sequelize_typescript2.DataType.INTEGER
286
+ })
287
+ ], appQueue.prototype, "residence", 2);
288
+ __decorateClass([
289
+ (0, import_sequelize_typescript2.Column)({
290
+ allowNull: true,
291
+ type: import_sequelize_typescript2.DataType.INTEGER
292
+ })
293
+ ], appQueue.prototype, "occupation", 2);
294
+ __decorateClass([
295
+ (0, import_sequelize_typescript2.Column)({
296
+ field: "phone_number",
297
+ allowNull: true,
298
+ type: import_sequelize_typescript2.DataType.STRING(20)
299
+ })
300
+ ], appQueue.prototype, "phoneNumber", 2);
301
+ __decorateClass([
302
+ (0, import_sequelize_typescript2.Column)({
303
+ allowNull: true,
304
+ type: import_sequelize_typescript2.DataType.STRING(150)
305
+ })
306
+ ], appQueue.prototype, "email", 2);
307
+ __decorateClass([
308
+ (0, import_sequelize_typescript2.Column)({
309
+ field: "line_id",
310
+ allowNull: true,
311
+ type: import_sequelize_typescript2.DataType.STRING(100)
312
+ })
313
+ ], appQueue.prototype, "lineId", 2);
314
+ __decorateClass([
315
+ (0, import_sequelize_typescript2.ForeignKey)(() => msConsultChannels),
316
+ (0, import_sequelize_typescript2.Column)({
317
+ field: "consult_channel",
318
+ allowNull: true,
319
+ type: import_sequelize_typescript2.DataType.INTEGER
320
+ })
321
+ ], appQueue.prototype, "consultChannel", 2);
322
+ __decorateClass([
323
+ (0, import_sequelize_typescript2.Column)({
324
+ field: "consult_topic",
325
+ allowNull: true,
326
+ type: import_sequelize_typescript2.DataType.INTEGER
327
+ })
328
+ ], appQueue.prototype, "consultTopic", 2);
329
+ __decorateClass([
330
+ (0, import_sequelize_typescript2.Column)({
331
+ field: "consult_topic_other",
332
+ allowNull: true,
333
+ type: import_sequelize_typescript2.DataType.STRING(255)
334
+ })
335
+ ], appQueue.prototype, "consultTopicOther", 2);
336
+ __decorateClass([
337
+ (0, import_sequelize_typescript2.Column)({
338
+ field: "black_case_number",
339
+ allowNull: true,
340
+ type: import_sequelize_typescript2.DataType.STRING(50)
341
+ })
342
+ ], appQueue.prototype, "blackCaseNumber", 2);
343
+ __decorateClass([
344
+ (0, import_sequelize_typescript2.Column)({
345
+ field: "red_case_number",
346
+ allowNull: true,
347
+ type: import_sequelize_typescript2.DataType.STRING(50)
348
+ })
349
+ ], appQueue.prototype, "redCaseNumber", 2);
350
+ __decorateClass([
351
+ (0, import_sequelize_typescript2.Column)({
352
+ allowNull: true,
353
+ type: import_sequelize_typescript2.DataType.STRING
354
+ })
355
+ ], appQueue.prototype, "issues", 2);
356
+ __decorateClass([
357
+ (0, import_sequelize_typescript2.Column)({
358
+ allowNull: true,
359
+ type: import_sequelize_typescript2.DataType.JSON
360
+ })
361
+ ], appQueue.prototype, "attachments", 2);
362
+ __decorateClass([
363
+ (0, import_sequelize_typescript2.Column)({
364
+ field: "ip_address",
365
+ allowNull: true,
366
+ type: import_sequelize_typescript2.DataType.STRING(30)
367
+ })
368
+ ], appQueue.prototype, "ipAddress", 2);
369
+ __decorateClass([
370
+ (0, import_sequelize_typescript2.Column)({
371
+ allowNull: true,
372
+ type: import_sequelize_typescript2.DataType.INTEGER
373
+ })
374
+ ], appQueue.prototype, "status", 2);
375
+ __decorateClass([
376
+ (0, import_sequelize_typescript2.Column)({
377
+ field: "case_type_id",
378
+ allowNull: true,
379
+ type: import_sequelize_typescript2.DataType.INTEGER
380
+ })
381
+ ], appQueue.prototype, "caseTypeId", 2);
382
+ __decorateClass([
383
+ (0, import_sequelize_typescript2.Column)({
384
+ field: "case_section_id",
385
+ allowNull: true,
386
+ type: import_sequelize_typescript2.DataType.INTEGER
387
+ })
388
+ ], appQueue.prototype, "caseSectionId", 2);
389
+ __decorateClass([
390
+ (0, import_sequelize_typescript2.Column)({
391
+ field: "case_section_other",
392
+ allowNull: true,
393
+ type: import_sequelize_typescript2.DataType.STRING(255)
394
+ })
395
+ ], appQueue.prototype, "caseSectionOther", 2);
396
+ __decorateClass([
397
+ (0, import_sequelize_typescript2.Column)({
398
+ field: "case_jurisdiction",
399
+ allowNull: true,
400
+ type: import_sequelize_typescript2.DataType.INTEGER
401
+ })
402
+ ], appQueue.prototype, "caseJurisdiction", 2);
403
+ __decorateClass([
404
+ (0, import_sequelize_typescript2.Column)({
405
+ field: "staff_id",
406
+ allowNull: true,
407
+ type: import_sequelize_typescript2.DataType.INTEGER
408
+ })
409
+ ], appQueue.prototype, "staffId", 2);
410
+ __decorateClass([
411
+ (0, import_sequelize_typescript2.Column)({
412
+ field: "staff_channel_id",
413
+ allowNull: true,
414
+ type: import_sequelize_typescript2.DataType.INTEGER
415
+ })
416
+ ], appQueue.prototype, "staffChannelId", 2);
417
+ __decorateClass([
418
+ (0, import_sequelize_typescript2.Column)({
419
+ field: "staff_channel",
420
+ allowNull: true,
421
+ type: import_sequelize_typescript2.DataType.JSON
422
+ })
423
+ ], appQueue.prototype, "staffChannel", 2);
424
+ __decorateClass([
425
+ (0, import_sequelize_typescript2.Column)({
426
+ field: "staff_issues",
427
+ allowNull: true,
428
+ type: import_sequelize_typescript2.DataType.STRING
429
+ })
430
+ ], appQueue.prototype, "staffIssues", 2);
431
+ __decorateClass([
432
+ (0, import_sequelize_typescript2.Column)({
433
+ field: "staff_note",
434
+ allowNull: true,
435
+ type: import_sequelize_typescript2.DataType.STRING
436
+ })
437
+ ], appQueue.prototype, "staffNote", 2);
438
+ __decorateClass([
439
+ (0, import_sequelize_typescript2.Column)({
440
+ field: "created_by",
441
+ allowNull: true,
442
+ type: import_sequelize_typescript2.DataType.STRING(60)
443
+ })
444
+ ], appQueue.prototype, "createdBy", 2);
445
+ __decorateClass([
446
+ (0, import_sequelize_typescript2.Column)({
447
+ field: "created_date",
448
+ allowNull: true,
449
+ type: import_sequelize_typescript2.DataType.DATE
450
+ })
451
+ ], appQueue.prototype, "createdDate", 2);
452
+ __decorateClass([
453
+ (0, import_sequelize_typescript2.Column)({
454
+ field: "updated_by",
455
+ allowNull: true,
456
+ type: import_sequelize_typescript2.DataType.STRING(60)
457
+ })
458
+ ], appQueue.prototype, "updatedBy", 2);
459
+ __decorateClass([
460
+ (0, import_sequelize_typescript2.Column)({
461
+ field: "updated_date",
462
+ allowNull: true,
463
+ type: import_sequelize_typescript2.DataType.DATE
464
+ })
465
+ ], appQueue.prototype, "updatedDate", 2);
466
+ __decorateClass([
467
+ (0, import_sequelize_typescript2.BelongsTo)(() => msWebsite)
468
+ ], appQueue.prototype, "msWebsite", 2);
469
+ __decorateClass([
470
+ (0, import_sequelize_typescript2.BelongsTo)(() => msConsultChannels)
471
+ ], appQueue.prototype, "msConsultChannel", 2);
472
+ appQueue = __decorateClass([
473
+ (0, import_sequelize_typescript2.Table)({
474
+ tableName: "app_queue",
475
+ timestamps: false
476
+ })
477
+ ], appQueue);
478
+
479
+ // src/databases/tables/msConsultChannels.ts
480
+ var msConsultChannels = class extends import_sequelize_typescript3.Model {
481
+ };
482
+ __decorateClass([
483
+ (0, import_sequelize_typescript3.Column)({
484
+ primaryKey: true,
485
+ autoIncrement: true,
486
+ type: import_sequelize_typescript3.DataType.INTEGER
487
+ })
488
+ ], msConsultChannels.prototype, "id", 2);
489
+ __decorateClass([
490
+ (0, import_sequelize_typescript3.Column)({
491
+ allowNull: true,
492
+ type: import_sequelize_typescript3.DataType.STRING(255)
493
+ })
494
+ ], msConsultChannels.prototype, "name", 2);
495
+ __decorateClass([
496
+ (0, import_sequelize_typescript3.Column)({
497
+ allowNull: true,
498
+ type: import_sequelize_typescript3.DataType.INTEGER
499
+ })
500
+ ], msConsultChannels.prototype, "sort", 2);
501
+ __decorateClass([
502
+ (0, import_sequelize_typescript3.Column)({
503
+ allowNull: true,
504
+ type: import_sequelize_typescript3.DataType.STRING(255)
505
+ })
506
+ ], msConsultChannels.prototype, "message", 2);
507
+ __decorateClass([
508
+ (0, import_sequelize_typescript3.Column)({
509
+ allowNull: true,
510
+ type: import_sequelize_typescript3.DataType.INTEGER
511
+ })
512
+ ], msConsultChannels.prototype, "status", 2);
513
+ __decorateClass([
514
+ (0, import_sequelize_typescript3.Column)({
515
+ field: "created_by",
516
+ allowNull: true,
517
+ type: import_sequelize_typescript3.DataType.STRING(60)
518
+ })
519
+ ], msConsultChannels.prototype, "createdBy", 2);
520
+ __decorateClass([
521
+ (0, import_sequelize_typescript3.Column)({
522
+ field: "created_date",
523
+ allowNull: true,
524
+ type: import_sequelize_typescript3.DataType.DATE
525
+ })
526
+ ], msConsultChannels.prototype, "createdDate", 2);
527
+ __decorateClass([
528
+ (0, import_sequelize_typescript3.Column)({
529
+ field: "updated_by",
530
+ allowNull: true,
531
+ type: import_sequelize_typescript3.DataType.STRING(60)
532
+ })
533
+ ], msConsultChannels.prototype, "updatedBy", 2);
534
+ __decorateClass([
535
+ (0, import_sequelize_typescript3.Column)({
536
+ field: "updated_date",
537
+ allowNull: true,
538
+ type: import_sequelize_typescript3.DataType.DATE
88
539
  })
89
540
  ], msConsultChannels.prototype, "updatedDate", 2);
541
+ __decorateClass([
542
+ (0, import_sequelize_typescript3.HasMany)(() => appQueue, {
543
+ sourceKey: "id"
544
+ })
545
+ ], msConsultChannels.prototype, "appQueues", 2);
90
546
  msConsultChannels = __decorateClass([
91
- (0, import_sequelize_typescript.Table)({
547
+ (0, import_sequelize_typescript3.Table)({
92
548
  tableName: "ms_consult_channels",
93
549
  timestamps: false
94
550
  })
@@ -0,0 +1,28 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface msConsultSiteCaseAttributes {
4
+ id?: number;
5
+ siteId?: number;
6
+ caseId?: number;
7
+ name?: string;
8
+ detail?: string;
9
+ status?: number;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+ declare class msConsultSiteCase extends Model<msConsultSiteCaseAttributes, msConsultSiteCaseAttributes> implements msConsultSiteCaseAttributes {
16
+ id?: number;
17
+ siteId?: number;
18
+ caseId?: number;
19
+ name?: string;
20
+ detail?: string;
21
+ status?: number;
22
+ createdBy?: string;
23
+ createdDate?: Date;
24
+ updatedBy?: string;
25
+ updatedDate?: Date;
26
+ }
27
+
28
+ export { msConsultSiteCase, type msConsultSiteCaseAttributes };
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/tables/msConsultSiteCase.ts
29
+ var msConsultSiteCase_exports = {};
30
+ __export(msConsultSiteCase_exports, {
31
+ msConsultSiteCase: () => msConsultSiteCase
32
+ });
33
+ module.exports = __toCommonJS(msConsultSiteCase_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var msConsultSiteCase = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ autoIncrement: true,
41
+ type: import_sequelize_typescript.DataType.INTEGER
42
+ })
43
+ ], msConsultSiteCase.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "site_id",
47
+ allowNull: true,
48
+ type: import_sequelize_typescript.DataType.INTEGER
49
+ })
50
+ ], msConsultSiteCase.prototype, "siteId", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ field: "case_id",
54
+ allowNull: true,
55
+ type: import_sequelize_typescript.DataType.INTEGER
56
+ })
57
+ ], msConsultSiteCase.prototype, "caseId", 2);
58
+ __decorateClass([
59
+ (0, import_sequelize_typescript.Column)({
60
+ allowNull: true,
61
+ type: import_sequelize_typescript.DataType.STRING(255)
62
+ })
63
+ ], msConsultSiteCase.prototype, "name", 2);
64
+ __decorateClass([
65
+ (0, import_sequelize_typescript.Column)({
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.STRING
68
+ })
69
+ ], msConsultSiteCase.prototype, "detail", 2);
70
+ __decorateClass([
71
+ (0, import_sequelize_typescript.Column)({
72
+ allowNull: true,
73
+ type: import_sequelize_typescript.DataType.INTEGER
74
+ })
75
+ ], msConsultSiteCase.prototype, "status", 2);
76
+ __decorateClass([
77
+ (0, import_sequelize_typescript.Column)({
78
+ field: "created_by",
79
+ allowNull: true,
80
+ type: import_sequelize_typescript.DataType.STRING(60)
81
+ })
82
+ ], msConsultSiteCase.prototype, "createdBy", 2);
83
+ __decorateClass([
84
+ (0, import_sequelize_typescript.Column)({
85
+ field: "created_date",
86
+ allowNull: true,
87
+ type: import_sequelize_typescript.DataType.DATE
88
+ })
89
+ ], msConsultSiteCase.prototype, "createdDate", 2);
90
+ __decorateClass([
91
+ (0, import_sequelize_typescript.Column)({
92
+ field: "updated_by",
93
+ allowNull: true,
94
+ type: import_sequelize_typescript.DataType.STRING(60)
95
+ })
96
+ ], msConsultSiteCase.prototype, "updatedBy", 2);
97
+ __decorateClass([
98
+ (0, import_sequelize_typescript.Column)({
99
+ field: "updated_date",
100
+ allowNull: true,
101
+ type: import_sequelize_typescript.DataType.DATE
102
+ })
103
+ ], msConsultSiteCase.prototype, "updatedDate", 2);
104
+ msConsultSiteCase = __decorateClass([
105
+ (0, import_sequelize_typescript.Table)({
106
+ tableName: "ms_consult_site_case",
107
+ timestamps: false
108
+ })
109
+ ], msConsultSiteCase);
110
+ // Annotate the CommonJS export names for ESM import in node:
111
+ 0 && (module.exports = {
112
+ msConsultSiteCase
113
+ });
@@ -0,0 +1,26 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface msConsultSiteIssueAttributes {
4
+ id?: number;
5
+ siteId?: number;
6
+ name?: string;
7
+ detail?: string;
8
+ status?: number;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ updatedBy?: string;
12
+ updatedDate?: Date;
13
+ }
14
+ declare class msConsultSiteIssue extends Model<msConsultSiteIssueAttributes, msConsultSiteIssueAttributes> implements msConsultSiteIssueAttributes {
15
+ id?: number;
16
+ siteId?: number;
17
+ name?: string;
18
+ detail?: string;
19
+ status?: number;
20
+ createdBy?: string;
21
+ createdDate?: Date;
22
+ updatedBy?: string;
23
+ updatedDate?: Date;
24
+ }
25
+
26
+ export { msConsultSiteIssue, type msConsultSiteIssueAttributes };