@admc-go-th/admc-library 1.0.124 → 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.
- package/{appReportCorruption-4BY0wm49.d.ts → appReportCorruption-BsdsQQ1q.d.ts} +2 -0
- package/{authAssignment-BSZ2AlIE.d.ts → authAssignment-Te_XO-S8.d.ts} +28 -1
- package/databases/schema/appQueue.ts +15 -0
- package/databases/schema/appQueueTour.ts +7 -0
- package/databases/schema/appReportCorruption.ts +9 -1
- package/databases/schema/index.ts +5 -0
- package/databases/schema/mdQuestionnaire.ts +7 -1
- package/databases/schema/mdQuestionnaireData.ts +97 -0
- package/databases/schema/msConsultSiteChannel.ts +77 -0
- package/databases/schema/msConsultSiteHoliday.ts +99 -0
- package/databases/schema/msConsultSiteStaff.ts +76 -0
- package/databases/schema/msVariable.ts +68 -0
- package/databases/tables/appQueue.d.ts +4 -0
- package/databases/tables/appQueue.js +13 -0
- package/databases/tables/appQueueTour.d.ts +2 -0
- package/databases/tables/appQueueTour.js +6 -0
- package/databases/tables/appReportCorruption.d.ts +1 -1
- package/databases/tables/appReportCorruption.js +8 -1
- package/databases/tables/appReportCorruptionTransaction.d.ts +1 -1
- package/databases/tables/appReportCorruptionTransaction.js +8 -1
- package/databases/tables/authAssignment.d.ts +1 -1
- package/databases/tables/authAssignment.js +262 -172
- package/databases/tables/authRole.d.ts +1 -1
- package/databases/tables/authRole.js +262 -172
- package/databases/tables/authRoleChild.d.ts +1 -1
- package/databases/tables/authRoleChild.js +262 -172
- package/databases/tables/index.d.ts +6 -2
- package/databases/tables/index.js +2510 -2110
- package/databases/tables/mdContent.d.ts +1 -1
- package/databases/tables/mdContent.js +292 -202
- package/databases/tables/mdContentGroup.d.ts +1 -1
- package/databases/tables/mdContentGroup.js +292 -202
- package/databases/tables/mdQuestionnaire.d.ts +1 -1
- package/databases/tables/mdQuestionnaire.js +129 -41
- package/databases/tables/mdQuestionnaireData.d.ts +2 -0
- package/databases/tables/mdQuestionnaireData.js +992 -0
- package/databases/tables/msConsultSiteChannel.d.ts +24 -0
- package/databases/tables/msConsultSiteChannel.js +101 -0
- package/databases/tables/msConsultSiteHoliday.d.ts +30 -0
- package/databases/tables/msConsultSiteHoliday.js +120 -0
- package/databases/tables/msConsultSiteStaff.d.ts +24 -0
- package/databases/tables/msConsultSiteStaff.js +100 -0
- package/databases/tables/msVariable.d.ts +22 -0
- package/databases/tables/msVariable.js +93 -0
- package/databases/tables/users.d.ts +1 -1
- package/databases/tables/users.js +209 -119
- package/databases/tables/usersVerify.d.ts +1 -1
- package/databases/tables/usersVerify.js +209 -119
- package/package.json +1 -1
|
@@ -31,13 +31,13 @@ __export(authRole_exports, {
|
|
|
31
31
|
authRole: () => authRole
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(authRole_exports);
|
|
34
|
-
var
|
|
34
|
+
var import_sequelize_typescript9 = require("sequelize-typescript");
|
|
35
35
|
|
|
36
36
|
// src/databases/tables/authAssignment.ts
|
|
37
|
-
var
|
|
37
|
+
var import_sequelize_typescript7 = require("sequelize-typescript");
|
|
38
38
|
|
|
39
39
|
// src/databases/tables/users.ts
|
|
40
|
-
var
|
|
40
|
+
var import_sequelize_typescript6 = require("sequelize-typescript");
|
|
41
41
|
|
|
42
42
|
// src/databases/tables/mdContent.ts
|
|
43
43
|
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
@@ -312,8 +312,11 @@ mdContent = __decorateClass([
|
|
|
312
312
|
], mdContent);
|
|
313
313
|
|
|
314
314
|
// src/databases/tables/mdQuestionnaire.ts
|
|
315
|
+
var import_sequelize_typescript4 = require("sequelize-typescript");
|
|
316
|
+
|
|
317
|
+
// src/databases/tables/mdQuestionnaireData.ts
|
|
315
318
|
var import_sequelize_typescript3 = require("sequelize-typescript");
|
|
316
|
-
var
|
|
319
|
+
var mdQuestionnaireData = class extends import_sequelize_typescript3.Model {
|
|
317
320
|
};
|
|
318
321
|
__decorateClass([
|
|
319
322
|
(0, import_sequelize_typescript3.Column)({
|
|
@@ -321,575 +324,662 @@ __decorateClass([
|
|
|
321
324
|
autoIncrement: true,
|
|
322
325
|
type: import_sequelize_typescript3.DataType.INTEGER
|
|
323
326
|
})
|
|
324
|
-
],
|
|
327
|
+
], mdQuestionnaireData.prototype, "id", 2);
|
|
325
328
|
__decorateClass([
|
|
326
329
|
(0, import_sequelize_typescript3.Column)({
|
|
327
330
|
allowNull: true,
|
|
328
331
|
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
329
332
|
})
|
|
330
|
-
],
|
|
333
|
+
], mdQuestionnaireData.prototype, "uuid", 2);
|
|
331
334
|
__decorateClass([
|
|
335
|
+
(0, import_sequelize_typescript3.ForeignKey)(() => mdQuestionnaire),
|
|
332
336
|
(0, import_sequelize_typescript3.Column)({
|
|
333
|
-
field: "
|
|
337
|
+
field: "questionnaire_id",
|
|
334
338
|
allowNull: true,
|
|
335
|
-
type: import_sequelize_typescript3.DataType.
|
|
339
|
+
type: import_sequelize_typescript3.DataType.INTEGER
|
|
336
340
|
})
|
|
337
|
-
],
|
|
341
|
+
], mdQuestionnaireData.prototype, "questionnaireId", 2);
|
|
342
|
+
__decorateClass([
|
|
343
|
+
(0, import_sequelize_typescript3.Column)({
|
|
344
|
+
field: "data_info",
|
|
345
|
+
allowNull: true,
|
|
346
|
+
type: import_sequelize_typescript3.DataType.JSON
|
|
347
|
+
})
|
|
348
|
+
], mdQuestionnaireData.prototype, "dataInfo", 2);
|
|
338
349
|
__decorateClass([
|
|
339
|
-
(0, import_sequelize_typescript3.ForeignKey)(() => users),
|
|
340
350
|
(0, import_sequelize_typescript3.Column)({
|
|
341
|
-
field: "user_id",
|
|
342
351
|
allowNull: true,
|
|
343
352
|
type: import_sequelize_typescript3.DataType.INTEGER
|
|
344
353
|
})
|
|
345
|
-
],
|
|
354
|
+
], mdQuestionnaireData.prototype, "status", 2);
|
|
346
355
|
__decorateClass([
|
|
347
356
|
(0, import_sequelize_typescript3.Column)({
|
|
357
|
+
field: "ip_address",
|
|
348
358
|
allowNull: true,
|
|
349
359
|
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
350
360
|
})
|
|
351
|
-
],
|
|
361
|
+
], mdQuestionnaireData.prototype, "ipAddress", 2);
|
|
352
362
|
__decorateClass([
|
|
353
363
|
(0, import_sequelize_typescript3.Column)({
|
|
364
|
+
field: "created_by",
|
|
354
365
|
allowNull: true,
|
|
355
|
-
type: import_sequelize_typescript3.DataType.STRING
|
|
366
|
+
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
356
367
|
})
|
|
357
|
-
],
|
|
368
|
+
], mdQuestionnaireData.prototype, "createdBy", 2);
|
|
358
369
|
__decorateClass([
|
|
359
370
|
(0, import_sequelize_typescript3.Column)({
|
|
371
|
+
field: "created_date",
|
|
360
372
|
allowNull: true,
|
|
361
|
-
type: import_sequelize_typescript3.DataType.
|
|
373
|
+
type: import_sequelize_typescript3.DataType.DATE
|
|
362
374
|
})
|
|
363
|
-
],
|
|
375
|
+
], mdQuestionnaireData.prototype, "createdDate", 2);
|
|
364
376
|
__decorateClass([
|
|
365
377
|
(0, import_sequelize_typescript3.Column)({
|
|
378
|
+
field: "updated_by",
|
|
379
|
+
allowNull: true,
|
|
380
|
+
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
381
|
+
})
|
|
382
|
+
], mdQuestionnaireData.prototype, "updatedBy", 2);
|
|
383
|
+
__decorateClass([
|
|
384
|
+
(0, import_sequelize_typescript3.Column)({
|
|
385
|
+
field: "updated_date",
|
|
386
|
+
allowNull: true,
|
|
387
|
+
type: import_sequelize_typescript3.DataType.DATE
|
|
388
|
+
})
|
|
389
|
+
], mdQuestionnaireData.prototype, "updatedDate", 2);
|
|
390
|
+
__decorateClass([
|
|
391
|
+
(0, import_sequelize_typescript3.BelongsTo)(() => mdQuestionnaire)
|
|
392
|
+
], mdQuestionnaireData.prototype, "mdQuestionnaire", 2);
|
|
393
|
+
mdQuestionnaireData = __decorateClass([
|
|
394
|
+
(0, import_sequelize_typescript3.Table)({
|
|
395
|
+
tableName: "md_questionnaire_data",
|
|
396
|
+
timestamps: false
|
|
397
|
+
})
|
|
398
|
+
], mdQuestionnaireData);
|
|
399
|
+
|
|
400
|
+
// src/databases/tables/mdQuestionnaire.ts
|
|
401
|
+
var mdQuestionnaire = class extends import_sequelize_typescript4.Model {
|
|
402
|
+
};
|
|
403
|
+
__decorateClass([
|
|
404
|
+
(0, import_sequelize_typescript4.Column)({
|
|
405
|
+
primaryKey: true,
|
|
406
|
+
autoIncrement: true,
|
|
407
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
408
|
+
})
|
|
409
|
+
], mdQuestionnaire.prototype, "id", 2);
|
|
410
|
+
__decorateClass([
|
|
411
|
+
(0, import_sequelize_typescript4.Column)({
|
|
412
|
+
allowNull: true,
|
|
413
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
414
|
+
})
|
|
415
|
+
], mdQuestionnaire.prototype, "uuid", 2);
|
|
416
|
+
__decorateClass([
|
|
417
|
+
(0, import_sequelize_typescript4.Column)({
|
|
418
|
+
field: "key_name",
|
|
419
|
+
allowNull: true,
|
|
420
|
+
type: import_sequelize_typescript4.DataType.STRING(100)
|
|
421
|
+
})
|
|
422
|
+
], mdQuestionnaire.prototype, "keyName", 2);
|
|
423
|
+
__decorateClass([
|
|
424
|
+
(0, import_sequelize_typescript4.ForeignKey)(() => users),
|
|
425
|
+
(0, import_sequelize_typescript4.Column)({
|
|
426
|
+
field: "user_id",
|
|
427
|
+
allowNull: true,
|
|
428
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
429
|
+
})
|
|
430
|
+
], mdQuestionnaire.prototype, "userId", 2);
|
|
431
|
+
__decorateClass([
|
|
432
|
+
(0, import_sequelize_typescript4.Column)({
|
|
433
|
+
allowNull: true,
|
|
434
|
+
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
435
|
+
})
|
|
436
|
+
], mdQuestionnaire.prototype, "title", 2);
|
|
437
|
+
__decorateClass([
|
|
438
|
+
(0, import_sequelize_typescript4.Column)({
|
|
439
|
+
allowNull: true,
|
|
440
|
+
type: import_sequelize_typescript4.DataType.STRING
|
|
441
|
+
})
|
|
442
|
+
], mdQuestionnaire.prototype, "description", 2);
|
|
443
|
+
__decorateClass([
|
|
444
|
+
(0, import_sequelize_typescript4.Column)({
|
|
445
|
+
allowNull: true,
|
|
446
|
+
type: import_sequelize_typescript4.DataType.JSON
|
|
447
|
+
})
|
|
448
|
+
], mdQuestionnaire.prototype, "forms", 2);
|
|
449
|
+
__decorateClass([
|
|
450
|
+
(0, import_sequelize_typescript4.Column)({
|
|
366
451
|
field: "confirm_message",
|
|
367
452
|
allowNull: true,
|
|
368
|
-
type:
|
|
453
|
+
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
369
454
|
})
|
|
370
455
|
], mdQuestionnaire.prototype, "confirmMessage", 2);
|
|
371
456
|
__decorateClass([
|
|
372
|
-
(0,
|
|
457
|
+
(0, import_sequelize_typescript4.Column)({
|
|
373
458
|
allowNull: true,
|
|
374
|
-
type:
|
|
459
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
375
460
|
})
|
|
376
461
|
], mdQuestionnaire.prototype, "submitter", 2);
|
|
377
462
|
__decorateClass([
|
|
378
|
-
(0,
|
|
463
|
+
(0, import_sequelize_typescript4.Column)({
|
|
379
464
|
allowNull: true,
|
|
380
|
-
type:
|
|
465
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
381
466
|
})
|
|
382
467
|
], mdQuestionnaire.prototype, "sort", 2);
|
|
383
468
|
__decorateClass([
|
|
384
|
-
(0,
|
|
469
|
+
(0, import_sequelize_typescript4.Column)({
|
|
385
470
|
allowNull: true,
|
|
386
|
-
type:
|
|
471
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
387
472
|
})
|
|
388
473
|
], mdQuestionnaire.prototype, "status", 2);
|
|
389
474
|
__decorateClass([
|
|
390
|
-
(0,
|
|
475
|
+
(0, import_sequelize_typescript4.Column)({
|
|
391
476
|
allowNull: true,
|
|
392
|
-
type:
|
|
477
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
393
478
|
})
|
|
394
479
|
], mdQuestionnaire.prototype, "views", 2);
|
|
395
480
|
__decorateClass([
|
|
396
|
-
(0,
|
|
481
|
+
(0, import_sequelize_typescript4.Column)({
|
|
397
482
|
field: "has_expire",
|
|
398
483
|
allowNull: true,
|
|
399
|
-
type:
|
|
484
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
400
485
|
})
|
|
401
486
|
], mdQuestionnaire.prototype, "hasExpire", 2);
|
|
402
487
|
__decorateClass([
|
|
403
|
-
(0,
|
|
488
|
+
(0, import_sequelize_typescript4.Column)({
|
|
404
489
|
field: "start_date",
|
|
405
490
|
allowNull: true,
|
|
406
|
-
type:
|
|
491
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
407
492
|
})
|
|
408
493
|
], mdQuestionnaire.prototype, "startDate", 2);
|
|
409
494
|
__decorateClass([
|
|
410
|
-
(0,
|
|
495
|
+
(0, import_sequelize_typescript4.Column)({
|
|
411
496
|
field: "expire_date",
|
|
412
497
|
allowNull: true,
|
|
413
|
-
type:
|
|
498
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
414
499
|
})
|
|
415
500
|
], mdQuestionnaire.prototype, "expireDate", 2);
|
|
416
501
|
__decorateClass([
|
|
417
|
-
(0,
|
|
502
|
+
(0, import_sequelize_typescript4.Column)({
|
|
418
503
|
field: "created_by",
|
|
419
504
|
allowNull: true,
|
|
420
|
-
type:
|
|
505
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
421
506
|
})
|
|
422
507
|
], mdQuestionnaire.prototype, "createdBy", 2);
|
|
423
508
|
__decorateClass([
|
|
424
|
-
(0,
|
|
509
|
+
(0, import_sequelize_typescript4.Column)({
|
|
425
510
|
field: "created_date",
|
|
426
511
|
allowNull: true,
|
|
427
|
-
type:
|
|
512
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
428
513
|
})
|
|
429
514
|
], mdQuestionnaire.prototype, "createdDate", 2);
|
|
430
515
|
__decorateClass([
|
|
431
|
-
(0,
|
|
516
|
+
(0, import_sequelize_typescript4.Column)({
|
|
432
517
|
field: "updated_by",
|
|
433
518
|
allowNull: true,
|
|
434
|
-
type:
|
|
519
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
435
520
|
})
|
|
436
521
|
], mdQuestionnaire.prototype, "updatedBy", 2);
|
|
437
522
|
__decorateClass([
|
|
438
|
-
(0,
|
|
523
|
+
(0, import_sequelize_typescript4.Column)({
|
|
439
524
|
field: "updated_date",
|
|
440
525
|
allowNull: true,
|
|
441
|
-
type:
|
|
526
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
442
527
|
})
|
|
443
528
|
], mdQuestionnaire.prototype, "updatedDate", 2);
|
|
444
529
|
__decorateClass([
|
|
445
|
-
(0,
|
|
530
|
+
(0, import_sequelize_typescript4.BelongsTo)(() => users)
|
|
446
531
|
], mdQuestionnaire.prototype, "user", 2);
|
|
532
|
+
__decorateClass([
|
|
533
|
+
(0, import_sequelize_typescript4.HasMany)(() => mdQuestionnaireData, {
|
|
534
|
+
sourceKey: "id"
|
|
535
|
+
})
|
|
536
|
+
], mdQuestionnaire.prototype, "mdQuestionnaireData", 2);
|
|
447
537
|
mdQuestionnaire = __decorateClass([
|
|
448
|
-
(0,
|
|
538
|
+
(0, import_sequelize_typescript4.Table)({
|
|
449
539
|
tableName: "md_questionnaire",
|
|
450
540
|
timestamps: false
|
|
451
541
|
})
|
|
452
542
|
], mdQuestionnaire);
|
|
453
543
|
|
|
454
544
|
// src/databases/tables/usersVerify.ts
|
|
455
|
-
var
|
|
456
|
-
var usersVerify = class extends
|
|
545
|
+
var import_sequelize_typescript5 = require("sequelize-typescript");
|
|
546
|
+
var usersVerify = class extends import_sequelize_typescript5.Model {
|
|
457
547
|
};
|
|
458
548
|
__decorateClass([
|
|
459
|
-
(0,
|
|
549
|
+
(0, import_sequelize_typescript5.Column)({
|
|
460
550
|
primaryKey: true,
|
|
461
551
|
autoIncrement: true,
|
|
462
|
-
type:
|
|
552
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
463
553
|
})
|
|
464
554
|
], usersVerify.prototype, "id", 2);
|
|
465
555
|
__decorateClass([
|
|
466
|
-
(0,
|
|
467
|
-
(0,
|
|
556
|
+
(0, import_sequelize_typescript5.ForeignKey)(() => users),
|
|
557
|
+
(0, import_sequelize_typescript5.Column)({
|
|
468
558
|
field: "user_id",
|
|
469
559
|
allowNull: true,
|
|
470
|
-
type:
|
|
560
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
471
561
|
})
|
|
472
562
|
], usersVerify.prototype, "userId", 2);
|
|
473
563
|
__decorateClass([
|
|
474
|
-
(0,
|
|
564
|
+
(0, import_sequelize_typescript5.Column)({
|
|
475
565
|
allowNull: true,
|
|
476
|
-
type:
|
|
566
|
+
type: import_sequelize_typescript5.DataType.INTEGER,
|
|
477
567
|
comment: "0 = email",
|
|
478
568
|
defaultValue: "0"
|
|
479
569
|
})
|
|
480
570
|
], usersVerify.prototype, "type", 2);
|
|
481
571
|
__decorateClass([
|
|
482
|
-
(0,
|
|
572
|
+
(0, import_sequelize_typescript5.Column)({
|
|
483
573
|
allowNull: true,
|
|
484
|
-
type:
|
|
574
|
+
type: import_sequelize_typescript5.DataType.STRING(50)
|
|
485
575
|
})
|
|
486
576
|
], usersVerify.prototype, "code", 2);
|
|
487
577
|
__decorateClass([
|
|
488
|
-
(0,
|
|
578
|
+
(0, import_sequelize_typescript5.Column)({
|
|
489
579
|
allowNull: true,
|
|
490
|
-
type:
|
|
580
|
+
type: import_sequelize_typescript5.DataType.STRING(50)
|
|
491
581
|
})
|
|
492
582
|
], usersVerify.prototype, "reference", 2);
|
|
493
583
|
__decorateClass([
|
|
494
|
-
(0,
|
|
584
|
+
(0, import_sequelize_typescript5.Column)({
|
|
495
585
|
allowNull: true,
|
|
496
|
-
type:
|
|
586
|
+
type: import_sequelize_typescript5.DataType.INTEGER,
|
|
497
587
|
comment: "0 = wait, 1 = verified",
|
|
498
588
|
defaultValue: "0"
|
|
499
589
|
})
|
|
500
590
|
], usersVerify.prototype, "status", 2);
|
|
501
591
|
__decorateClass([
|
|
502
|
-
(0,
|
|
592
|
+
(0, import_sequelize_typescript5.Column)({
|
|
503
593
|
field: "created_date",
|
|
504
594
|
allowNull: true,
|
|
505
|
-
type:
|
|
595
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
506
596
|
})
|
|
507
597
|
], usersVerify.prototype, "createdDate", 2);
|
|
508
598
|
__decorateClass([
|
|
509
|
-
(0,
|
|
599
|
+
(0, import_sequelize_typescript5.BelongsTo)(() => users)
|
|
510
600
|
], usersVerify.prototype, "user", 2);
|
|
511
601
|
usersVerify = __decorateClass([
|
|
512
|
-
(0,
|
|
602
|
+
(0, import_sequelize_typescript5.Table)({
|
|
513
603
|
tableName: "users_verify",
|
|
514
604
|
timestamps: false
|
|
515
605
|
})
|
|
516
606
|
], usersVerify);
|
|
517
607
|
|
|
518
608
|
// src/databases/tables/users.ts
|
|
519
|
-
var users = class extends
|
|
609
|
+
var users = class extends import_sequelize_typescript6.Model {
|
|
520
610
|
};
|
|
521
611
|
__decorateClass([
|
|
522
|
-
(0,
|
|
612
|
+
(0, import_sequelize_typescript6.Column)({
|
|
523
613
|
primaryKey: true,
|
|
524
614
|
autoIncrement: true,
|
|
525
|
-
type:
|
|
615
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
526
616
|
})
|
|
527
617
|
], users.prototype, "id", 2);
|
|
528
618
|
__decorateClass([
|
|
529
|
-
(0,
|
|
530
|
-
type:
|
|
619
|
+
(0, import_sequelize_typescript6.Column)({
|
|
620
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
531
621
|
})
|
|
532
622
|
], users.prototype, "uuid", 2);
|
|
533
623
|
__decorateClass([
|
|
534
|
-
(0,
|
|
535
|
-
type:
|
|
624
|
+
(0, import_sequelize_typescript6.Column)({
|
|
625
|
+
type: import_sequelize_typescript6.DataType.STRING(100)
|
|
536
626
|
})
|
|
537
627
|
], users.prototype, "username", 2);
|
|
538
628
|
__decorateClass([
|
|
539
|
-
(0,
|
|
629
|
+
(0, import_sequelize_typescript6.Column)({
|
|
540
630
|
field: "password_hash",
|
|
541
631
|
allowNull: true,
|
|
542
|
-
type:
|
|
632
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
543
633
|
})
|
|
544
634
|
], users.prototype, "passwordHash", 2);
|
|
545
635
|
__decorateClass([
|
|
546
|
-
(0,
|
|
636
|
+
(0, import_sequelize_typescript6.Column)({
|
|
547
637
|
field: "password_reset_token",
|
|
548
638
|
allowNull: true,
|
|
549
|
-
type:
|
|
639
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
550
640
|
})
|
|
551
641
|
], users.prototype, "passwordResetToken", 2);
|
|
552
642
|
__decorateClass([
|
|
553
|
-
(0,
|
|
643
|
+
(0, import_sequelize_typescript6.Column)({
|
|
554
644
|
field: "verification_token",
|
|
555
645
|
allowNull: true,
|
|
556
|
-
type:
|
|
646
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
557
647
|
})
|
|
558
648
|
], users.prototype, "verificationToken", 2);
|
|
559
649
|
__decorateClass([
|
|
560
|
-
(0,
|
|
650
|
+
(0, import_sequelize_typescript6.Column)({
|
|
561
651
|
allowNull: true,
|
|
562
|
-
type:
|
|
652
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
563
653
|
})
|
|
564
654
|
], users.prototype, "email", 2);
|
|
565
655
|
__decorateClass([
|
|
566
|
-
(0,
|
|
656
|
+
(0, import_sequelize_typescript6.Column)({
|
|
567
657
|
field: "auth_key",
|
|
568
658
|
allowNull: true,
|
|
569
|
-
type:
|
|
659
|
+
type: import_sequelize_typescript6.DataType.STRING(32)
|
|
570
660
|
})
|
|
571
661
|
], users.prototype, "authKey", 2);
|
|
572
662
|
__decorateClass([
|
|
573
|
-
(0,
|
|
663
|
+
(0, import_sequelize_typescript6.Column)({
|
|
574
664
|
field: "secret_key",
|
|
575
665
|
allowNull: true,
|
|
576
|
-
type:
|
|
666
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
577
667
|
})
|
|
578
668
|
], users.prototype, "secretKey", 2);
|
|
579
669
|
__decorateClass([
|
|
580
|
-
(0,
|
|
670
|
+
(0, import_sequelize_typescript6.Column)({
|
|
581
671
|
field: "access_token",
|
|
582
672
|
allowNull: true,
|
|
583
|
-
type:
|
|
673
|
+
type: import_sequelize_typescript6.DataType.STRING
|
|
584
674
|
})
|
|
585
675
|
], users.prototype, "accessToken", 2);
|
|
586
676
|
__decorateClass([
|
|
587
|
-
(0,
|
|
677
|
+
(0, import_sequelize_typescript6.Column)({
|
|
588
678
|
field: "user_level",
|
|
589
679
|
allowNull: true,
|
|
590
|
-
type:
|
|
680
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
591
681
|
})
|
|
592
682
|
], users.prototype, "userLevel", 2);
|
|
593
683
|
__decorateClass([
|
|
594
|
-
(0,
|
|
684
|
+
(0, import_sequelize_typescript6.Column)({
|
|
595
685
|
field: "user_authen",
|
|
596
686
|
allowNull: true,
|
|
597
|
-
type:
|
|
687
|
+
type: import_sequelize_typescript6.DataType.STRING(64)
|
|
598
688
|
})
|
|
599
689
|
], users.prototype, "userAuthen", 2);
|
|
600
690
|
__decorateClass([
|
|
601
|
-
(0,
|
|
691
|
+
(0, import_sequelize_typescript6.Column)({
|
|
602
692
|
field: "user_type",
|
|
603
693
|
allowNull: true,
|
|
604
|
-
type:
|
|
694
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
605
695
|
})
|
|
606
696
|
], users.prototype, "userType", 2);
|
|
607
697
|
__decorateClass([
|
|
608
|
-
(0,
|
|
698
|
+
(0, import_sequelize_typescript6.Column)({
|
|
609
699
|
allowNull: true,
|
|
610
|
-
type:
|
|
700
|
+
type: import_sequelize_typescript6.DataType.STRING(10)
|
|
611
701
|
})
|
|
612
702
|
], users.prototype, "prefix", 2);
|
|
613
703
|
__decorateClass([
|
|
614
|
-
(0,
|
|
704
|
+
(0, import_sequelize_typescript6.Column)({
|
|
615
705
|
field: "first_name",
|
|
616
706
|
allowNull: true,
|
|
617
|
-
type:
|
|
707
|
+
type: import_sequelize_typescript6.DataType.STRING(100)
|
|
618
708
|
})
|
|
619
709
|
], users.prototype, "firstName", 2);
|
|
620
710
|
__decorateClass([
|
|
621
|
-
(0,
|
|
711
|
+
(0, import_sequelize_typescript6.Column)({
|
|
622
712
|
field: "last_name",
|
|
623
713
|
allowNull: true,
|
|
624
|
-
type:
|
|
714
|
+
type: import_sequelize_typescript6.DataType.STRING(100)
|
|
625
715
|
})
|
|
626
716
|
], users.prototype, "lastName", 2);
|
|
627
717
|
__decorateClass([
|
|
628
|
-
(0,
|
|
718
|
+
(0, import_sequelize_typescript6.Column)({
|
|
629
719
|
allowNull: true,
|
|
630
|
-
type:
|
|
720
|
+
type: import_sequelize_typescript6.DataType.STRING(20)
|
|
631
721
|
})
|
|
632
722
|
], users.prototype, "phone", 2);
|
|
633
723
|
__decorateClass([
|
|
634
|
-
(0,
|
|
724
|
+
(0, import_sequelize_typescript6.Column)({
|
|
635
725
|
allowNull: true,
|
|
636
|
-
type:
|
|
726
|
+
type: import_sequelize_typescript6.DataType.SMALLINT
|
|
637
727
|
})
|
|
638
728
|
], users.prototype, "status", 2);
|
|
639
729
|
__decorateClass([
|
|
640
|
-
(0,
|
|
730
|
+
(0, import_sequelize_typescript6.Column)({
|
|
641
731
|
allowNull: true,
|
|
642
|
-
type:
|
|
732
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
643
733
|
})
|
|
644
734
|
], users.prototype, "is_2fa", 2);
|
|
645
735
|
__decorateClass([
|
|
646
|
-
(0,
|
|
736
|
+
(0, import_sequelize_typescript6.Column)({
|
|
647
737
|
field: "created_by",
|
|
648
738
|
allowNull: true,
|
|
649
|
-
type:
|
|
739
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
650
740
|
})
|
|
651
741
|
], users.prototype, "createdBy", 2);
|
|
652
742
|
__decorateClass([
|
|
653
|
-
(0,
|
|
743
|
+
(0, import_sequelize_typescript6.Column)({
|
|
654
744
|
field: "created_date",
|
|
655
745
|
allowNull: true,
|
|
656
|
-
type:
|
|
746
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
657
747
|
})
|
|
658
748
|
], users.prototype, "createdDate", 2);
|
|
659
749
|
__decorateClass([
|
|
660
|
-
(0,
|
|
750
|
+
(0, import_sequelize_typescript6.Column)({
|
|
661
751
|
field: "updated_by",
|
|
662
752
|
allowNull: true,
|
|
663
|
-
type:
|
|
753
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
664
754
|
})
|
|
665
755
|
], users.prototype, "updatedBy", 2);
|
|
666
756
|
__decorateClass([
|
|
667
|
-
(0,
|
|
757
|
+
(0, import_sequelize_typescript6.Column)({
|
|
668
758
|
field: "updated_date",
|
|
669
759
|
allowNull: true,
|
|
670
|
-
type:
|
|
760
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
671
761
|
})
|
|
672
762
|
], users.prototype, "updatedDate", 2);
|
|
673
763
|
__decorateClass([
|
|
674
|
-
(0,
|
|
764
|
+
(0, import_sequelize_typescript6.Column)({
|
|
675
765
|
allowNull: true,
|
|
676
|
-
type:
|
|
766
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
677
767
|
})
|
|
678
768
|
], users.prototype, "address", 2);
|
|
679
769
|
__decorateClass([
|
|
680
|
-
(0,
|
|
770
|
+
(0, import_sequelize_typescript6.Column)({
|
|
681
771
|
allowNull: true,
|
|
682
|
-
type:
|
|
772
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
683
773
|
})
|
|
684
774
|
], users.prototype, "other", 2);
|
|
685
775
|
__decorateClass([
|
|
686
|
-
(0,
|
|
776
|
+
(0, import_sequelize_typescript6.Column)({
|
|
687
777
|
field: "is_email_verified",
|
|
688
778
|
allowNull: true,
|
|
689
|
-
type:
|
|
779
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
690
780
|
})
|
|
691
781
|
], users.prototype, "isEmailVerified", 2);
|
|
692
782
|
__decorateClass([
|
|
693
|
-
(0,
|
|
783
|
+
(0, import_sequelize_typescript6.Column)({
|
|
694
784
|
field: "photo_uuid",
|
|
695
785
|
allowNull: true,
|
|
696
|
-
type:
|
|
786
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
697
787
|
})
|
|
698
788
|
], users.prototype, "photoUuid", 2);
|
|
699
789
|
__decorateClass([
|
|
700
|
-
(0,
|
|
790
|
+
(0, import_sequelize_typescript6.HasMany)(() => authAssignment, {
|
|
701
791
|
sourceKey: "id"
|
|
702
792
|
})
|
|
703
793
|
], users.prototype, "authAssignments", 2);
|
|
704
794
|
__decorateClass([
|
|
705
|
-
(0,
|
|
795
|
+
(0, import_sequelize_typescript6.HasMany)(() => mdContent, {
|
|
706
796
|
sourceKey: "id"
|
|
707
797
|
})
|
|
708
798
|
], users.prototype, "mdContents", 2);
|
|
709
799
|
__decorateClass([
|
|
710
|
-
(0,
|
|
800
|
+
(0, import_sequelize_typescript6.HasMany)(() => mdQuestionnaire, {
|
|
711
801
|
sourceKey: "id"
|
|
712
802
|
})
|
|
713
803
|
], users.prototype, "mdQuestionnaires", 2);
|
|
714
804
|
__decorateClass([
|
|
715
|
-
(0,
|
|
805
|
+
(0, import_sequelize_typescript6.HasMany)(() => usersVerify, {
|
|
716
806
|
sourceKey: "id"
|
|
717
807
|
})
|
|
718
808
|
], users.prototype, "usersVerifies", 2);
|
|
719
809
|
users = __decorateClass([
|
|
720
|
-
(0,
|
|
810
|
+
(0, import_sequelize_typescript6.Table)({
|
|
721
811
|
tableName: "users",
|
|
722
812
|
timestamps: false
|
|
723
813
|
})
|
|
724
814
|
], users);
|
|
725
815
|
|
|
726
816
|
// src/databases/tables/authAssignment.ts
|
|
727
|
-
var authAssignment = class extends
|
|
817
|
+
var authAssignment = class extends import_sequelize_typescript7.Model {
|
|
728
818
|
};
|
|
729
819
|
__decorateClass([
|
|
730
|
-
(0,
|
|
731
|
-
(0,
|
|
820
|
+
(0, import_sequelize_typescript7.ForeignKey)(() => authRole),
|
|
821
|
+
(0, import_sequelize_typescript7.Column)({
|
|
732
822
|
field: "role_id",
|
|
733
823
|
primaryKey: true,
|
|
734
|
-
type:
|
|
824
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
735
825
|
})
|
|
736
826
|
], authAssignment.prototype, "roleId", 2);
|
|
737
827
|
__decorateClass([
|
|
738
|
-
(0,
|
|
739
|
-
(0,
|
|
828
|
+
(0, import_sequelize_typescript7.ForeignKey)(() => users),
|
|
829
|
+
(0, import_sequelize_typescript7.Column)({
|
|
740
830
|
field: "user_id",
|
|
741
831
|
primaryKey: true,
|
|
742
|
-
type:
|
|
832
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
743
833
|
})
|
|
744
834
|
], authAssignment.prototype, "userId", 2);
|
|
745
835
|
__decorateClass([
|
|
746
|
-
(0,
|
|
836
|
+
(0, import_sequelize_typescript7.Column)({
|
|
747
837
|
field: "created_by",
|
|
748
838
|
allowNull: true,
|
|
749
|
-
type:
|
|
839
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
750
840
|
})
|
|
751
841
|
], authAssignment.prototype, "createdBy", 2);
|
|
752
842
|
__decorateClass([
|
|
753
|
-
(0,
|
|
843
|
+
(0, import_sequelize_typescript7.Column)({
|
|
754
844
|
field: "created_date",
|
|
755
845
|
allowNull: true,
|
|
756
|
-
type:
|
|
846
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
757
847
|
})
|
|
758
848
|
], authAssignment.prototype, "createdDate", 2);
|
|
759
849
|
__decorateClass([
|
|
760
|
-
(0,
|
|
850
|
+
(0, import_sequelize_typescript7.Column)({
|
|
761
851
|
field: "updated_by",
|
|
762
852
|
allowNull: true,
|
|
763
|
-
type:
|
|
853
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
764
854
|
})
|
|
765
855
|
], authAssignment.prototype, "updatedBy", 2);
|
|
766
856
|
__decorateClass([
|
|
767
|
-
(0,
|
|
857
|
+
(0, import_sequelize_typescript7.Column)({
|
|
768
858
|
field: "updated_date",
|
|
769
859
|
allowNull: true,
|
|
770
|
-
type:
|
|
860
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
771
861
|
})
|
|
772
862
|
], authAssignment.prototype, "updatedDate", 2);
|
|
773
863
|
__decorateClass([
|
|
774
|
-
(0,
|
|
864
|
+
(0, import_sequelize_typescript7.BelongsTo)(() => users)
|
|
775
865
|
], authAssignment.prototype, "user", 2);
|
|
776
866
|
__decorateClass([
|
|
777
|
-
(0,
|
|
867
|
+
(0, import_sequelize_typescript7.BelongsTo)(() => authRole)
|
|
778
868
|
], authAssignment.prototype, "authRole", 2);
|
|
779
869
|
authAssignment = __decorateClass([
|
|
780
|
-
(0,
|
|
870
|
+
(0, import_sequelize_typescript7.Table)({
|
|
781
871
|
tableName: "auth_assignment",
|
|
782
872
|
timestamps: false
|
|
783
873
|
})
|
|
784
874
|
], authAssignment);
|
|
785
875
|
|
|
786
876
|
// src/databases/tables/authRoleChild.ts
|
|
787
|
-
var
|
|
788
|
-
var authRoleChild = class extends
|
|
877
|
+
var import_sequelize_typescript8 = require("sequelize-typescript");
|
|
878
|
+
var authRoleChild = class extends import_sequelize_typescript8.Model {
|
|
789
879
|
};
|
|
790
880
|
__decorateClass([
|
|
791
|
-
(0,
|
|
792
|
-
(0,
|
|
881
|
+
(0, import_sequelize_typescript8.ForeignKey)(() => authRole),
|
|
882
|
+
(0, import_sequelize_typescript8.Column)({
|
|
793
883
|
field: "role_id",
|
|
794
884
|
primaryKey: true,
|
|
795
|
-
type:
|
|
885
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
796
886
|
})
|
|
797
887
|
], authRoleChild.prototype, "roleId", 2);
|
|
798
888
|
__decorateClass([
|
|
799
|
-
(0,
|
|
889
|
+
(0, import_sequelize_typescript8.Column)({
|
|
800
890
|
field: "key_name",
|
|
801
891
|
primaryKey: true,
|
|
802
|
-
type:
|
|
892
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
803
893
|
})
|
|
804
894
|
], authRoleChild.prototype, "keyName", 2);
|
|
805
895
|
__decorateClass([
|
|
806
|
-
(0,
|
|
896
|
+
(0, import_sequelize_typescript8.Column)({
|
|
807
897
|
allowNull: true,
|
|
808
|
-
type:
|
|
898
|
+
type: import_sequelize_typescript8.DataType.JSON
|
|
809
899
|
})
|
|
810
900
|
], authRoleChild.prototype, "permission", 2);
|
|
811
901
|
__decorateClass([
|
|
812
|
-
(0,
|
|
902
|
+
(0, import_sequelize_typescript8.BelongsTo)(() => authRole)
|
|
813
903
|
], authRoleChild.prototype, "authRole", 2);
|
|
814
904
|
authRoleChild = __decorateClass([
|
|
815
|
-
(0,
|
|
905
|
+
(0, import_sequelize_typescript8.Table)({
|
|
816
906
|
tableName: "auth_role_child",
|
|
817
907
|
timestamps: false
|
|
818
908
|
})
|
|
819
909
|
], authRoleChild);
|
|
820
910
|
|
|
821
911
|
// src/databases/tables/authRole.ts
|
|
822
|
-
var authRole = class extends
|
|
912
|
+
var authRole = class extends import_sequelize_typescript9.Model {
|
|
823
913
|
};
|
|
824
914
|
__decorateClass([
|
|
825
|
-
(0,
|
|
915
|
+
(0, import_sequelize_typescript9.Column)({
|
|
826
916
|
primaryKey: true,
|
|
827
917
|
autoIncrement: true,
|
|
828
|
-
type:
|
|
918
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
829
919
|
})
|
|
830
920
|
], authRole.prototype, "id", 2);
|
|
831
921
|
__decorateClass([
|
|
832
|
-
(0,
|
|
833
|
-
type:
|
|
922
|
+
(0, import_sequelize_typescript9.Column)({
|
|
923
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
834
924
|
})
|
|
835
925
|
], authRole.prototype, "uuid", 2);
|
|
836
926
|
__decorateClass([
|
|
837
|
-
(0,
|
|
838
|
-
type:
|
|
927
|
+
(0, import_sequelize_typescript9.Column)({
|
|
928
|
+
type: import_sequelize_typescript9.DataType.STRING(100)
|
|
839
929
|
})
|
|
840
930
|
], authRole.prototype, "name", 2);
|
|
841
931
|
__decorateClass([
|
|
842
|
-
(0,
|
|
932
|
+
(0, import_sequelize_typescript9.Column)({
|
|
843
933
|
allowNull: true,
|
|
844
|
-
type:
|
|
934
|
+
type: import_sequelize_typescript9.DataType.STRING(255)
|
|
845
935
|
})
|
|
846
936
|
], authRole.prototype, "display", 2);
|
|
847
937
|
__decorateClass([
|
|
848
|
-
(0,
|
|
938
|
+
(0, import_sequelize_typescript9.Column)({
|
|
849
939
|
allowNull: true,
|
|
850
|
-
type:
|
|
940
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
851
941
|
})
|
|
852
942
|
], authRole.prototype, "status", 2);
|
|
853
943
|
__decorateClass([
|
|
854
|
-
(0,
|
|
944
|
+
(0, import_sequelize_typescript9.Column)({
|
|
855
945
|
field: "created_by",
|
|
856
946
|
allowNull: true,
|
|
857
|
-
type:
|
|
947
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
858
948
|
})
|
|
859
949
|
], authRole.prototype, "createdBy", 2);
|
|
860
950
|
__decorateClass([
|
|
861
|
-
(0,
|
|
951
|
+
(0, import_sequelize_typescript9.Column)({
|
|
862
952
|
field: "created_date",
|
|
863
953
|
allowNull: true,
|
|
864
|
-
type:
|
|
954
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
865
955
|
})
|
|
866
956
|
], authRole.prototype, "createdDate", 2);
|
|
867
957
|
__decorateClass([
|
|
868
|
-
(0,
|
|
958
|
+
(0, import_sequelize_typescript9.Column)({
|
|
869
959
|
field: "updated_by",
|
|
870
960
|
allowNull: true,
|
|
871
|
-
type:
|
|
961
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
872
962
|
})
|
|
873
963
|
], authRole.prototype, "updatedBy", 2);
|
|
874
964
|
__decorateClass([
|
|
875
|
-
(0,
|
|
965
|
+
(0, import_sequelize_typescript9.Column)({
|
|
876
966
|
field: "updated_date",
|
|
877
967
|
allowNull: true,
|
|
878
|
-
type:
|
|
968
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
879
969
|
})
|
|
880
970
|
], authRole.prototype, "updatedDate", 2);
|
|
881
971
|
__decorateClass([
|
|
882
|
-
(0,
|
|
972
|
+
(0, import_sequelize_typescript9.HasMany)(() => authAssignment, {
|
|
883
973
|
sourceKey: "id"
|
|
884
974
|
})
|
|
885
975
|
], authRole.prototype, "authAssignments", 2);
|
|
886
976
|
__decorateClass([
|
|
887
|
-
(0,
|
|
977
|
+
(0, import_sequelize_typescript9.HasMany)(() => authRoleChild, {
|
|
888
978
|
sourceKey: "id"
|
|
889
979
|
})
|
|
890
980
|
], authRole.prototype, "authRoleChildren", 2);
|
|
891
981
|
authRole = __decorateClass([
|
|
892
|
-
(0,
|
|
982
|
+
(0, import_sequelize_typescript9.Table)({
|
|
893
983
|
tableName: "auth_role",
|
|
894
984
|
timestamps: false
|
|
895
985
|
})
|