@admc-go-th/admc-library 1.0.125 → 1.0.127
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/{authAssignment-BSZ2AlIE.d.ts → authAssignment-Te_XO-S8.d.ts} +28 -1
- package/databases/schema/index.ts +1 -0
- package/databases/schema/mdQuestionnaire.ts +7 -1
- package/databases/schema/mdQuestionnaireData.ts +97 -0
- package/databases/schema/msWebsite.ts +14 -0
- 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 +1 -1
- package/databases/tables/index.js +2283 -2179
- 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/msWebsite.d.ts +4 -0
- package/databases/tables/msWebsite.js +12 -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,10 +31,10 @@ __export(usersVerify_exports, {
|
|
|
31
31
|
usersVerify: () => usersVerify
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(usersVerify_exports);
|
|
34
|
-
var
|
|
34
|
+
var import_sequelize_typescript9 = require("sequelize-typescript");
|
|
35
35
|
|
|
36
36
|
// src/databases/tables/users.ts
|
|
37
|
-
var
|
|
37
|
+
var import_sequelize_typescript8 = require("sequelize-typescript");
|
|
38
38
|
|
|
39
39
|
// src/databases/tables/authAssignment.ts
|
|
40
40
|
var import_sequelize_typescript3 = require("sequelize-typescript");
|
|
@@ -487,8 +487,11 @@ mdContent = __decorateClass([
|
|
|
487
487
|
], mdContent);
|
|
488
488
|
|
|
489
489
|
// src/databases/tables/mdQuestionnaire.ts
|
|
490
|
+
var import_sequelize_typescript7 = require("sequelize-typescript");
|
|
491
|
+
|
|
492
|
+
// src/databases/tables/mdQuestionnaireData.ts
|
|
490
493
|
var import_sequelize_typescript6 = require("sequelize-typescript");
|
|
491
|
-
var
|
|
494
|
+
var mdQuestionnaireData = class extends import_sequelize_typescript6.Model {
|
|
492
495
|
};
|
|
493
496
|
__decorateClass([
|
|
494
497
|
(0, import_sequelize_typescript6.Column)({
|
|
@@ -496,402 +499,489 @@ __decorateClass([
|
|
|
496
499
|
autoIncrement: true,
|
|
497
500
|
type: import_sequelize_typescript6.DataType.INTEGER
|
|
498
501
|
})
|
|
499
|
-
],
|
|
502
|
+
], mdQuestionnaireData.prototype, "id", 2);
|
|
500
503
|
__decorateClass([
|
|
501
504
|
(0, import_sequelize_typescript6.Column)({
|
|
502
505
|
allowNull: true,
|
|
503
506
|
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
504
507
|
})
|
|
505
|
-
],
|
|
508
|
+
], mdQuestionnaireData.prototype, "uuid", 2);
|
|
506
509
|
__decorateClass([
|
|
510
|
+
(0, import_sequelize_typescript6.ForeignKey)(() => mdQuestionnaire),
|
|
507
511
|
(0, import_sequelize_typescript6.Column)({
|
|
508
|
-
field: "
|
|
512
|
+
field: "questionnaire_id",
|
|
509
513
|
allowNull: true,
|
|
510
|
-
type: import_sequelize_typescript6.DataType.
|
|
514
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
511
515
|
})
|
|
512
|
-
],
|
|
516
|
+
], mdQuestionnaireData.prototype, "questionnaireId", 2);
|
|
517
|
+
__decorateClass([
|
|
518
|
+
(0, import_sequelize_typescript6.Column)({
|
|
519
|
+
field: "data_info",
|
|
520
|
+
allowNull: true,
|
|
521
|
+
type: import_sequelize_typescript6.DataType.JSON
|
|
522
|
+
})
|
|
523
|
+
], mdQuestionnaireData.prototype, "dataInfo", 2);
|
|
513
524
|
__decorateClass([
|
|
514
|
-
(0, import_sequelize_typescript6.ForeignKey)(() => users),
|
|
515
525
|
(0, import_sequelize_typescript6.Column)({
|
|
516
|
-
field: "user_id",
|
|
517
526
|
allowNull: true,
|
|
518
527
|
type: import_sequelize_typescript6.DataType.INTEGER
|
|
519
528
|
})
|
|
520
|
-
],
|
|
529
|
+
], mdQuestionnaireData.prototype, "status", 2);
|
|
521
530
|
__decorateClass([
|
|
522
531
|
(0, import_sequelize_typescript6.Column)({
|
|
532
|
+
field: "ip_address",
|
|
523
533
|
allowNull: true,
|
|
524
534
|
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
525
535
|
})
|
|
526
|
-
],
|
|
536
|
+
], mdQuestionnaireData.prototype, "ipAddress", 2);
|
|
527
537
|
__decorateClass([
|
|
528
538
|
(0, import_sequelize_typescript6.Column)({
|
|
539
|
+
field: "created_by",
|
|
529
540
|
allowNull: true,
|
|
530
|
-
type: import_sequelize_typescript6.DataType.STRING
|
|
541
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
531
542
|
})
|
|
532
|
-
],
|
|
543
|
+
], mdQuestionnaireData.prototype, "createdBy", 2);
|
|
533
544
|
__decorateClass([
|
|
534
545
|
(0, import_sequelize_typescript6.Column)({
|
|
546
|
+
field: "created_date",
|
|
535
547
|
allowNull: true,
|
|
536
|
-
type: import_sequelize_typescript6.DataType.
|
|
548
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
537
549
|
})
|
|
538
|
-
],
|
|
550
|
+
], mdQuestionnaireData.prototype, "createdDate", 2);
|
|
539
551
|
__decorateClass([
|
|
540
552
|
(0, import_sequelize_typescript6.Column)({
|
|
553
|
+
field: "updated_by",
|
|
554
|
+
allowNull: true,
|
|
555
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
556
|
+
})
|
|
557
|
+
], mdQuestionnaireData.prototype, "updatedBy", 2);
|
|
558
|
+
__decorateClass([
|
|
559
|
+
(0, import_sequelize_typescript6.Column)({
|
|
560
|
+
field: "updated_date",
|
|
561
|
+
allowNull: true,
|
|
562
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
563
|
+
})
|
|
564
|
+
], mdQuestionnaireData.prototype, "updatedDate", 2);
|
|
565
|
+
__decorateClass([
|
|
566
|
+
(0, import_sequelize_typescript6.BelongsTo)(() => mdQuestionnaire)
|
|
567
|
+
], mdQuestionnaireData.prototype, "mdQuestionnaire", 2);
|
|
568
|
+
mdQuestionnaireData = __decorateClass([
|
|
569
|
+
(0, import_sequelize_typescript6.Table)({
|
|
570
|
+
tableName: "md_questionnaire_data",
|
|
571
|
+
timestamps: false
|
|
572
|
+
})
|
|
573
|
+
], mdQuestionnaireData);
|
|
574
|
+
|
|
575
|
+
// src/databases/tables/mdQuestionnaire.ts
|
|
576
|
+
var mdQuestionnaire = class extends import_sequelize_typescript7.Model {
|
|
577
|
+
};
|
|
578
|
+
__decorateClass([
|
|
579
|
+
(0, import_sequelize_typescript7.Column)({
|
|
580
|
+
primaryKey: true,
|
|
581
|
+
autoIncrement: true,
|
|
582
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
583
|
+
})
|
|
584
|
+
], mdQuestionnaire.prototype, "id", 2);
|
|
585
|
+
__decorateClass([
|
|
586
|
+
(0, import_sequelize_typescript7.Column)({
|
|
587
|
+
allowNull: true,
|
|
588
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
589
|
+
})
|
|
590
|
+
], mdQuestionnaire.prototype, "uuid", 2);
|
|
591
|
+
__decorateClass([
|
|
592
|
+
(0, import_sequelize_typescript7.Column)({
|
|
593
|
+
field: "key_name",
|
|
594
|
+
allowNull: true,
|
|
595
|
+
type: import_sequelize_typescript7.DataType.STRING(100)
|
|
596
|
+
})
|
|
597
|
+
], mdQuestionnaire.prototype, "keyName", 2);
|
|
598
|
+
__decorateClass([
|
|
599
|
+
(0, import_sequelize_typescript7.ForeignKey)(() => users),
|
|
600
|
+
(0, import_sequelize_typescript7.Column)({
|
|
601
|
+
field: "user_id",
|
|
602
|
+
allowNull: true,
|
|
603
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
604
|
+
})
|
|
605
|
+
], mdQuestionnaire.prototype, "userId", 2);
|
|
606
|
+
__decorateClass([
|
|
607
|
+
(0, import_sequelize_typescript7.Column)({
|
|
608
|
+
allowNull: true,
|
|
609
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
610
|
+
})
|
|
611
|
+
], mdQuestionnaire.prototype, "title", 2);
|
|
612
|
+
__decorateClass([
|
|
613
|
+
(0, import_sequelize_typescript7.Column)({
|
|
614
|
+
allowNull: true,
|
|
615
|
+
type: import_sequelize_typescript7.DataType.STRING
|
|
616
|
+
})
|
|
617
|
+
], mdQuestionnaire.prototype, "description", 2);
|
|
618
|
+
__decorateClass([
|
|
619
|
+
(0, import_sequelize_typescript7.Column)({
|
|
620
|
+
allowNull: true,
|
|
621
|
+
type: import_sequelize_typescript7.DataType.JSON
|
|
622
|
+
})
|
|
623
|
+
], mdQuestionnaire.prototype, "forms", 2);
|
|
624
|
+
__decorateClass([
|
|
625
|
+
(0, import_sequelize_typescript7.Column)({
|
|
541
626
|
field: "confirm_message",
|
|
542
627
|
allowNull: true,
|
|
543
|
-
type:
|
|
628
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
544
629
|
})
|
|
545
630
|
], mdQuestionnaire.prototype, "confirmMessage", 2);
|
|
546
631
|
__decorateClass([
|
|
547
|
-
(0,
|
|
632
|
+
(0, import_sequelize_typescript7.Column)({
|
|
548
633
|
allowNull: true,
|
|
549
|
-
type:
|
|
634
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
550
635
|
})
|
|
551
636
|
], mdQuestionnaire.prototype, "submitter", 2);
|
|
552
637
|
__decorateClass([
|
|
553
|
-
(0,
|
|
638
|
+
(0, import_sequelize_typescript7.Column)({
|
|
554
639
|
allowNull: true,
|
|
555
|
-
type:
|
|
640
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
556
641
|
})
|
|
557
642
|
], mdQuestionnaire.prototype, "sort", 2);
|
|
558
643
|
__decorateClass([
|
|
559
|
-
(0,
|
|
644
|
+
(0, import_sequelize_typescript7.Column)({
|
|
560
645
|
allowNull: true,
|
|
561
|
-
type:
|
|
646
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
562
647
|
})
|
|
563
648
|
], mdQuestionnaire.prototype, "status", 2);
|
|
564
649
|
__decorateClass([
|
|
565
|
-
(0,
|
|
650
|
+
(0, import_sequelize_typescript7.Column)({
|
|
566
651
|
allowNull: true,
|
|
567
|
-
type:
|
|
652
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
568
653
|
})
|
|
569
654
|
], mdQuestionnaire.prototype, "views", 2);
|
|
570
655
|
__decorateClass([
|
|
571
|
-
(0,
|
|
656
|
+
(0, import_sequelize_typescript7.Column)({
|
|
572
657
|
field: "has_expire",
|
|
573
658
|
allowNull: true,
|
|
574
|
-
type:
|
|
659
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
575
660
|
})
|
|
576
661
|
], mdQuestionnaire.prototype, "hasExpire", 2);
|
|
577
662
|
__decorateClass([
|
|
578
|
-
(0,
|
|
663
|
+
(0, import_sequelize_typescript7.Column)({
|
|
579
664
|
field: "start_date",
|
|
580
665
|
allowNull: true,
|
|
581
|
-
type:
|
|
666
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
582
667
|
})
|
|
583
668
|
], mdQuestionnaire.prototype, "startDate", 2);
|
|
584
669
|
__decorateClass([
|
|
585
|
-
(0,
|
|
670
|
+
(0, import_sequelize_typescript7.Column)({
|
|
586
671
|
field: "expire_date",
|
|
587
672
|
allowNull: true,
|
|
588
|
-
type:
|
|
673
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
589
674
|
})
|
|
590
675
|
], mdQuestionnaire.prototype, "expireDate", 2);
|
|
591
676
|
__decorateClass([
|
|
592
|
-
(0,
|
|
677
|
+
(0, import_sequelize_typescript7.Column)({
|
|
593
678
|
field: "created_by",
|
|
594
679
|
allowNull: true,
|
|
595
|
-
type:
|
|
680
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
596
681
|
})
|
|
597
682
|
], mdQuestionnaire.prototype, "createdBy", 2);
|
|
598
683
|
__decorateClass([
|
|
599
|
-
(0,
|
|
684
|
+
(0, import_sequelize_typescript7.Column)({
|
|
600
685
|
field: "created_date",
|
|
601
686
|
allowNull: true,
|
|
602
|
-
type:
|
|
687
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
603
688
|
})
|
|
604
689
|
], mdQuestionnaire.prototype, "createdDate", 2);
|
|
605
690
|
__decorateClass([
|
|
606
|
-
(0,
|
|
691
|
+
(0, import_sequelize_typescript7.Column)({
|
|
607
692
|
field: "updated_by",
|
|
608
693
|
allowNull: true,
|
|
609
|
-
type:
|
|
694
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
610
695
|
})
|
|
611
696
|
], mdQuestionnaire.prototype, "updatedBy", 2);
|
|
612
697
|
__decorateClass([
|
|
613
|
-
(0,
|
|
698
|
+
(0, import_sequelize_typescript7.Column)({
|
|
614
699
|
field: "updated_date",
|
|
615
700
|
allowNull: true,
|
|
616
|
-
type:
|
|
701
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
617
702
|
})
|
|
618
703
|
], mdQuestionnaire.prototype, "updatedDate", 2);
|
|
619
704
|
__decorateClass([
|
|
620
|
-
(0,
|
|
705
|
+
(0, import_sequelize_typescript7.BelongsTo)(() => users)
|
|
621
706
|
], mdQuestionnaire.prototype, "user", 2);
|
|
707
|
+
__decorateClass([
|
|
708
|
+
(0, import_sequelize_typescript7.HasMany)(() => mdQuestionnaireData, {
|
|
709
|
+
sourceKey: "id"
|
|
710
|
+
})
|
|
711
|
+
], mdQuestionnaire.prototype, "mdQuestionnaireData", 2);
|
|
622
712
|
mdQuestionnaire = __decorateClass([
|
|
623
|
-
(0,
|
|
713
|
+
(0, import_sequelize_typescript7.Table)({
|
|
624
714
|
tableName: "md_questionnaire",
|
|
625
715
|
timestamps: false
|
|
626
716
|
})
|
|
627
717
|
], mdQuestionnaire);
|
|
628
718
|
|
|
629
719
|
// src/databases/tables/users.ts
|
|
630
|
-
var users = class extends
|
|
720
|
+
var users = class extends import_sequelize_typescript8.Model {
|
|
631
721
|
};
|
|
632
722
|
__decorateClass([
|
|
633
|
-
(0,
|
|
723
|
+
(0, import_sequelize_typescript8.Column)({
|
|
634
724
|
primaryKey: true,
|
|
635
725
|
autoIncrement: true,
|
|
636
|
-
type:
|
|
726
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
637
727
|
})
|
|
638
728
|
], users.prototype, "id", 2);
|
|
639
729
|
__decorateClass([
|
|
640
|
-
(0,
|
|
641
|
-
type:
|
|
730
|
+
(0, import_sequelize_typescript8.Column)({
|
|
731
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
642
732
|
})
|
|
643
733
|
], users.prototype, "uuid", 2);
|
|
644
734
|
__decorateClass([
|
|
645
|
-
(0,
|
|
646
|
-
type:
|
|
735
|
+
(0, import_sequelize_typescript8.Column)({
|
|
736
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
647
737
|
})
|
|
648
738
|
], users.prototype, "username", 2);
|
|
649
739
|
__decorateClass([
|
|
650
|
-
(0,
|
|
740
|
+
(0, import_sequelize_typescript8.Column)({
|
|
651
741
|
field: "password_hash",
|
|
652
742
|
allowNull: true,
|
|
653
|
-
type:
|
|
743
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
654
744
|
})
|
|
655
745
|
], users.prototype, "passwordHash", 2);
|
|
656
746
|
__decorateClass([
|
|
657
|
-
(0,
|
|
747
|
+
(0, import_sequelize_typescript8.Column)({
|
|
658
748
|
field: "password_reset_token",
|
|
659
749
|
allowNull: true,
|
|
660
|
-
type:
|
|
750
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
661
751
|
})
|
|
662
752
|
], users.prototype, "passwordResetToken", 2);
|
|
663
753
|
__decorateClass([
|
|
664
|
-
(0,
|
|
754
|
+
(0, import_sequelize_typescript8.Column)({
|
|
665
755
|
field: "verification_token",
|
|
666
756
|
allowNull: true,
|
|
667
|
-
type:
|
|
757
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
668
758
|
})
|
|
669
759
|
], users.prototype, "verificationToken", 2);
|
|
670
760
|
__decorateClass([
|
|
671
|
-
(0,
|
|
761
|
+
(0, import_sequelize_typescript8.Column)({
|
|
672
762
|
allowNull: true,
|
|
673
|
-
type:
|
|
763
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
674
764
|
})
|
|
675
765
|
], users.prototype, "email", 2);
|
|
676
766
|
__decorateClass([
|
|
677
|
-
(0,
|
|
767
|
+
(0, import_sequelize_typescript8.Column)({
|
|
678
768
|
field: "auth_key",
|
|
679
769
|
allowNull: true,
|
|
680
|
-
type:
|
|
770
|
+
type: import_sequelize_typescript8.DataType.STRING(32)
|
|
681
771
|
})
|
|
682
772
|
], users.prototype, "authKey", 2);
|
|
683
773
|
__decorateClass([
|
|
684
|
-
(0,
|
|
774
|
+
(0, import_sequelize_typescript8.Column)({
|
|
685
775
|
field: "secret_key",
|
|
686
776
|
allowNull: true,
|
|
687
|
-
type:
|
|
777
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
688
778
|
})
|
|
689
779
|
], users.prototype, "secretKey", 2);
|
|
690
780
|
__decorateClass([
|
|
691
|
-
(0,
|
|
781
|
+
(0, import_sequelize_typescript8.Column)({
|
|
692
782
|
field: "access_token",
|
|
693
783
|
allowNull: true,
|
|
694
|
-
type:
|
|
784
|
+
type: import_sequelize_typescript8.DataType.STRING
|
|
695
785
|
})
|
|
696
786
|
], users.prototype, "accessToken", 2);
|
|
697
787
|
__decorateClass([
|
|
698
|
-
(0,
|
|
788
|
+
(0, import_sequelize_typescript8.Column)({
|
|
699
789
|
field: "user_level",
|
|
700
790
|
allowNull: true,
|
|
701
|
-
type:
|
|
791
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
702
792
|
})
|
|
703
793
|
], users.prototype, "userLevel", 2);
|
|
704
794
|
__decorateClass([
|
|
705
|
-
(0,
|
|
795
|
+
(0, import_sequelize_typescript8.Column)({
|
|
706
796
|
field: "user_authen",
|
|
707
797
|
allowNull: true,
|
|
708
|
-
type:
|
|
798
|
+
type: import_sequelize_typescript8.DataType.STRING(64)
|
|
709
799
|
})
|
|
710
800
|
], users.prototype, "userAuthen", 2);
|
|
711
801
|
__decorateClass([
|
|
712
|
-
(0,
|
|
802
|
+
(0, import_sequelize_typescript8.Column)({
|
|
713
803
|
field: "user_type",
|
|
714
804
|
allowNull: true,
|
|
715
|
-
type:
|
|
805
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
716
806
|
})
|
|
717
807
|
], users.prototype, "userType", 2);
|
|
718
808
|
__decorateClass([
|
|
719
|
-
(0,
|
|
809
|
+
(0, import_sequelize_typescript8.Column)({
|
|
720
810
|
allowNull: true,
|
|
721
|
-
type:
|
|
811
|
+
type: import_sequelize_typescript8.DataType.STRING(10)
|
|
722
812
|
})
|
|
723
813
|
], users.prototype, "prefix", 2);
|
|
724
814
|
__decorateClass([
|
|
725
|
-
(0,
|
|
815
|
+
(0, import_sequelize_typescript8.Column)({
|
|
726
816
|
field: "first_name",
|
|
727
817
|
allowNull: true,
|
|
728
|
-
type:
|
|
818
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
729
819
|
})
|
|
730
820
|
], users.prototype, "firstName", 2);
|
|
731
821
|
__decorateClass([
|
|
732
|
-
(0,
|
|
822
|
+
(0, import_sequelize_typescript8.Column)({
|
|
733
823
|
field: "last_name",
|
|
734
824
|
allowNull: true,
|
|
735
|
-
type:
|
|
825
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
736
826
|
})
|
|
737
827
|
], users.prototype, "lastName", 2);
|
|
738
828
|
__decorateClass([
|
|
739
|
-
(0,
|
|
829
|
+
(0, import_sequelize_typescript8.Column)({
|
|
740
830
|
allowNull: true,
|
|
741
|
-
type:
|
|
831
|
+
type: import_sequelize_typescript8.DataType.STRING(20)
|
|
742
832
|
})
|
|
743
833
|
], users.prototype, "phone", 2);
|
|
744
834
|
__decorateClass([
|
|
745
|
-
(0,
|
|
835
|
+
(0, import_sequelize_typescript8.Column)({
|
|
746
836
|
allowNull: true,
|
|
747
|
-
type:
|
|
837
|
+
type: import_sequelize_typescript8.DataType.SMALLINT
|
|
748
838
|
})
|
|
749
839
|
], users.prototype, "status", 2);
|
|
750
840
|
__decorateClass([
|
|
751
|
-
(0,
|
|
841
|
+
(0, import_sequelize_typescript8.Column)({
|
|
752
842
|
allowNull: true,
|
|
753
|
-
type:
|
|
843
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
754
844
|
})
|
|
755
845
|
], users.prototype, "is_2fa", 2);
|
|
756
846
|
__decorateClass([
|
|
757
|
-
(0,
|
|
847
|
+
(0, import_sequelize_typescript8.Column)({
|
|
758
848
|
field: "created_by",
|
|
759
849
|
allowNull: true,
|
|
760
|
-
type:
|
|
850
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
761
851
|
})
|
|
762
852
|
], users.prototype, "createdBy", 2);
|
|
763
853
|
__decorateClass([
|
|
764
|
-
(0,
|
|
854
|
+
(0, import_sequelize_typescript8.Column)({
|
|
765
855
|
field: "created_date",
|
|
766
856
|
allowNull: true,
|
|
767
|
-
type:
|
|
857
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
768
858
|
})
|
|
769
859
|
], users.prototype, "createdDate", 2);
|
|
770
860
|
__decorateClass([
|
|
771
|
-
(0,
|
|
861
|
+
(0, import_sequelize_typescript8.Column)({
|
|
772
862
|
field: "updated_by",
|
|
773
863
|
allowNull: true,
|
|
774
|
-
type:
|
|
864
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
775
865
|
})
|
|
776
866
|
], users.prototype, "updatedBy", 2);
|
|
777
867
|
__decorateClass([
|
|
778
|
-
(0,
|
|
868
|
+
(0, import_sequelize_typescript8.Column)({
|
|
779
869
|
field: "updated_date",
|
|
780
870
|
allowNull: true,
|
|
781
|
-
type:
|
|
871
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
782
872
|
})
|
|
783
873
|
], users.prototype, "updatedDate", 2);
|
|
784
874
|
__decorateClass([
|
|
785
|
-
(0,
|
|
875
|
+
(0, import_sequelize_typescript8.Column)({
|
|
786
876
|
allowNull: true,
|
|
787
|
-
type:
|
|
877
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
788
878
|
})
|
|
789
879
|
], users.prototype, "address", 2);
|
|
790
880
|
__decorateClass([
|
|
791
|
-
(0,
|
|
881
|
+
(0, import_sequelize_typescript8.Column)({
|
|
792
882
|
allowNull: true,
|
|
793
|
-
type:
|
|
883
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
794
884
|
})
|
|
795
885
|
], users.prototype, "other", 2);
|
|
796
886
|
__decorateClass([
|
|
797
|
-
(0,
|
|
887
|
+
(0, import_sequelize_typescript8.Column)({
|
|
798
888
|
field: "is_email_verified",
|
|
799
889
|
allowNull: true,
|
|
800
|
-
type:
|
|
890
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
801
891
|
})
|
|
802
892
|
], users.prototype, "isEmailVerified", 2);
|
|
803
893
|
__decorateClass([
|
|
804
|
-
(0,
|
|
894
|
+
(0, import_sequelize_typescript8.Column)({
|
|
805
895
|
field: "photo_uuid",
|
|
806
896
|
allowNull: true,
|
|
807
|
-
type:
|
|
897
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
808
898
|
})
|
|
809
899
|
], users.prototype, "photoUuid", 2);
|
|
810
900
|
__decorateClass([
|
|
811
|
-
(0,
|
|
901
|
+
(0, import_sequelize_typescript8.HasMany)(() => authAssignment, {
|
|
812
902
|
sourceKey: "id"
|
|
813
903
|
})
|
|
814
904
|
], users.prototype, "authAssignments", 2);
|
|
815
905
|
__decorateClass([
|
|
816
|
-
(0,
|
|
906
|
+
(0, import_sequelize_typescript8.HasMany)(() => mdContent, {
|
|
817
907
|
sourceKey: "id"
|
|
818
908
|
})
|
|
819
909
|
], users.prototype, "mdContents", 2);
|
|
820
910
|
__decorateClass([
|
|
821
|
-
(0,
|
|
911
|
+
(0, import_sequelize_typescript8.HasMany)(() => mdQuestionnaire, {
|
|
822
912
|
sourceKey: "id"
|
|
823
913
|
})
|
|
824
914
|
], users.prototype, "mdQuestionnaires", 2);
|
|
825
915
|
__decorateClass([
|
|
826
|
-
(0,
|
|
916
|
+
(0, import_sequelize_typescript8.HasMany)(() => usersVerify, {
|
|
827
917
|
sourceKey: "id"
|
|
828
918
|
})
|
|
829
919
|
], users.prototype, "usersVerifies", 2);
|
|
830
920
|
users = __decorateClass([
|
|
831
|
-
(0,
|
|
921
|
+
(0, import_sequelize_typescript8.Table)({
|
|
832
922
|
tableName: "users",
|
|
833
923
|
timestamps: false
|
|
834
924
|
})
|
|
835
925
|
], users);
|
|
836
926
|
|
|
837
927
|
// src/databases/tables/usersVerify.ts
|
|
838
|
-
var usersVerify = class extends
|
|
928
|
+
var usersVerify = class extends import_sequelize_typescript9.Model {
|
|
839
929
|
};
|
|
840
930
|
__decorateClass([
|
|
841
|
-
(0,
|
|
931
|
+
(0, import_sequelize_typescript9.Column)({
|
|
842
932
|
primaryKey: true,
|
|
843
933
|
autoIncrement: true,
|
|
844
|
-
type:
|
|
934
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
845
935
|
})
|
|
846
936
|
], usersVerify.prototype, "id", 2);
|
|
847
937
|
__decorateClass([
|
|
848
|
-
(0,
|
|
849
|
-
(0,
|
|
938
|
+
(0, import_sequelize_typescript9.ForeignKey)(() => users),
|
|
939
|
+
(0, import_sequelize_typescript9.Column)({
|
|
850
940
|
field: "user_id",
|
|
851
941
|
allowNull: true,
|
|
852
|
-
type:
|
|
942
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
853
943
|
})
|
|
854
944
|
], usersVerify.prototype, "userId", 2);
|
|
855
945
|
__decorateClass([
|
|
856
|
-
(0,
|
|
946
|
+
(0, import_sequelize_typescript9.Column)({
|
|
857
947
|
allowNull: true,
|
|
858
|
-
type:
|
|
948
|
+
type: import_sequelize_typescript9.DataType.INTEGER,
|
|
859
949
|
comment: "0 = email",
|
|
860
950
|
defaultValue: "0"
|
|
861
951
|
})
|
|
862
952
|
], usersVerify.prototype, "type", 2);
|
|
863
953
|
__decorateClass([
|
|
864
|
-
(0,
|
|
954
|
+
(0, import_sequelize_typescript9.Column)({
|
|
865
955
|
allowNull: true,
|
|
866
|
-
type:
|
|
956
|
+
type: import_sequelize_typescript9.DataType.STRING(50)
|
|
867
957
|
})
|
|
868
958
|
], usersVerify.prototype, "code", 2);
|
|
869
959
|
__decorateClass([
|
|
870
|
-
(0,
|
|
960
|
+
(0, import_sequelize_typescript9.Column)({
|
|
871
961
|
allowNull: true,
|
|
872
|
-
type:
|
|
962
|
+
type: import_sequelize_typescript9.DataType.STRING(50)
|
|
873
963
|
})
|
|
874
964
|
], usersVerify.prototype, "reference", 2);
|
|
875
965
|
__decorateClass([
|
|
876
|
-
(0,
|
|
966
|
+
(0, import_sequelize_typescript9.Column)({
|
|
877
967
|
allowNull: true,
|
|
878
|
-
type:
|
|
968
|
+
type: import_sequelize_typescript9.DataType.INTEGER,
|
|
879
969
|
comment: "0 = wait, 1 = verified",
|
|
880
970
|
defaultValue: "0"
|
|
881
971
|
})
|
|
882
972
|
], usersVerify.prototype, "status", 2);
|
|
883
973
|
__decorateClass([
|
|
884
|
-
(0,
|
|
974
|
+
(0, import_sequelize_typescript9.Column)({
|
|
885
975
|
field: "created_date",
|
|
886
976
|
allowNull: true,
|
|
887
|
-
type:
|
|
977
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
888
978
|
})
|
|
889
979
|
], usersVerify.prototype, "createdDate", 2);
|
|
890
980
|
__decorateClass([
|
|
891
|
-
(0,
|
|
981
|
+
(0, import_sequelize_typescript9.BelongsTo)(() => users)
|
|
892
982
|
], usersVerify.prototype, "user", 2);
|
|
893
983
|
usersVerify = __decorateClass([
|
|
894
|
-
(0,
|
|
984
|
+
(0, import_sequelize_typescript9.Table)({
|
|
895
985
|
tableName: "users_verify",
|
|
896
986
|
timestamps: false
|
|
897
987
|
})
|