@admc-go-th/admc-library 1.0.125 → 1.0.126

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.
@@ -0,0 +1,992 @@
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/mdQuestionnaireData.ts
29
+ var mdQuestionnaireData_exports = {};
30
+ __export(mdQuestionnaireData_exports, {
31
+ mdQuestionnaireData: () => mdQuestionnaireData
32
+ });
33
+ module.exports = __toCommonJS(mdQuestionnaireData_exports);
34
+ var import_sequelize_typescript9 = require("sequelize-typescript");
35
+
36
+ // src/databases/tables/mdQuestionnaire.ts
37
+ var import_sequelize_typescript8 = require("sequelize-typescript");
38
+
39
+ // src/databases/tables/users.ts
40
+ var import_sequelize_typescript7 = require("sequelize-typescript");
41
+
42
+ // src/databases/tables/authAssignment.ts
43
+ var import_sequelize_typescript3 = require("sequelize-typescript");
44
+
45
+ // src/databases/tables/authRole.ts
46
+ var import_sequelize_typescript2 = require("sequelize-typescript");
47
+
48
+ // src/databases/tables/authRoleChild.ts
49
+ var import_sequelize_typescript = require("sequelize-typescript");
50
+ var authRoleChild = class extends import_sequelize_typescript.Model {
51
+ };
52
+ __decorateClass([
53
+ (0, import_sequelize_typescript.ForeignKey)(() => authRole),
54
+ (0, import_sequelize_typescript.Column)({
55
+ field: "role_id",
56
+ primaryKey: true,
57
+ type: import_sequelize_typescript.DataType.INTEGER
58
+ })
59
+ ], authRoleChild.prototype, "roleId", 2);
60
+ __decorateClass([
61
+ (0, import_sequelize_typescript.Column)({
62
+ field: "key_name",
63
+ primaryKey: true,
64
+ type: import_sequelize_typescript.DataType.STRING(255)
65
+ })
66
+ ], authRoleChild.prototype, "keyName", 2);
67
+ __decorateClass([
68
+ (0, import_sequelize_typescript.Column)({
69
+ allowNull: true,
70
+ type: import_sequelize_typescript.DataType.JSON
71
+ })
72
+ ], authRoleChild.prototype, "permission", 2);
73
+ __decorateClass([
74
+ (0, import_sequelize_typescript.BelongsTo)(() => authRole)
75
+ ], authRoleChild.prototype, "authRole", 2);
76
+ authRoleChild = __decorateClass([
77
+ (0, import_sequelize_typescript.Table)({
78
+ tableName: "auth_role_child",
79
+ timestamps: false
80
+ })
81
+ ], authRoleChild);
82
+
83
+ // src/databases/tables/authRole.ts
84
+ var authRole = class extends import_sequelize_typescript2.Model {
85
+ };
86
+ __decorateClass([
87
+ (0, import_sequelize_typescript2.Column)({
88
+ primaryKey: true,
89
+ autoIncrement: true,
90
+ type: import_sequelize_typescript2.DataType.INTEGER
91
+ })
92
+ ], authRole.prototype, "id", 2);
93
+ __decorateClass([
94
+ (0, import_sequelize_typescript2.Column)({
95
+ type: import_sequelize_typescript2.DataType.STRING(60)
96
+ })
97
+ ], authRole.prototype, "uuid", 2);
98
+ __decorateClass([
99
+ (0, import_sequelize_typescript2.Column)({
100
+ type: import_sequelize_typescript2.DataType.STRING(100)
101
+ })
102
+ ], authRole.prototype, "name", 2);
103
+ __decorateClass([
104
+ (0, import_sequelize_typescript2.Column)({
105
+ allowNull: true,
106
+ type: import_sequelize_typescript2.DataType.STRING(255)
107
+ })
108
+ ], authRole.prototype, "display", 2);
109
+ __decorateClass([
110
+ (0, import_sequelize_typescript2.Column)({
111
+ allowNull: true,
112
+ type: import_sequelize_typescript2.DataType.INTEGER
113
+ })
114
+ ], authRole.prototype, "status", 2);
115
+ __decorateClass([
116
+ (0, import_sequelize_typescript2.Column)({
117
+ field: "created_by",
118
+ allowNull: true,
119
+ type: import_sequelize_typescript2.DataType.STRING(60)
120
+ })
121
+ ], authRole.prototype, "createdBy", 2);
122
+ __decorateClass([
123
+ (0, import_sequelize_typescript2.Column)({
124
+ field: "created_date",
125
+ allowNull: true,
126
+ type: import_sequelize_typescript2.DataType.DATE
127
+ })
128
+ ], authRole.prototype, "createdDate", 2);
129
+ __decorateClass([
130
+ (0, import_sequelize_typescript2.Column)({
131
+ field: "updated_by",
132
+ allowNull: true,
133
+ type: import_sequelize_typescript2.DataType.STRING(60)
134
+ })
135
+ ], authRole.prototype, "updatedBy", 2);
136
+ __decorateClass([
137
+ (0, import_sequelize_typescript2.Column)({
138
+ field: "updated_date",
139
+ allowNull: true,
140
+ type: import_sequelize_typescript2.DataType.DATE
141
+ })
142
+ ], authRole.prototype, "updatedDate", 2);
143
+ __decorateClass([
144
+ (0, import_sequelize_typescript2.HasMany)(() => authAssignment, {
145
+ sourceKey: "id"
146
+ })
147
+ ], authRole.prototype, "authAssignments", 2);
148
+ __decorateClass([
149
+ (0, import_sequelize_typescript2.HasMany)(() => authRoleChild, {
150
+ sourceKey: "id"
151
+ })
152
+ ], authRole.prototype, "authRoleChildren", 2);
153
+ authRole = __decorateClass([
154
+ (0, import_sequelize_typescript2.Table)({
155
+ tableName: "auth_role",
156
+ timestamps: false
157
+ })
158
+ ], authRole);
159
+
160
+ // src/databases/tables/authAssignment.ts
161
+ var authAssignment = class extends import_sequelize_typescript3.Model {
162
+ };
163
+ __decorateClass([
164
+ (0, import_sequelize_typescript3.ForeignKey)(() => authRole),
165
+ (0, import_sequelize_typescript3.Column)({
166
+ field: "role_id",
167
+ primaryKey: true,
168
+ type: import_sequelize_typescript3.DataType.INTEGER
169
+ })
170
+ ], authAssignment.prototype, "roleId", 2);
171
+ __decorateClass([
172
+ (0, import_sequelize_typescript3.ForeignKey)(() => users),
173
+ (0, import_sequelize_typescript3.Column)({
174
+ field: "user_id",
175
+ primaryKey: true,
176
+ type: import_sequelize_typescript3.DataType.INTEGER
177
+ })
178
+ ], authAssignment.prototype, "userId", 2);
179
+ __decorateClass([
180
+ (0, import_sequelize_typescript3.Column)({
181
+ field: "created_by",
182
+ allowNull: true,
183
+ type: import_sequelize_typescript3.DataType.STRING(60)
184
+ })
185
+ ], authAssignment.prototype, "createdBy", 2);
186
+ __decorateClass([
187
+ (0, import_sequelize_typescript3.Column)({
188
+ field: "created_date",
189
+ allowNull: true,
190
+ type: import_sequelize_typescript3.DataType.DATE
191
+ })
192
+ ], authAssignment.prototype, "createdDate", 2);
193
+ __decorateClass([
194
+ (0, import_sequelize_typescript3.Column)({
195
+ field: "updated_by",
196
+ allowNull: true,
197
+ type: import_sequelize_typescript3.DataType.STRING(60)
198
+ })
199
+ ], authAssignment.prototype, "updatedBy", 2);
200
+ __decorateClass([
201
+ (0, import_sequelize_typescript3.Column)({
202
+ field: "updated_date",
203
+ allowNull: true,
204
+ type: import_sequelize_typescript3.DataType.DATE
205
+ })
206
+ ], authAssignment.prototype, "updatedDate", 2);
207
+ __decorateClass([
208
+ (0, import_sequelize_typescript3.BelongsTo)(() => users)
209
+ ], authAssignment.prototype, "user", 2);
210
+ __decorateClass([
211
+ (0, import_sequelize_typescript3.BelongsTo)(() => authRole)
212
+ ], authAssignment.prototype, "authRole", 2);
213
+ authAssignment = __decorateClass([
214
+ (0, import_sequelize_typescript3.Table)({
215
+ tableName: "auth_assignment",
216
+ timestamps: false
217
+ })
218
+ ], authAssignment);
219
+
220
+ // src/databases/tables/mdContent.ts
221
+ var import_sequelize_typescript5 = require("sequelize-typescript");
222
+
223
+ // src/databases/tables/mdContentGroup.ts
224
+ var import_sequelize_typescript4 = require("sequelize-typescript");
225
+ var mdContentGroup = class extends import_sequelize_typescript4.Model {
226
+ };
227
+ __decorateClass([
228
+ (0, import_sequelize_typescript4.Column)({
229
+ primaryKey: true,
230
+ autoIncrement: true,
231
+ type: import_sequelize_typescript4.DataType.INTEGER
232
+ })
233
+ ], mdContentGroup.prototype, "id", 2);
234
+ __decorateClass([
235
+ (0, import_sequelize_typescript4.Column)({
236
+ allowNull: true,
237
+ type: import_sequelize_typescript4.DataType.STRING(60)
238
+ })
239
+ ], mdContentGroup.prototype, "uuid", 2);
240
+ __decorateClass([
241
+ (0, import_sequelize_typescript4.Column)({
242
+ field: "key_name",
243
+ allowNull: true,
244
+ type: import_sequelize_typescript4.DataType.STRING(100)
245
+ })
246
+ ], mdContentGroup.prototype, "keyName", 2);
247
+ __decorateClass([
248
+ (0, import_sequelize_typescript4.Column)({
249
+ type: import_sequelize_typescript4.DataType.STRING(255)
250
+ })
251
+ ], mdContentGroup.prototype, "name", 2);
252
+ __decorateClass([
253
+ (0, import_sequelize_typescript4.Column)({
254
+ allowNull: true,
255
+ type: import_sequelize_typescript4.DataType.STRING(255)
256
+ })
257
+ ], mdContentGroup.prototype, "description", 2);
258
+ __decorateClass([
259
+ (0, import_sequelize_typescript4.Column)({
260
+ allowNull: true,
261
+ type: import_sequelize_typescript4.DataType.INTEGER
262
+ })
263
+ ], mdContentGroup.prototype, "status", 2);
264
+ __decorateClass([
265
+ (0, import_sequelize_typescript4.Column)({
266
+ field: "created_by",
267
+ allowNull: true,
268
+ type: import_sequelize_typescript4.DataType.STRING(60)
269
+ })
270
+ ], mdContentGroup.prototype, "createdBy", 2);
271
+ __decorateClass([
272
+ (0, import_sequelize_typescript4.Column)({
273
+ field: "created_date",
274
+ allowNull: true,
275
+ type: import_sequelize_typescript4.DataType.DATE
276
+ })
277
+ ], mdContentGroup.prototype, "createdDate", 2);
278
+ __decorateClass([
279
+ (0, import_sequelize_typescript4.Column)({
280
+ field: "updated_by",
281
+ allowNull: true,
282
+ type: import_sequelize_typescript4.DataType.STRING(60)
283
+ })
284
+ ], mdContentGroup.prototype, "updatedBy", 2);
285
+ __decorateClass([
286
+ (0, import_sequelize_typescript4.Column)({
287
+ field: "updated_date",
288
+ allowNull: true,
289
+ type: import_sequelize_typescript4.DataType.DATE
290
+ })
291
+ ], mdContentGroup.prototype, "updatedDate", 2);
292
+ __decorateClass([
293
+ (0, import_sequelize_typescript4.HasMany)(() => mdContent, {
294
+ sourceKey: "id"
295
+ })
296
+ ], mdContentGroup.prototype, "mdContents", 2);
297
+ mdContentGroup = __decorateClass([
298
+ (0, import_sequelize_typescript4.Table)({
299
+ tableName: "md_content_group",
300
+ timestamps: false
301
+ })
302
+ ], mdContentGroup);
303
+
304
+ // src/databases/tables/mdContent.ts
305
+ var mdContent = class extends import_sequelize_typescript5.Model {
306
+ };
307
+ __decorateClass([
308
+ (0, import_sequelize_typescript5.Column)({
309
+ primaryKey: true,
310
+ autoIncrement: true,
311
+ type: import_sequelize_typescript5.DataType.INTEGER
312
+ })
313
+ ], mdContent.prototype, "id", 2);
314
+ __decorateClass([
315
+ (0, import_sequelize_typescript5.Column)({
316
+ type: import_sequelize_typescript5.DataType.STRING(60)
317
+ })
318
+ ], mdContent.prototype, "uuid", 2);
319
+ __decorateClass([
320
+ (0, import_sequelize_typescript5.Column)({
321
+ field: "key_name",
322
+ allowNull: true,
323
+ type: import_sequelize_typescript5.DataType.STRING(100)
324
+ })
325
+ ], mdContent.prototype, "keyName", 2);
326
+ __decorateClass([
327
+ (0, import_sequelize_typescript5.ForeignKey)(() => mdContentGroup),
328
+ (0, import_sequelize_typescript5.Column)({
329
+ field: "group_id",
330
+ allowNull: true,
331
+ type: import_sequelize_typescript5.DataType.INTEGER
332
+ })
333
+ ], mdContent.prototype, "groupId", 2);
334
+ __decorateClass([
335
+ (0, import_sequelize_typescript5.ForeignKey)(() => users),
336
+ (0, import_sequelize_typescript5.Column)({
337
+ field: "user_id",
338
+ type: import_sequelize_typescript5.DataType.INTEGER
339
+ })
340
+ ], mdContent.prototype, "userId", 2);
341
+ __decorateClass([
342
+ (0, import_sequelize_typescript5.Column)({
343
+ allowNull: true,
344
+ type: import_sequelize_typescript5.DataType.STRING(255)
345
+ })
346
+ ], mdContent.prototype, "title", 2);
347
+ __decorateClass([
348
+ (0, import_sequelize_typescript5.Column)({
349
+ allowNull: true,
350
+ type: import_sequelize_typescript5.DataType.STRING
351
+ })
352
+ ], mdContent.prototype, "description", 2);
353
+ __decorateClass([
354
+ (0, import_sequelize_typescript5.Column)({
355
+ allowNull: true,
356
+ type: import_sequelize_typescript5.DataType.STRING
357
+ })
358
+ ], mdContent.prototype, "detail", 2);
359
+ __decorateClass([
360
+ (0, import_sequelize_typescript5.Column)({
361
+ field: "meta_title",
362
+ allowNull: true,
363
+ type: import_sequelize_typescript5.DataType.STRING(255)
364
+ })
365
+ ], mdContent.prototype, "metaTitle", 2);
366
+ __decorateClass([
367
+ (0, import_sequelize_typescript5.Column)({
368
+ field: "meta_keyword",
369
+ allowNull: true,
370
+ type: import_sequelize_typescript5.DataType.STRING(255)
371
+ })
372
+ ], mdContent.prototype, "metaKeyword", 2);
373
+ __decorateClass([
374
+ (0, import_sequelize_typescript5.Column)({
375
+ field: "meta_description",
376
+ allowNull: true,
377
+ type: import_sequelize_typescript5.DataType.STRING(255)
378
+ })
379
+ ], mdContent.prototype, "metaDescription", 2);
380
+ __decorateClass([
381
+ (0, import_sequelize_typescript5.Column)({
382
+ field: "image_cover",
383
+ allowNull: true,
384
+ type: import_sequelize_typescript5.DataType.STRING(60)
385
+ })
386
+ ], mdContent.prototype, "imageCover", 2);
387
+ __decorateClass([
388
+ (0, import_sequelize_typescript5.Column)({
389
+ allowNull: true,
390
+ type: import_sequelize_typescript5.DataType.STRING(60)
391
+ })
392
+ ], mdContent.prototype, "video", 2);
393
+ __decorateClass([
394
+ (0, import_sequelize_typescript5.Column)({
395
+ field: "image_gallery",
396
+ allowNull: true,
397
+ type: import_sequelize_typescript5.DataType.JSON
398
+ })
399
+ ], mdContent.prototype, "imageGallery", 2);
400
+ __decorateClass([
401
+ (0, import_sequelize_typescript5.Column)({
402
+ allowNull: true,
403
+ type: import_sequelize_typescript5.DataType.JSON
404
+ })
405
+ ], mdContent.prototype, "attachments", 2);
406
+ __decorateClass([
407
+ (0, import_sequelize_typescript5.Column)({
408
+ allowNull: true,
409
+ type: import_sequelize_typescript5.DataType.INTEGER
410
+ })
411
+ ], mdContent.prototype, "sort", 2);
412
+ __decorateClass([
413
+ (0, import_sequelize_typescript5.Column)({
414
+ allowNull: true,
415
+ type: import_sequelize_typescript5.DataType.INTEGER
416
+ })
417
+ ], mdContent.prototype, "publish", 2);
418
+ __decorateClass([
419
+ (0, import_sequelize_typescript5.Column)({
420
+ allowNull: true,
421
+ type: import_sequelize_typescript5.DataType.INTEGER
422
+ })
423
+ ], mdContent.prototype, "status", 2);
424
+ __decorateClass([
425
+ (0, import_sequelize_typescript5.Column)({
426
+ allowNull: true,
427
+ type: import_sequelize_typescript5.DataType.INTEGER
428
+ })
429
+ ], mdContent.prototype, "view", 2);
430
+ __decorateClass([
431
+ (0, import_sequelize_typescript5.Column)({
432
+ field: "has_expire",
433
+ allowNull: true,
434
+ type: import_sequelize_typescript5.DataType.INTEGER
435
+ })
436
+ ], mdContent.prototype, "hasExpire", 2);
437
+ __decorateClass([
438
+ (0, import_sequelize_typescript5.Column)({
439
+ field: "start_date",
440
+ allowNull: true,
441
+ type: import_sequelize_typescript5.DataType.DATE
442
+ })
443
+ ], mdContent.prototype, "startDate", 2);
444
+ __decorateClass([
445
+ (0, import_sequelize_typescript5.Column)({
446
+ field: "expire_date",
447
+ allowNull: true,
448
+ type: import_sequelize_typescript5.DataType.DATE
449
+ })
450
+ ], mdContent.prototype, "expireDate", 2);
451
+ __decorateClass([
452
+ (0, import_sequelize_typescript5.Column)({
453
+ field: "created_by",
454
+ allowNull: true,
455
+ type: import_sequelize_typescript5.DataType.STRING(60)
456
+ })
457
+ ], mdContent.prototype, "createdBy", 2);
458
+ __decorateClass([
459
+ (0, import_sequelize_typescript5.Column)({
460
+ field: "created_date",
461
+ allowNull: true,
462
+ type: import_sequelize_typescript5.DataType.DATE
463
+ })
464
+ ], mdContent.prototype, "createdDate", 2);
465
+ __decorateClass([
466
+ (0, import_sequelize_typescript5.Column)({
467
+ field: "updated_by",
468
+ allowNull: true,
469
+ type: import_sequelize_typescript5.DataType.STRING(60)
470
+ })
471
+ ], mdContent.prototype, "updatedBy", 2);
472
+ __decorateClass([
473
+ (0, import_sequelize_typescript5.Column)({
474
+ field: "updated_date",
475
+ allowNull: true,
476
+ type: import_sequelize_typescript5.DataType.DATE
477
+ })
478
+ ], mdContent.prototype, "updatedDate", 2);
479
+ __decorateClass([
480
+ (0, import_sequelize_typescript5.BelongsTo)(() => users)
481
+ ], mdContent.prototype, "user", 2);
482
+ __decorateClass([
483
+ (0, import_sequelize_typescript5.BelongsTo)(() => mdContentGroup)
484
+ ], mdContent.prototype, "mdContentGroup", 2);
485
+ mdContent = __decorateClass([
486
+ (0, import_sequelize_typescript5.Table)({
487
+ tableName: "md_content",
488
+ timestamps: false
489
+ })
490
+ ], mdContent);
491
+
492
+ // src/databases/tables/usersVerify.ts
493
+ var import_sequelize_typescript6 = require("sequelize-typescript");
494
+ var usersVerify = class extends import_sequelize_typescript6.Model {
495
+ };
496
+ __decorateClass([
497
+ (0, import_sequelize_typescript6.Column)({
498
+ primaryKey: true,
499
+ autoIncrement: true,
500
+ type: import_sequelize_typescript6.DataType.INTEGER
501
+ })
502
+ ], usersVerify.prototype, "id", 2);
503
+ __decorateClass([
504
+ (0, import_sequelize_typescript6.ForeignKey)(() => users),
505
+ (0, import_sequelize_typescript6.Column)({
506
+ field: "user_id",
507
+ allowNull: true,
508
+ type: import_sequelize_typescript6.DataType.INTEGER
509
+ })
510
+ ], usersVerify.prototype, "userId", 2);
511
+ __decorateClass([
512
+ (0, import_sequelize_typescript6.Column)({
513
+ allowNull: true,
514
+ type: import_sequelize_typescript6.DataType.INTEGER,
515
+ comment: "0 = email",
516
+ defaultValue: "0"
517
+ })
518
+ ], usersVerify.prototype, "type", 2);
519
+ __decorateClass([
520
+ (0, import_sequelize_typescript6.Column)({
521
+ allowNull: true,
522
+ type: import_sequelize_typescript6.DataType.STRING(50)
523
+ })
524
+ ], usersVerify.prototype, "code", 2);
525
+ __decorateClass([
526
+ (0, import_sequelize_typescript6.Column)({
527
+ allowNull: true,
528
+ type: import_sequelize_typescript6.DataType.STRING(50)
529
+ })
530
+ ], usersVerify.prototype, "reference", 2);
531
+ __decorateClass([
532
+ (0, import_sequelize_typescript6.Column)({
533
+ allowNull: true,
534
+ type: import_sequelize_typescript6.DataType.INTEGER,
535
+ comment: "0 = wait, 1 = verified",
536
+ defaultValue: "0"
537
+ })
538
+ ], usersVerify.prototype, "status", 2);
539
+ __decorateClass([
540
+ (0, import_sequelize_typescript6.Column)({
541
+ field: "created_date",
542
+ allowNull: true,
543
+ type: import_sequelize_typescript6.DataType.DATE
544
+ })
545
+ ], usersVerify.prototype, "createdDate", 2);
546
+ __decorateClass([
547
+ (0, import_sequelize_typescript6.BelongsTo)(() => users)
548
+ ], usersVerify.prototype, "user", 2);
549
+ usersVerify = __decorateClass([
550
+ (0, import_sequelize_typescript6.Table)({
551
+ tableName: "users_verify",
552
+ timestamps: false
553
+ })
554
+ ], usersVerify);
555
+
556
+ // src/databases/tables/users.ts
557
+ var users = class extends import_sequelize_typescript7.Model {
558
+ };
559
+ __decorateClass([
560
+ (0, import_sequelize_typescript7.Column)({
561
+ primaryKey: true,
562
+ autoIncrement: true,
563
+ type: import_sequelize_typescript7.DataType.INTEGER
564
+ })
565
+ ], users.prototype, "id", 2);
566
+ __decorateClass([
567
+ (0, import_sequelize_typescript7.Column)({
568
+ type: import_sequelize_typescript7.DataType.STRING(60)
569
+ })
570
+ ], users.prototype, "uuid", 2);
571
+ __decorateClass([
572
+ (0, import_sequelize_typescript7.Column)({
573
+ type: import_sequelize_typescript7.DataType.STRING(100)
574
+ })
575
+ ], users.prototype, "username", 2);
576
+ __decorateClass([
577
+ (0, import_sequelize_typescript7.Column)({
578
+ field: "password_hash",
579
+ allowNull: true,
580
+ type: import_sequelize_typescript7.DataType.STRING(255)
581
+ })
582
+ ], users.prototype, "passwordHash", 2);
583
+ __decorateClass([
584
+ (0, import_sequelize_typescript7.Column)({
585
+ field: "password_reset_token",
586
+ allowNull: true,
587
+ type: import_sequelize_typescript7.DataType.STRING(255)
588
+ })
589
+ ], users.prototype, "passwordResetToken", 2);
590
+ __decorateClass([
591
+ (0, import_sequelize_typescript7.Column)({
592
+ field: "verification_token",
593
+ allowNull: true,
594
+ type: import_sequelize_typescript7.DataType.STRING(255)
595
+ })
596
+ ], users.prototype, "verificationToken", 2);
597
+ __decorateClass([
598
+ (0, import_sequelize_typescript7.Column)({
599
+ allowNull: true,
600
+ type: import_sequelize_typescript7.DataType.STRING(255)
601
+ })
602
+ ], users.prototype, "email", 2);
603
+ __decorateClass([
604
+ (0, import_sequelize_typescript7.Column)({
605
+ field: "auth_key",
606
+ allowNull: true,
607
+ type: import_sequelize_typescript7.DataType.STRING(32)
608
+ })
609
+ ], users.prototype, "authKey", 2);
610
+ __decorateClass([
611
+ (0, import_sequelize_typescript7.Column)({
612
+ field: "secret_key",
613
+ allowNull: true,
614
+ type: import_sequelize_typescript7.DataType.STRING(255)
615
+ })
616
+ ], users.prototype, "secretKey", 2);
617
+ __decorateClass([
618
+ (0, import_sequelize_typescript7.Column)({
619
+ field: "access_token",
620
+ allowNull: true,
621
+ type: import_sequelize_typescript7.DataType.STRING
622
+ })
623
+ ], users.prototype, "accessToken", 2);
624
+ __decorateClass([
625
+ (0, import_sequelize_typescript7.Column)({
626
+ field: "user_level",
627
+ allowNull: true,
628
+ type: import_sequelize_typescript7.DataType.INTEGER
629
+ })
630
+ ], users.prototype, "userLevel", 2);
631
+ __decorateClass([
632
+ (0, import_sequelize_typescript7.Column)({
633
+ field: "user_authen",
634
+ allowNull: true,
635
+ type: import_sequelize_typescript7.DataType.STRING(64)
636
+ })
637
+ ], users.prototype, "userAuthen", 2);
638
+ __decorateClass([
639
+ (0, import_sequelize_typescript7.Column)({
640
+ field: "user_type",
641
+ allowNull: true,
642
+ type: import_sequelize_typescript7.DataType.INTEGER
643
+ })
644
+ ], users.prototype, "userType", 2);
645
+ __decorateClass([
646
+ (0, import_sequelize_typescript7.Column)({
647
+ allowNull: true,
648
+ type: import_sequelize_typescript7.DataType.STRING(10)
649
+ })
650
+ ], users.prototype, "prefix", 2);
651
+ __decorateClass([
652
+ (0, import_sequelize_typescript7.Column)({
653
+ field: "first_name",
654
+ allowNull: true,
655
+ type: import_sequelize_typescript7.DataType.STRING(100)
656
+ })
657
+ ], users.prototype, "firstName", 2);
658
+ __decorateClass([
659
+ (0, import_sequelize_typescript7.Column)({
660
+ field: "last_name",
661
+ allowNull: true,
662
+ type: import_sequelize_typescript7.DataType.STRING(100)
663
+ })
664
+ ], users.prototype, "lastName", 2);
665
+ __decorateClass([
666
+ (0, import_sequelize_typescript7.Column)({
667
+ allowNull: true,
668
+ type: import_sequelize_typescript7.DataType.STRING(20)
669
+ })
670
+ ], users.prototype, "phone", 2);
671
+ __decorateClass([
672
+ (0, import_sequelize_typescript7.Column)({
673
+ allowNull: true,
674
+ type: import_sequelize_typescript7.DataType.SMALLINT
675
+ })
676
+ ], users.prototype, "status", 2);
677
+ __decorateClass([
678
+ (0, import_sequelize_typescript7.Column)({
679
+ allowNull: true,
680
+ type: import_sequelize_typescript7.DataType.INTEGER
681
+ })
682
+ ], users.prototype, "is_2fa", 2);
683
+ __decorateClass([
684
+ (0, import_sequelize_typescript7.Column)({
685
+ field: "created_by",
686
+ allowNull: true,
687
+ type: import_sequelize_typescript7.DataType.STRING(60)
688
+ })
689
+ ], users.prototype, "createdBy", 2);
690
+ __decorateClass([
691
+ (0, import_sequelize_typescript7.Column)({
692
+ field: "created_date",
693
+ allowNull: true,
694
+ type: import_sequelize_typescript7.DataType.DATE
695
+ })
696
+ ], users.prototype, "createdDate", 2);
697
+ __decorateClass([
698
+ (0, import_sequelize_typescript7.Column)({
699
+ field: "updated_by",
700
+ allowNull: true,
701
+ type: import_sequelize_typescript7.DataType.STRING(60)
702
+ })
703
+ ], users.prototype, "updatedBy", 2);
704
+ __decorateClass([
705
+ (0, import_sequelize_typescript7.Column)({
706
+ field: "updated_date",
707
+ allowNull: true,
708
+ type: import_sequelize_typescript7.DataType.DATE
709
+ })
710
+ ], users.prototype, "updatedDate", 2);
711
+ __decorateClass([
712
+ (0, import_sequelize_typescript7.Column)({
713
+ allowNull: true,
714
+ type: import_sequelize_typescript7.DataType.STRING(255)
715
+ })
716
+ ], users.prototype, "address", 2);
717
+ __decorateClass([
718
+ (0, import_sequelize_typescript7.Column)({
719
+ allowNull: true,
720
+ type: import_sequelize_typescript7.DataType.STRING(255)
721
+ })
722
+ ], users.prototype, "other", 2);
723
+ __decorateClass([
724
+ (0, import_sequelize_typescript7.Column)({
725
+ field: "is_email_verified",
726
+ allowNull: true,
727
+ type: import_sequelize_typescript7.DataType.INTEGER
728
+ })
729
+ ], users.prototype, "isEmailVerified", 2);
730
+ __decorateClass([
731
+ (0, import_sequelize_typescript7.Column)({
732
+ field: "photo_uuid",
733
+ allowNull: true,
734
+ type: import_sequelize_typescript7.DataType.STRING(60)
735
+ })
736
+ ], users.prototype, "photoUuid", 2);
737
+ __decorateClass([
738
+ (0, import_sequelize_typescript7.HasMany)(() => authAssignment, {
739
+ sourceKey: "id"
740
+ })
741
+ ], users.prototype, "authAssignments", 2);
742
+ __decorateClass([
743
+ (0, import_sequelize_typescript7.HasMany)(() => mdContent, {
744
+ sourceKey: "id"
745
+ })
746
+ ], users.prototype, "mdContents", 2);
747
+ __decorateClass([
748
+ (0, import_sequelize_typescript7.HasMany)(() => mdQuestionnaire, {
749
+ sourceKey: "id"
750
+ })
751
+ ], users.prototype, "mdQuestionnaires", 2);
752
+ __decorateClass([
753
+ (0, import_sequelize_typescript7.HasMany)(() => usersVerify, {
754
+ sourceKey: "id"
755
+ })
756
+ ], users.prototype, "usersVerifies", 2);
757
+ users = __decorateClass([
758
+ (0, import_sequelize_typescript7.Table)({
759
+ tableName: "users",
760
+ timestamps: false
761
+ })
762
+ ], users);
763
+
764
+ // src/databases/tables/mdQuestionnaire.ts
765
+ var mdQuestionnaire = class extends import_sequelize_typescript8.Model {
766
+ };
767
+ __decorateClass([
768
+ (0, import_sequelize_typescript8.Column)({
769
+ primaryKey: true,
770
+ autoIncrement: true,
771
+ type: import_sequelize_typescript8.DataType.INTEGER
772
+ })
773
+ ], mdQuestionnaire.prototype, "id", 2);
774
+ __decorateClass([
775
+ (0, import_sequelize_typescript8.Column)({
776
+ allowNull: true,
777
+ type: import_sequelize_typescript8.DataType.STRING(60)
778
+ })
779
+ ], mdQuestionnaire.prototype, "uuid", 2);
780
+ __decorateClass([
781
+ (0, import_sequelize_typescript8.Column)({
782
+ field: "key_name",
783
+ allowNull: true,
784
+ type: import_sequelize_typescript8.DataType.STRING(100)
785
+ })
786
+ ], mdQuestionnaire.prototype, "keyName", 2);
787
+ __decorateClass([
788
+ (0, import_sequelize_typescript8.ForeignKey)(() => users),
789
+ (0, import_sequelize_typescript8.Column)({
790
+ field: "user_id",
791
+ allowNull: true,
792
+ type: import_sequelize_typescript8.DataType.INTEGER
793
+ })
794
+ ], mdQuestionnaire.prototype, "userId", 2);
795
+ __decorateClass([
796
+ (0, import_sequelize_typescript8.Column)({
797
+ allowNull: true,
798
+ type: import_sequelize_typescript8.DataType.STRING(255)
799
+ })
800
+ ], mdQuestionnaire.prototype, "title", 2);
801
+ __decorateClass([
802
+ (0, import_sequelize_typescript8.Column)({
803
+ allowNull: true,
804
+ type: import_sequelize_typescript8.DataType.STRING
805
+ })
806
+ ], mdQuestionnaire.prototype, "description", 2);
807
+ __decorateClass([
808
+ (0, import_sequelize_typescript8.Column)({
809
+ allowNull: true,
810
+ type: import_sequelize_typescript8.DataType.JSON
811
+ })
812
+ ], mdQuestionnaire.prototype, "forms", 2);
813
+ __decorateClass([
814
+ (0, import_sequelize_typescript8.Column)({
815
+ field: "confirm_message",
816
+ allowNull: true,
817
+ type: import_sequelize_typescript8.DataType.STRING(255)
818
+ })
819
+ ], mdQuestionnaire.prototype, "confirmMessage", 2);
820
+ __decorateClass([
821
+ (0, import_sequelize_typescript8.Column)({
822
+ allowNull: true,
823
+ type: import_sequelize_typescript8.DataType.STRING(60)
824
+ })
825
+ ], mdQuestionnaire.prototype, "submitter", 2);
826
+ __decorateClass([
827
+ (0, import_sequelize_typescript8.Column)({
828
+ allowNull: true,
829
+ type: import_sequelize_typescript8.DataType.INTEGER
830
+ })
831
+ ], mdQuestionnaire.prototype, "sort", 2);
832
+ __decorateClass([
833
+ (0, import_sequelize_typescript8.Column)({
834
+ allowNull: true,
835
+ type: import_sequelize_typescript8.DataType.INTEGER
836
+ })
837
+ ], mdQuestionnaire.prototype, "status", 2);
838
+ __decorateClass([
839
+ (0, import_sequelize_typescript8.Column)({
840
+ allowNull: true,
841
+ type: import_sequelize_typescript8.DataType.INTEGER
842
+ })
843
+ ], mdQuestionnaire.prototype, "views", 2);
844
+ __decorateClass([
845
+ (0, import_sequelize_typescript8.Column)({
846
+ field: "has_expire",
847
+ allowNull: true,
848
+ type: import_sequelize_typescript8.DataType.INTEGER
849
+ })
850
+ ], mdQuestionnaire.prototype, "hasExpire", 2);
851
+ __decorateClass([
852
+ (0, import_sequelize_typescript8.Column)({
853
+ field: "start_date",
854
+ allowNull: true,
855
+ type: import_sequelize_typescript8.DataType.DATE
856
+ })
857
+ ], mdQuestionnaire.prototype, "startDate", 2);
858
+ __decorateClass([
859
+ (0, import_sequelize_typescript8.Column)({
860
+ field: "expire_date",
861
+ allowNull: true,
862
+ type: import_sequelize_typescript8.DataType.DATE
863
+ })
864
+ ], mdQuestionnaire.prototype, "expireDate", 2);
865
+ __decorateClass([
866
+ (0, import_sequelize_typescript8.Column)({
867
+ field: "created_by",
868
+ allowNull: true,
869
+ type: import_sequelize_typescript8.DataType.STRING(60)
870
+ })
871
+ ], mdQuestionnaire.prototype, "createdBy", 2);
872
+ __decorateClass([
873
+ (0, import_sequelize_typescript8.Column)({
874
+ field: "created_date",
875
+ allowNull: true,
876
+ type: import_sequelize_typescript8.DataType.DATE
877
+ })
878
+ ], mdQuestionnaire.prototype, "createdDate", 2);
879
+ __decorateClass([
880
+ (0, import_sequelize_typescript8.Column)({
881
+ field: "updated_by",
882
+ allowNull: true,
883
+ type: import_sequelize_typescript8.DataType.STRING(60)
884
+ })
885
+ ], mdQuestionnaire.prototype, "updatedBy", 2);
886
+ __decorateClass([
887
+ (0, import_sequelize_typescript8.Column)({
888
+ field: "updated_date",
889
+ allowNull: true,
890
+ type: import_sequelize_typescript8.DataType.DATE
891
+ })
892
+ ], mdQuestionnaire.prototype, "updatedDate", 2);
893
+ __decorateClass([
894
+ (0, import_sequelize_typescript8.BelongsTo)(() => users)
895
+ ], mdQuestionnaire.prototype, "user", 2);
896
+ __decorateClass([
897
+ (0, import_sequelize_typescript8.HasMany)(() => mdQuestionnaireData, {
898
+ sourceKey: "id"
899
+ })
900
+ ], mdQuestionnaire.prototype, "mdQuestionnaireData", 2);
901
+ mdQuestionnaire = __decorateClass([
902
+ (0, import_sequelize_typescript8.Table)({
903
+ tableName: "md_questionnaire",
904
+ timestamps: false
905
+ })
906
+ ], mdQuestionnaire);
907
+
908
+ // src/databases/tables/mdQuestionnaireData.ts
909
+ var mdQuestionnaireData = class extends import_sequelize_typescript9.Model {
910
+ };
911
+ __decorateClass([
912
+ (0, import_sequelize_typescript9.Column)({
913
+ primaryKey: true,
914
+ autoIncrement: true,
915
+ type: import_sequelize_typescript9.DataType.INTEGER
916
+ })
917
+ ], mdQuestionnaireData.prototype, "id", 2);
918
+ __decorateClass([
919
+ (0, import_sequelize_typescript9.Column)({
920
+ allowNull: true,
921
+ type: import_sequelize_typescript9.DataType.STRING(60)
922
+ })
923
+ ], mdQuestionnaireData.prototype, "uuid", 2);
924
+ __decorateClass([
925
+ (0, import_sequelize_typescript9.ForeignKey)(() => mdQuestionnaire),
926
+ (0, import_sequelize_typescript9.Column)({
927
+ field: "questionnaire_id",
928
+ allowNull: true,
929
+ type: import_sequelize_typescript9.DataType.INTEGER
930
+ })
931
+ ], mdQuestionnaireData.prototype, "questionnaireId", 2);
932
+ __decorateClass([
933
+ (0, import_sequelize_typescript9.Column)({
934
+ field: "data_info",
935
+ allowNull: true,
936
+ type: import_sequelize_typescript9.DataType.JSON
937
+ })
938
+ ], mdQuestionnaireData.prototype, "dataInfo", 2);
939
+ __decorateClass([
940
+ (0, import_sequelize_typescript9.Column)({
941
+ allowNull: true,
942
+ type: import_sequelize_typescript9.DataType.INTEGER
943
+ })
944
+ ], mdQuestionnaireData.prototype, "status", 2);
945
+ __decorateClass([
946
+ (0, import_sequelize_typescript9.Column)({
947
+ field: "ip_address",
948
+ allowNull: true,
949
+ type: import_sequelize_typescript9.DataType.STRING(255)
950
+ })
951
+ ], mdQuestionnaireData.prototype, "ipAddress", 2);
952
+ __decorateClass([
953
+ (0, import_sequelize_typescript9.Column)({
954
+ field: "created_by",
955
+ allowNull: true,
956
+ type: import_sequelize_typescript9.DataType.STRING(60)
957
+ })
958
+ ], mdQuestionnaireData.prototype, "createdBy", 2);
959
+ __decorateClass([
960
+ (0, import_sequelize_typescript9.Column)({
961
+ field: "created_date",
962
+ allowNull: true,
963
+ type: import_sequelize_typescript9.DataType.DATE
964
+ })
965
+ ], mdQuestionnaireData.prototype, "createdDate", 2);
966
+ __decorateClass([
967
+ (0, import_sequelize_typescript9.Column)({
968
+ field: "updated_by",
969
+ allowNull: true,
970
+ type: import_sequelize_typescript9.DataType.STRING(60)
971
+ })
972
+ ], mdQuestionnaireData.prototype, "updatedBy", 2);
973
+ __decorateClass([
974
+ (0, import_sequelize_typescript9.Column)({
975
+ field: "updated_date",
976
+ allowNull: true,
977
+ type: import_sequelize_typescript9.DataType.DATE
978
+ })
979
+ ], mdQuestionnaireData.prototype, "updatedDate", 2);
980
+ __decorateClass([
981
+ (0, import_sequelize_typescript9.BelongsTo)(() => mdQuestionnaire)
982
+ ], mdQuestionnaireData.prototype, "mdQuestionnaire", 2);
983
+ mdQuestionnaireData = __decorateClass([
984
+ (0, import_sequelize_typescript9.Table)({
985
+ tableName: "md_questionnaire_data",
986
+ timestamps: false
987
+ })
988
+ ], mdQuestionnaireData);
989
+ // Annotate the CommonJS export names for ESM import in node:
990
+ 0 && (module.exports = {
991
+ mdQuestionnaireData
992
+ });