@admc-go-th/admc-library 1.0.71 → 1.0.73
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/databases/schema/index.ts +2 -0
- package/databases/schema/mdTranslate.ts +196 -0
- package/databases/schema/mdTranslateGroup.ts +104 -0
- package/databases/tables/index.d.ts +2 -0
- package/databases/tables/index.js +452 -190
- package/databases/tables/mdTranslate.d.ts +56 -0
- package/databases/tables/mdTranslate.js +204 -0
- package/databases/tables/mdTranslateGroup.d.ts +32 -0
- package/databases/tables/mdTranslateGroup.js +124 -0
- package/package.json +1 -1
|
@@ -58,6 +58,8 @@ __export(tables_exports, {
|
|
|
58
58
|
mdPopup: () => mdPopup,
|
|
59
59
|
mdQuestionnaire: () => mdQuestionnaire,
|
|
60
60
|
mdSetting: () => mdSetting,
|
|
61
|
+
mdTranslate: () => mdTranslate,
|
|
62
|
+
mdTranslateGroup: () => mdTranslateGroup,
|
|
61
63
|
mdWords: () => mdWords,
|
|
62
64
|
member: () => member,
|
|
63
65
|
menu: () => menu,
|
|
@@ -3737,9 +3739,9 @@ mdSetting = __decorateClass([
|
|
|
3737
3739
|
})
|
|
3738
3740
|
], mdSetting);
|
|
3739
3741
|
|
|
3740
|
-
// src/databases/tables/
|
|
3742
|
+
// src/databases/tables/mdTranslate.ts
|
|
3741
3743
|
var import_sequelize_typescript35 = require("sequelize-typescript");
|
|
3742
|
-
var
|
|
3744
|
+
var mdTranslate = class extends import_sequelize_typescript35.Model {
|
|
3743
3745
|
};
|
|
3744
3746
|
__decorateClass([
|
|
3745
3747
|
(0, import_sequelize_typescript35.Column)({
|
|
@@ -3747,82 +3749,168 @@ __decorateClass([
|
|
|
3747
3749
|
autoIncrement: true,
|
|
3748
3750
|
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3749
3751
|
})
|
|
3750
|
-
],
|
|
3752
|
+
], mdTranslate.prototype, "id", 2);
|
|
3751
3753
|
__decorateClass([
|
|
3752
3754
|
(0, import_sequelize_typescript35.Column)({
|
|
3753
3755
|
allowNull: true,
|
|
3754
3756
|
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3755
3757
|
})
|
|
3756
|
-
],
|
|
3758
|
+
], mdTranslate.prototype, "uuid", 2);
|
|
3757
3759
|
__decorateClass([
|
|
3758
3760
|
(0, import_sequelize_typescript35.Column)({
|
|
3759
3761
|
field: "key_name",
|
|
3760
3762
|
allowNull: true,
|
|
3761
3763
|
type: import_sequelize_typescript35.DataType.STRING(100)
|
|
3762
3764
|
})
|
|
3763
|
-
],
|
|
3765
|
+
], mdTranslate.prototype, "keyName", 2);
|
|
3766
|
+
__decorateClass([
|
|
3767
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3768
|
+
field: "group_id",
|
|
3769
|
+
allowNull: true,
|
|
3770
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3771
|
+
})
|
|
3772
|
+
], mdTranslate.prototype, "groupId", 2);
|
|
3773
|
+
__decorateClass([
|
|
3774
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3775
|
+
field: "user_id",
|
|
3776
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3777
|
+
})
|
|
3778
|
+
], mdTranslate.prototype, "userId", 2);
|
|
3764
3779
|
__decorateClass([
|
|
3765
3780
|
(0, import_sequelize_typescript35.Column)({
|
|
3766
3781
|
allowNull: true,
|
|
3767
3782
|
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3768
3783
|
})
|
|
3769
|
-
],
|
|
3784
|
+
], mdTranslate.prototype, "title", 2);
|
|
3770
3785
|
__decorateClass([
|
|
3771
3786
|
(0, import_sequelize_typescript35.Column)({
|
|
3772
3787
|
allowNull: true,
|
|
3773
3788
|
type: import_sequelize_typescript35.DataType.STRING
|
|
3774
3789
|
})
|
|
3775
|
-
],
|
|
3790
|
+
], mdTranslate.prototype, "description", 2);
|
|
3791
|
+
__decorateClass([
|
|
3792
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3793
|
+
allowNull: true,
|
|
3794
|
+
type: import_sequelize_typescript35.DataType.STRING
|
|
3795
|
+
})
|
|
3796
|
+
], mdTranslate.prototype, "detail", 2);
|
|
3797
|
+
__decorateClass([
|
|
3798
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3799
|
+
field: "meta_title",
|
|
3800
|
+
allowNull: true,
|
|
3801
|
+
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3802
|
+
})
|
|
3803
|
+
], mdTranslate.prototype, "metaTitle", 2);
|
|
3804
|
+
__decorateClass([
|
|
3805
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3806
|
+
field: "meta_keyword",
|
|
3807
|
+
allowNull: true,
|
|
3808
|
+
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3809
|
+
})
|
|
3810
|
+
], mdTranslate.prototype, "metaKeyword", 2);
|
|
3811
|
+
__decorateClass([
|
|
3812
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3813
|
+
field: "meta_description",
|
|
3814
|
+
allowNull: true,
|
|
3815
|
+
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3816
|
+
})
|
|
3817
|
+
], mdTranslate.prototype, "metaDescription", 2);
|
|
3818
|
+
__decorateClass([
|
|
3819
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3820
|
+
field: "image_cover",
|
|
3821
|
+
allowNull: true,
|
|
3822
|
+
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3823
|
+
})
|
|
3824
|
+
], mdTranslate.prototype, "imageCover", 2);
|
|
3825
|
+
__decorateClass([
|
|
3826
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3827
|
+
allowNull: true,
|
|
3828
|
+
type: import_sequelize_typescript35.DataType.JSON
|
|
3829
|
+
})
|
|
3830
|
+
], mdTranslate.prototype, "attachments", 2);
|
|
3776
3831
|
__decorateClass([
|
|
3777
3832
|
(0, import_sequelize_typescript35.Column)({
|
|
3778
3833
|
allowNull: true,
|
|
3779
3834
|
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3780
3835
|
})
|
|
3781
|
-
],
|
|
3836
|
+
], mdTranslate.prototype, "highlight", 2);
|
|
3782
3837
|
__decorateClass([
|
|
3783
3838
|
(0, import_sequelize_typescript35.Column)({
|
|
3784
3839
|
allowNull: true,
|
|
3785
3840
|
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3786
3841
|
})
|
|
3787
|
-
],
|
|
3842
|
+
], mdTranslate.prototype, "sort", 2);
|
|
3843
|
+
__decorateClass([
|
|
3844
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3845
|
+
allowNull: true,
|
|
3846
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3847
|
+
})
|
|
3848
|
+
], mdTranslate.prototype, "publish", 2);
|
|
3849
|
+
__decorateClass([
|
|
3850
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3851
|
+
allowNull: true,
|
|
3852
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3853
|
+
})
|
|
3854
|
+
], mdTranslate.prototype, "status", 2);
|
|
3855
|
+
__decorateClass([
|
|
3856
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3857
|
+
field: "has_expire",
|
|
3858
|
+
allowNull: true,
|
|
3859
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3860
|
+
})
|
|
3861
|
+
], mdTranslate.prototype, "hasExpire", 2);
|
|
3862
|
+
__decorateClass([
|
|
3863
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3864
|
+
field: "start_date",
|
|
3865
|
+
allowNull: true,
|
|
3866
|
+
type: import_sequelize_typescript35.DataType.DATE
|
|
3867
|
+
})
|
|
3868
|
+
], mdTranslate.prototype, "startDate", 2);
|
|
3869
|
+
__decorateClass([
|
|
3870
|
+
(0, import_sequelize_typescript35.Column)({
|
|
3871
|
+
field: "expire_date",
|
|
3872
|
+
allowNull: true,
|
|
3873
|
+
type: import_sequelize_typescript35.DataType.DATE
|
|
3874
|
+
})
|
|
3875
|
+
], mdTranslate.prototype, "expireDate", 2);
|
|
3788
3876
|
__decorateClass([
|
|
3789
3877
|
(0, import_sequelize_typescript35.Column)({
|
|
3790
3878
|
field: "created_by",
|
|
3791
3879
|
allowNull: true,
|
|
3792
3880
|
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3793
3881
|
})
|
|
3794
|
-
],
|
|
3882
|
+
], mdTranslate.prototype, "createdBy", 2);
|
|
3795
3883
|
__decorateClass([
|
|
3796
3884
|
(0, import_sequelize_typescript35.Column)({
|
|
3797
3885
|
field: "created_date",
|
|
3798
3886
|
allowNull: true,
|
|
3799
3887
|
type: import_sequelize_typescript35.DataType.DATE
|
|
3800
3888
|
})
|
|
3801
|
-
],
|
|
3889
|
+
], mdTranslate.prototype, "createdDate", 2);
|
|
3802
3890
|
__decorateClass([
|
|
3803
3891
|
(0, import_sequelize_typescript35.Column)({
|
|
3804
3892
|
field: "updated_by",
|
|
3805
3893
|
allowNull: true,
|
|
3806
3894
|
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3807
3895
|
})
|
|
3808
|
-
],
|
|
3896
|
+
], mdTranslate.prototype, "updatedBy", 2);
|
|
3809
3897
|
__decorateClass([
|
|
3810
3898
|
(0, import_sequelize_typescript35.Column)({
|
|
3811
3899
|
field: "updated_date",
|
|
3812
3900
|
allowNull: true,
|
|
3813
3901
|
type: import_sequelize_typescript35.DataType.DATE
|
|
3814
3902
|
})
|
|
3815
|
-
],
|
|
3816
|
-
|
|
3903
|
+
], mdTranslate.prototype, "updatedDate", 2);
|
|
3904
|
+
mdTranslate = __decorateClass([
|
|
3817
3905
|
(0, import_sequelize_typescript35.Table)({
|
|
3818
|
-
tableName: "
|
|
3906
|
+
tableName: "md_translate",
|
|
3819
3907
|
timestamps: false
|
|
3820
3908
|
})
|
|
3821
|
-
],
|
|
3909
|
+
], mdTranslate);
|
|
3822
3910
|
|
|
3823
|
-
// src/databases/tables/
|
|
3911
|
+
// src/databases/tables/mdTranslateGroup.ts
|
|
3824
3912
|
var import_sequelize_typescript36 = require("sequelize-typescript");
|
|
3825
|
-
var
|
|
3913
|
+
var mdTranslateGroup = class extends import_sequelize_typescript36.Model {
|
|
3826
3914
|
};
|
|
3827
3915
|
__decorateClass([
|
|
3828
3916
|
(0, import_sequelize_typescript36.Column)({
|
|
@@ -3830,528 +3918,700 @@ __decorateClass([
|
|
|
3830
3918
|
autoIncrement: true,
|
|
3831
3919
|
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3832
3920
|
})
|
|
3833
|
-
],
|
|
3921
|
+
], mdTranslateGroup.prototype, "id", 2);
|
|
3834
3922
|
__decorateClass([
|
|
3835
3923
|
(0, import_sequelize_typescript36.Column)({
|
|
3836
3924
|
allowNull: true,
|
|
3837
3925
|
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3838
3926
|
})
|
|
3839
|
-
],
|
|
3927
|
+
], mdTranslateGroup.prototype, "uuid", 2);
|
|
3928
|
+
__decorateClass([
|
|
3929
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3930
|
+
field: "key_name",
|
|
3931
|
+
allowNull: true,
|
|
3932
|
+
type: import_sequelize_typescript36.DataType.STRING(100)
|
|
3933
|
+
})
|
|
3934
|
+
], mdTranslateGroup.prototype, "keyName", 2);
|
|
3840
3935
|
__decorateClass([
|
|
3841
3936
|
(0, import_sequelize_typescript36.Column)({
|
|
3937
|
+
field: "user_id",
|
|
3842
3938
|
allowNull: true,
|
|
3939
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3940
|
+
})
|
|
3941
|
+
], mdTranslateGroup.prototype, "userId", 2);
|
|
3942
|
+
__decorateClass([
|
|
3943
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3843
3944
|
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3844
3945
|
})
|
|
3845
|
-
],
|
|
3946
|
+
], mdTranslateGroup.prototype, "name", 2);
|
|
3846
3947
|
__decorateClass([
|
|
3847
3948
|
(0, import_sequelize_typescript36.Column)({
|
|
3848
|
-
field: "password_hash",
|
|
3849
3949
|
allowNull: true,
|
|
3850
3950
|
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3851
3951
|
})
|
|
3852
|
-
],
|
|
3952
|
+
], mdTranslateGroup.prototype, "description", 2);
|
|
3953
|
+
__decorateClass([
|
|
3954
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3955
|
+
allowNull: true,
|
|
3956
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3957
|
+
})
|
|
3958
|
+
], mdTranslateGroup.prototype, "sort", 2);
|
|
3959
|
+
__decorateClass([
|
|
3960
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3961
|
+
allowNull: true,
|
|
3962
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3963
|
+
})
|
|
3964
|
+
], mdTranslateGroup.prototype, "status", 2);
|
|
3853
3965
|
__decorateClass([
|
|
3854
3966
|
(0, import_sequelize_typescript36.Column)({
|
|
3967
|
+
field: "created_by",
|
|
3968
|
+
allowNull: true,
|
|
3969
|
+
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3970
|
+
})
|
|
3971
|
+
], mdTranslateGroup.prototype, "createdBy", 2);
|
|
3972
|
+
__decorateClass([
|
|
3973
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3974
|
+
field: "created_date",
|
|
3975
|
+
allowNull: true,
|
|
3976
|
+
type: import_sequelize_typescript36.DataType.DATE
|
|
3977
|
+
})
|
|
3978
|
+
], mdTranslateGroup.prototype, "createdDate", 2);
|
|
3979
|
+
__decorateClass([
|
|
3980
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3981
|
+
field: "updated_by",
|
|
3982
|
+
allowNull: true,
|
|
3983
|
+
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3984
|
+
})
|
|
3985
|
+
], mdTranslateGroup.prototype, "updatedBy", 2);
|
|
3986
|
+
__decorateClass([
|
|
3987
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3988
|
+
field: "updated_date",
|
|
3989
|
+
allowNull: true,
|
|
3990
|
+
type: import_sequelize_typescript36.DataType.DATE
|
|
3991
|
+
})
|
|
3992
|
+
], mdTranslateGroup.prototype, "updatedDate", 2);
|
|
3993
|
+
mdTranslateGroup = __decorateClass([
|
|
3994
|
+
(0, import_sequelize_typescript36.Table)({
|
|
3995
|
+
tableName: "md_translate_group",
|
|
3996
|
+
timestamps: false
|
|
3997
|
+
})
|
|
3998
|
+
], mdTranslateGroup);
|
|
3999
|
+
|
|
4000
|
+
// src/databases/tables/mdWords.ts
|
|
4001
|
+
var import_sequelize_typescript37 = require("sequelize-typescript");
|
|
4002
|
+
var mdWords = class extends import_sequelize_typescript37.Model {
|
|
4003
|
+
};
|
|
4004
|
+
__decorateClass([
|
|
4005
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4006
|
+
primaryKey: true,
|
|
4007
|
+
autoIncrement: true,
|
|
4008
|
+
type: import_sequelize_typescript37.DataType.INTEGER
|
|
4009
|
+
})
|
|
4010
|
+
], mdWords.prototype, "id", 2);
|
|
4011
|
+
__decorateClass([
|
|
4012
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4013
|
+
allowNull: true,
|
|
4014
|
+
type: import_sequelize_typescript37.DataType.STRING(60)
|
|
4015
|
+
})
|
|
4016
|
+
], mdWords.prototype, "uuid", 2);
|
|
4017
|
+
__decorateClass([
|
|
4018
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4019
|
+
field: "key_name",
|
|
4020
|
+
allowNull: true,
|
|
4021
|
+
type: import_sequelize_typescript37.DataType.STRING(100)
|
|
4022
|
+
})
|
|
4023
|
+
], mdWords.prototype, "keyName", 2);
|
|
4024
|
+
__decorateClass([
|
|
4025
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4026
|
+
allowNull: true,
|
|
4027
|
+
type: import_sequelize_typescript37.DataType.STRING(255)
|
|
4028
|
+
})
|
|
4029
|
+
], mdWords.prototype, "name", 2);
|
|
4030
|
+
__decorateClass([
|
|
4031
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4032
|
+
allowNull: true,
|
|
4033
|
+
type: import_sequelize_typescript37.DataType.STRING
|
|
4034
|
+
})
|
|
4035
|
+
], mdWords.prototype, "value", 2);
|
|
4036
|
+
__decorateClass([
|
|
4037
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4038
|
+
allowNull: true,
|
|
4039
|
+
type: import_sequelize_typescript37.DataType.INTEGER
|
|
4040
|
+
})
|
|
4041
|
+
], mdWords.prototype, "status", 2);
|
|
4042
|
+
__decorateClass([
|
|
4043
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4044
|
+
allowNull: true,
|
|
4045
|
+
type: import_sequelize_typescript37.DataType.INTEGER
|
|
4046
|
+
})
|
|
4047
|
+
], mdWords.prototype, "total", 2);
|
|
4048
|
+
__decorateClass([
|
|
4049
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4050
|
+
field: "created_by",
|
|
4051
|
+
allowNull: true,
|
|
4052
|
+
type: import_sequelize_typescript37.DataType.STRING(60)
|
|
4053
|
+
})
|
|
4054
|
+
], mdWords.prototype, "createdBy", 2);
|
|
4055
|
+
__decorateClass([
|
|
4056
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4057
|
+
field: "created_date",
|
|
4058
|
+
allowNull: true,
|
|
4059
|
+
type: import_sequelize_typescript37.DataType.DATE
|
|
4060
|
+
})
|
|
4061
|
+
], mdWords.prototype, "createdDate", 2);
|
|
4062
|
+
__decorateClass([
|
|
4063
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4064
|
+
field: "updated_by",
|
|
4065
|
+
allowNull: true,
|
|
4066
|
+
type: import_sequelize_typescript37.DataType.STRING(60)
|
|
4067
|
+
})
|
|
4068
|
+
], mdWords.prototype, "updatedBy", 2);
|
|
4069
|
+
__decorateClass([
|
|
4070
|
+
(0, import_sequelize_typescript37.Column)({
|
|
4071
|
+
field: "updated_date",
|
|
4072
|
+
allowNull: true,
|
|
4073
|
+
type: import_sequelize_typescript37.DataType.DATE
|
|
4074
|
+
})
|
|
4075
|
+
], mdWords.prototype, "updatedDate", 2);
|
|
4076
|
+
mdWords = __decorateClass([
|
|
4077
|
+
(0, import_sequelize_typescript37.Table)({
|
|
4078
|
+
tableName: "md_words",
|
|
4079
|
+
timestamps: false
|
|
4080
|
+
})
|
|
4081
|
+
], mdWords);
|
|
4082
|
+
|
|
4083
|
+
// src/databases/tables/member.ts
|
|
4084
|
+
var import_sequelize_typescript38 = require("sequelize-typescript");
|
|
4085
|
+
var member = class extends import_sequelize_typescript38.Model {
|
|
4086
|
+
};
|
|
4087
|
+
__decorateClass([
|
|
4088
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4089
|
+
primaryKey: true,
|
|
4090
|
+
autoIncrement: true,
|
|
4091
|
+
type: import_sequelize_typescript38.DataType.INTEGER
|
|
4092
|
+
})
|
|
4093
|
+
], member.prototype, "id", 2);
|
|
4094
|
+
__decorateClass([
|
|
4095
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4096
|
+
allowNull: true,
|
|
4097
|
+
type: import_sequelize_typescript38.DataType.STRING(60)
|
|
4098
|
+
})
|
|
4099
|
+
], member.prototype, "uuid", 2);
|
|
4100
|
+
__decorateClass([
|
|
4101
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4102
|
+
allowNull: true,
|
|
4103
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
4104
|
+
})
|
|
4105
|
+
], member.prototype, "username", 2);
|
|
4106
|
+
__decorateClass([
|
|
4107
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4108
|
+
field: "password_hash",
|
|
4109
|
+
allowNull: true,
|
|
4110
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
4111
|
+
})
|
|
4112
|
+
], member.prototype, "passwordHash", 2);
|
|
4113
|
+
__decorateClass([
|
|
4114
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3855
4115
|
field: "password_reset_token",
|
|
3856
4116
|
allowNull: true,
|
|
3857
|
-
type:
|
|
4117
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3858
4118
|
})
|
|
3859
4119
|
], member.prototype, "passwordResetToken", 2);
|
|
3860
4120
|
__decorateClass([
|
|
3861
|
-
(0,
|
|
4121
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3862
4122
|
field: "verification_token",
|
|
3863
4123
|
allowNull: true,
|
|
3864
|
-
type:
|
|
4124
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3865
4125
|
})
|
|
3866
4126
|
], member.prototype, "verificationToken", 2);
|
|
3867
4127
|
__decorateClass([
|
|
3868
|
-
(0,
|
|
4128
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3869
4129
|
field: "auth_key",
|
|
3870
4130
|
allowNull: true,
|
|
3871
|
-
type:
|
|
4131
|
+
type: import_sequelize_typescript38.DataType.STRING(32)
|
|
3872
4132
|
})
|
|
3873
4133
|
], member.prototype, "authKey", 2);
|
|
3874
4134
|
__decorateClass([
|
|
3875
|
-
(0,
|
|
4135
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3876
4136
|
field: "user_type",
|
|
3877
4137
|
allowNull: true,
|
|
3878
|
-
type:
|
|
4138
|
+
type: import_sequelize_typescript38.DataType.INTEGER
|
|
3879
4139
|
})
|
|
3880
4140
|
], member.prototype, "userType", 2);
|
|
3881
4141
|
__decorateClass([
|
|
3882
|
-
(0,
|
|
4142
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3883
4143
|
allowNull: true,
|
|
3884
|
-
type:
|
|
4144
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3885
4145
|
})
|
|
3886
4146
|
], member.prototype, "email", 2);
|
|
3887
4147
|
__decorateClass([
|
|
3888
|
-
(0,
|
|
4148
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3889
4149
|
allowNull: true,
|
|
3890
|
-
type:
|
|
4150
|
+
type: import_sequelize_typescript38.DataType.STRING(10)
|
|
3891
4151
|
})
|
|
3892
4152
|
], member.prototype, "prefix", 2);
|
|
3893
4153
|
__decorateClass([
|
|
3894
|
-
(0,
|
|
4154
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3895
4155
|
field: "first_name",
|
|
3896
4156
|
allowNull: true,
|
|
3897
|
-
type:
|
|
4157
|
+
type: import_sequelize_typescript38.DataType.STRING(100)
|
|
3898
4158
|
})
|
|
3899
4159
|
], member.prototype, "firstName", 2);
|
|
3900
4160
|
__decorateClass([
|
|
3901
|
-
(0,
|
|
4161
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3902
4162
|
field: "last_name",
|
|
3903
4163
|
allowNull: true,
|
|
3904
|
-
type:
|
|
4164
|
+
type: import_sequelize_typescript38.DataType.STRING(100)
|
|
3905
4165
|
})
|
|
3906
4166
|
], member.prototype, "lastName", 2);
|
|
3907
4167
|
__decorateClass([
|
|
3908
|
-
(0,
|
|
4168
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3909
4169
|
field: "id_card",
|
|
3910
4170
|
allowNull: true,
|
|
3911
|
-
type:
|
|
4171
|
+
type: import_sequelize_typescript38.DataType.STRING(20)
|
|
3912
4172
|
})
|
|
3913
4173
|
], member.prototype, "idCard", 2);
|
|
3914
4174
|
__decorateClass([
|
|
3915
|
-
(0,
|
|
4175
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3916
4176
|
allowNull: true,
|
|
3917
|
-
type:
|
|
4177
|
+
type: import_sequelize_typescript38.DataType.STRING
|
|
3918
4178
|
})
|
|
3919
4179
|
], member.prototype, "address", 2);
|
|
3920
4180
|
__decorateClass([
|
|
3921
|
-
(0,
|
|
4181
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3922
4182
|
allowNull: true,
|
|
3923
|
-
type:
|
|
4183
|
+
type: import_sequelize_typescript38.DataType.STRING(20)
|
|
3924
4184
|
})
|
|
3925
4185
|
], member.prototype, "phone", 2);
|
|
3926
4186
|
__decorateClass([
|
|
3927
|
-
(0,
|
|
4187
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3928
4188
|
allowNull: true,
|
|
3929
|
-
type:
|
|
4189
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3930
4190
|
})
|
|
3931
4191
|
], member.prototype, "job", 2);
|
|
3932
4192
|
__decorateClass([
|
|
3933
|
-
(0,
|
|
4193
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3934
4194
|
allowNull: true,
|
|
3935
|
-
type:
|
|
4195
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3936
4196
|
})
|
|
3937
4197
|
], member.prototype, "agency", 2);
|
|
3938
4198
|
__decorateClass([
|
|
3939
|
-
(0,
|
|
4199
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3940
4200
|
allowNull: true,
|
|
3941
|
-
type:
|
|
4201
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3942
4202
|
})
|
|
3943
4203
|
], member.prototype, "position", 2);
|
|
3944
4204
|
__decorateClass([
|
|
3945
|
-
(0,
|
|
4205
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3946
4206
|
allowNull: true,
|
|
3947
|
-
type:
|
|
4207
|
+
type: import_sequelize_typescript38.DataType.STRING(1)
|
|
3948
4208
|
})
|
|
3949
4209
|
], member.prototype, "gender", 2);
|
|
3950
4210
|
__decorateClass([
|
|
3951
|
-
(0,
|
|
4211
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3952
4212
|
allowNull: true,
|
|
3953
|
-
type:
|
|
4213
|
+
type: import_sequelize_typescript38.DataType.SMALLINT
|
|
3954
4214
|
})
|
|
3955
4215
|
], member.prototype, "status", 2);
|
|
3956
4216
|
__decorateClass([
|
|
3957
|
-
(0,
|
|
4217
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3958
4218
|
allowNull: true,
|
|
3959
|
-
type:
|
|
4219
|
+
type: import_sequelize_typescript38.DataType.INTEGER
|
|
3960
4220
|
})
|
|
3961
4221
|
], member.prototype, "is_2fa", 2);
|
|
3962
4222
|
__decorateClass([
|
|
3963
|
-
(0,
|
|
4223
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3964
4224
|
field: "security_info",
|
|
3965
4225
|
allowNull: true,
|
|
3966
|
-
type:
|
|
4226
|
+
type: import_sequelize_typescript38.DataType.JSON
|
|
3967
4227
|
})
|
|
3968
4228
|
], member.prototype, "securityInfo", 2);
|
|
3969
4229
|
__decorateClass([
|
|
3970
|
-
(0,
|
|
4230
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3971
4231
|
field: "line_id",
|
|
3972
4232
|
allowNull: true,
|
|
3973
|
-
type:
|
|
4233
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3974
4234
|
})
|
|
3975
4235
|
], member.prototype, "lineId", 2);
|
|
3976
4236
|
__decorateClass([
|
|
3977
|
-
(0,
|
|
4237
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3978
4238
|
field: "facebook_id",
|
|
3979
4239
|
allowNull: true,
|
|
3980
|
-
type:
|
|
4240
|
+
type: import_sequelize_typescript38.DataType.STRING(255)
|
|
3981
4241
|
})
|
|
3982
4242
|
], member.prototype, "facebookId", 2);
|
|
3983
4243
|
__decorateClass([
|
|
3984
|
-
(0,
|
|
4244
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3985
4245
|
allowNull: true,
|
|
3986
|
-
type:
|
|
4246
|
+
type: import_sequelize_typescript38.DataType.INTEGER
|
|
3987
4247
|
})
|
|
3988
4248
|
], member.prototype, "policy", 2);
|
|
3989
4249
|
__decorateClass([
|
|
3990
|
-
(0,
|
|
4250
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3991
4251
|
allowNull: true,
|
|
3992
|
-
type:
|
|
4252
|
+
type: import_sequelize_typescript38.DataType.INTEGER
|
|
3993
4253
|
})
|
|
3994
4254
|
], member.prototype, "terms", 2);
|
|
3995
4255
|
__decorateClass([
|
|
3996
|
-
(0,
|
|
4256
|
+
(0, import_sequelize_typescript38.Column)({
|
|
3997
4257
|
allowNull: true,
|
|
3998
|
-
type:
|
|
4258
|
+
type: import_sequelize_typescript38.DataType.STRING(10)
|
|
3999
4259
|
})
|
|
4000
4260
|
], member.prototype, "otp", 2);
|
|
4001
4261
|
__decorateClass([
|
|
4002
|
-
(0,
|
|
4262
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4003
4263
|
field: "otp_date",
|
|
4004
4264
|
allowNull: true,
|
|
4005
|
-
type:
|
|
4265
|
+
type: import_sequelize_typescript38.DataType.DATE
|
|
4006
4266
|
})
|
|
4007
4267
|
], member.prototype, "otpDate", 2);
|
|
4008
4268
|
__decorateClass([
|
|
4009
|
-
(0,
|
|
4269
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4010
4270
|
allowNull: true,
|
|
4011
|
-
type:
|
|
4271
|
+
type: import_sequelize_typescript38.DataType.STRING(60)
|
|
4012
4272
|
})
|
|
4013
4273
|
], member.prototype, "avatar", 2);
|
|
4014
4274
|
__decorateClass([
|
|
4015
|
-
(0,
|
|
4275
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4016
4276
|
field: "created_by",
|
|
4017
4277
|
allowNull: true,
|
|
4018
|
-
type:
|
|
4278
|
+
type: import_sequelize_typescript38.DataType.STRING(60)
|
|
4019
4279
|
})
|
|
4020
4280
|
], member.prototype, "createdBy", 2);
|
|
4021
4281
|
__decorateClass([
|
|
4022
|
-
(0,
|
|
4282
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4023
4283
|
field: "created_date",
|
|
4024
4284
|
allowNull: true,
|
|
4025
|
-
type:
|
|
4285
|
+
type: import_sequelize_typescript38.DataType.DATE
|
|
4026
4286
|
})
|
|
4027
4287
|
], member.prototype, "createdDate", 2);
|
|
4028
4288
|
__decorateClass([
|
|
4029
|
-
(0,
|
|
4289
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4030
4290
|
field: "updated_by",
|
|
4031
4291
|
allowNull: true,
|
|
4032
|
-
type:
|
|
4292
|
+
type: import_sequelize_typescript38.DataType.STRING(60)
|
|
4033
4293
|
})
|
|
4034
4294
|
], member.prototype, "updatedBy", 2);
|
|
4035
4295
|
__decorateClass([
|
|
4036
|
-
(0,
|
|
4296
|
+
(0, import_sequelize_typescript38.Column)({
|
|
4037
4297
|
field: "updated_date",
|
|
4038
4298
|
allowNull: true,
|
|
4039
|
-
type:
|
|
4299
|
+
type: import_sequelize_typescript38.DataType.DATE
|
|
4040
4300
|
})
|
|
4041
4301
|
], member.prototype, "updatedDate", 2);
|
|
4042
4302
|
member = __decorateClass([
|
|
4043
|
-
(0,
|
|
4303
|
+
(0, import_sequelize_typescript38.Table)({
|
|
4044
4304
|
tableName: "member",
|
|
4045
4305
|
timestamps: false
|
|
4046
4306
|
})
|
|
4047
4307
|
], member);
|
|
4048
4308
|
|
|
4049
4309
|
// src/databases/tables/oauthAccessToken.ts
|
|
4050
|
-
var
|
|
4051
|
-
var oauthAccessToken = class extends
|
|
4310
|
+
var import_sequelize_typescript39 = require("sequelize-typescript");
|
|
4311
|
+
var oauthAccessToken = class extends import_sequelize_typescript39.Model {
|
|
4052
4312
|
};
|
|
4053
4313
|
__decorateClass([
|
|
4054
|
-
(0,
|
|
4314
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4055
4315
|
primaryKey: true,
|
|
4056
4316
|
autoIncrement: true,
|
|
4057
|
-
type:
|
|
4317
|
+
type: import_sequelize_typescript39.DataType.INTEGER
|
|
4058
4318
|
})
|
|
4059
4319
|
], oauthAccessToken.prototype, "id", 2);
|
|
4060
4320
|
__decorateClass([
|
|
4061
|
-
(0,
|
|
4321
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4062
4322
|
field: "access_token",
|
|
4063
|
-
type:
|
|
4323
|
+
type: import_sequelize_typescript39.DataType.STRING
|
|
4064
4324
|
})
|
|
4065
4325
|
], oauthAccessToken.prototype, "accessToken", 2);
|
|
4066
4326
|
__decorateClass([
|
|
4067
|
-
(0,
|
|
4327
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4068
4328
|
field: "client_id",
|
|
4069
|
-
type:
|
|
4329
|
+
type: import_sequelize_typescript39.DataType.STRING(32)
|
|
4070
4330
|
})
|
|
4071
4331
|
], oauthAccessToken.prototype, "clientId", 2);
|
|
4072
4332
|
__decorateClass([
|
|
4073
|
-
(0,
|
|
4333
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4074
4334
|
field: "user_id",
|
|
4075
4335
|
allowNull: true,
|
|
4076
|
-
type:
|
|
4336
|
+
type: import_sequelize_typescript39.DataType.INTEGER
|
|
4077
4337
|
})
|
|
4078
4338
|
], oauthAccessToken.prototype, "userId", 2);
|
|
4079
4339
|
__decorateClass([
|
|
4080
|
-
(0,
|
|
4081
|
-
type:
|
|
4082
|
-
defaultValue:
|
|
4340
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4341
|
+
type: import_sequelize_typescript39.DataType.DATE,
|
|
4342
|
+
defaultValue: import_sequelize_typescript39.DataType.NOW
|
|
4083
4343
|
})
|
|
4084
4344
|
], oauthAccessToken.prototype, "expires", 2);
|
|
4085
4345
|
__decorateClass([
|
|
4086
|
-
(0,
|
|
4346
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4087
4347
|
allowNull: true,
|
|
4088
|
-
type:
|
|
4348
|
+
type: import_sequelize_typescript39.DataType.STRING(2e3)
|
|
4089
4349
|
})
|
|
4090
4350
|
], oauthAccessToken.prototype, "scope", 2);
|
|
4091
4351
|
__decorateClass([
|
|
4092
|
-
(0,
|
|
4352
|
+
(0, import_sequelize_typescript39.Column)({
|
|
4093
4353
|
field: "created_date",
|
|
4094
|
-
type:
|
|
4095
|
-
defaultValue:
|
|
4354
|
+
type: import_sequelize_typescript39.DataType.DATE,
|
|
4355
|
+
defaultValue: import_sequelize_typescript39.DataType.NOW
|
|
4096
4356
|
})
|
|
4097
4357
|
], oauthAccessToken.prototype, "createdDate", 2);
|
|
4098
4358
|
oauthAccessToken = __decorateClass([
|
|
4099
|
-
(0,
|
|
4359
|
+
(0, import_sequelize_typescript39.Table)({
|
|
4100
4360
|
tableName: "oauth_access_token",
|
|
4101
4361
|
timestamps: false
|
|
4102
4362
|
})
|
|
4103
4363
|
], oauthAccessToken);
|
|
4104
4364
|
|
|
4105
4365
|
// src/databases/tables/oauthRefreshToken.ts
|
|
4106
|
-
var
|
|
4107
|
-
var oauthRefreshToken = class extends
|
|
4366
|
+
var import_sequelize_typescript40 = require("sequelize-typescript");
|
|
4367
|
+
var oauthRefreshToken = class extends import_sequelize_typescript40.Model {
|
|
4108
4368
|
};
|
|
4109
4369
|
__decorateClass([
|
|
4110
|
-
(0,
|
|
4370
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4111
4371
|
primaryKey: true,
|
|
4112
4372
|
autoIncrement: true,
|
|
4113
|
-
type:
|
|
4373
|
+
type: import_sequelize_typescript40.DataType.INTEGER
|
|
4114
4374
|
})
|
|
4115
4375
|
], oauthRefreshToken.prototype, "id", 2);
|
|
4116
4376
|
__decorateClass([
|
|
4117
|
-
(0,
|
|
4377
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4118
4378
|
field: "refresh_token",
|
|
4119
|
-
type:
|
|
4379
|
+
type: import_sequelize_typescript40.DataType.STRING(1e3)
|
|
4120
4380
|
})
|
|
4121
4381
|
], oauthRefreshToken.prototype, "refreshToken", 2);
|
|
4122
4382
|
__decorateClass([
|
|
4123
|
-
(0,
|
|
4383
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4124
4384
|
field: "client_id",
|
|
4125
|
-
type:
|
|
4385
|
+
type: import_sequelize_typescript40.DataType.STRING(32)
|
|
4126
4386
|
})
|
|
4127
4387
|
], oauthRefreshToken.prototype, "clientId", 2);
|
|
4128
4388
|
__decorateClass([
|
|
4129
|
-
(0,
|
|
4389
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4130
4390
|
field: "user_id",
|
|
4131
4391
|
allowNull: true,
|
|
4132
|
-
type:
|
|
4392
|
+
type: import_sequelize_typescript40.DataType.INTEGER
|
|
4133
4393
|
})
|
|
4134
4394
|
], oauthRefreshToken.prototype, "userId", 2);
|
|
4135
4395
|
__decorateClass([
|
|
4136
|
-
(0,
|
|
4137
|
-
type:
|
|
4138
|
-
defaultValue:
|
|
4396
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4397
|
+
type: import_sequelize_typescript40.DataType.DATE,
|
|
4398
|
+
defaultValue: import_sequelize_typescript40.DataType.NOW
|
|
4139
4399
|
})
|
|
4140
4400
|
], oauthRefreshToken.prototype, "expires", 2);
|
|
4141
4401
|
__decorateClass([
|
|
4142
|
-
(0,
|
|
4402
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4143
4403
|
allowNull: true,
|
|
4144
|
-
type:
|
|
4404
|
+
type: import_sequelize_typescript40.DataType.STRING(1e3)
|
|
4145
4405
|
})
|
|
4146
4406
|
], oauthRefreshToken.prototype, "scope", 2);
|
|
4147
4407
|
__decorateClass([
|
|
4148
|
-
(0,
|
|
4408
|
+
(0, import_sequelize_typescript40.Column)({
|
|
4149
4409
|
field: "created_date",
|
|
4150
|
-
type:
|
|
4151
|
-
defaultValue:
|
|
4410
|
+
type: import_sequelize_typescript40.DataType.DATE,
|
|
4411
|
+
defaultValue: import_sequelize_typescript40.DataType.NOW
|
|
4152
4412
|
})
|
|
4153
4413
|
], oauthRefreshToken.prototype, "createdDate", 2);
|
|
4154
4414
|
oauthRefreshToken = __decorateClass([
|
|
4155
|
-
(0,
|
|
4415
|
+
(0, import_sequelize_typescript40.Table)({
|
|
4156
4416
|
tableName: "oauth_refresh_token",
|
|
4157
4417
|
timestamps: false
|
|
4158
4418
|
})
|
|
4159
4419
|
], oauthRefreshToken);
|
|
4160
4420
|
|
|
4161
4421
|
// src/databases/tables/settings.ts
|
|
4162
|
-
var
|
|
4163
|
-
var settings = class extends
|
|
4422
|
+
var import_sequelize_typescript41 = require("sequelize-typescript");
|
|
4423
|
+
var settings = class extends import_sequelize_typescript41.Model {
|
|
4164
4424
|
};
|
|
4165
4425
|
__decorateClass([
|
|
4166
|
-
(0,
|
|
4426
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4167
4427
|
primaryKey: true,
|
|
4168
4428
|
autoIncrement: true,
|
|
4169
|
-
type:
|
|
4429
|
+
type: import_sequelize_typescript41.DataType.INTEGER
|
|
4170
4430
|
})
|
|
4171
4431
|
], settings.prototype, "id", 2);
|
|
4172
4432
|
__decorateClass([
|
|
4173
|
-
(0,
|
|
4433
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4174
4434
|
allowNull: true,
|
|
4175
|
-
type:
|
|
4435
|
+
type: import_sequelize_typescript41.DataType.STRING(255)
|
|
4176
4436
|
})
|
|
4177
4437
|
], settings.prototype, "key", 2);
|
|
4178
4438
|
__decorateClass([
|
|
4179
|
-
(0,
|
|
4439
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4180
4440
|
allowNull: true,
|
|
4181
|
-
type:
|
|
4441
|
+
type: import_sequelize_typescript41.DataType.STRING
|
|
4182
4442
|
})
|
|
4183
4443
|
], settings.prototype, "value", 2);
|
|
4184
4444
|
__decorateClass([
|
|
4185
|
-
(0,
|
|
4445
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4186
4446
|
allowNull: true,
|
|
4187
|
-
type:
|
|
4447
|
+
type: import_sequelize_typescript41.DataType.JSON
|
|
4188
4448
|
})
|
|
4189
4449
|
], settings.prototype, "data", 2);
|
|
4190
4450
|
__decorateClass([
|
|
4191
|
-
(0,
|
|
4451
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4192
4452
|
field: "updated_by",
|
|
4193
4453
|
allowNull: true,
|
|
4194
|
-
type:
|
|
4454
|
+
type: import_sequelize_typescript41.DataType.STRING(60)
|
|
4195
4455
|
})
|
|
4196
4456
|
], settings.prototype, "updatedBy", 2);
|
|
4197
4457
|
__decorateClass([
|
|
4198
|
-
(0,
|
|
4458
|
+
(0, import_sequelize_typescript41.Column)({
|
|
4199
4459
|
field: "updated_date",
|
|
4200
4460
|
allowNull: true,
|
|
4201
|
-
type:
|
|
4461
|
+
type: import_sequelize_typescript41.DataType.DATE
|
|
4202
4462
|
})
|
|
4203
4463
|
], settings.prototype, "updatedDate", 2);
|
|
4204
4464
|
settings = __decorateClass([
|
|
4205
|
-
(0,
|
|
4465
|
+
(0, import_sequelize_typescript41.Table)({
|
|
4206
4466
|
tableName: "settings",
|
|
4207
4467
|
timestamps: false
|
|
4208
4468
|
})
|
|
4209
4469
|
], settings);
|
|
4210
4470
|
|
|
4211
4471
|
// src/databases/tables/userCenterV.ts
|
|
4212
|
-
var
|
|
4213
|
-
var userCenterV = class extends
|
|
4472
|
+
var import_sequelize_typescript42 = require("sequelize-typescript");
|
|
4473
|
+
var userCenterV = class extends import_sequelize_typescript42.Model {
|
|
4214
4474
|
};
|
|
4215
4475
|
__decorateClass([
|
|
4216
|
-
(0,
|
|
4217
|
-
type:
|
|
4476
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4477
|
+
type: import_sequelize_typescript42.DataType.INTEGER,
|
|
4218
4478
|
defaultValue: "0"
|
|
4219
4479
|
})
|
|
4220
4480
|
], userCenterV.prototype, "id", 2);
|
|
4221
4481
|
__decorateClass([
|
|
4222
|
-
(0,
|
|
4223
|
-
type:
|
|
4482
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4483
|
+
type: import_sequelize_typescript42.DataType.STRING(60)
|
|
4224
4484
|
})
|
|
4225
4485
|
], userCenterV.prototype, "uuid", 2);
|
|
4226
4486
|
__decorateClass([
|
|
4227
|
-
(0,
|
|
4228
|
-
type:
|
|
4487
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4488
|
+
type: import_sequelize_typescript42.DataType.STRING(100)
|
|
4229
4489
|
})
|
|
4230
4490
|
], userCenterV.prototype, "username", 2);
|
|
4231
4491
|
__decorateClass([
|
|
4232
|
-
(0,
|
|
4492
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4233
4493
|
field: "password_hash",
|
|
4234
4494
|
allowNull: true,
|
|
4235
|
-
type:
|
|
4495
|
+
type: import_sequelize_typescript42.DataType.STRING(255)
|
|
4236
4496
|
})
|
|
4237
4497
|
], userCenterV.prototype, "passwordHash", 2);
|
|
4238
4498
|
__decorateClass([
|
|
4239
|
-
(0,
|
|
4499
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4240
4500
|
field: "password_reset_token",
|
|
4241
4501
|
allowNull: true,
|
|
4242
|
-
type:
|
|
4502
|
+
type: import_sequelize_typescript42.DataType.STRING(255)
|
|
4243
4503
|
})
|
|
4244
4504
|
], userCenterV.prototype, "passwordResetToken", 2);
|
|
4245
4505
|
__decorateClass([
|
|
4246
|
-
(0,
|
|
4506
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4247
4507
|
field: "verification_token",
|
|
4248
4508
|
allowNull: true,
|
|
4249
|
-
type:
|
|
4509
|
+
type: import_sequelize_typescript42.DataType.STRING(255)
|
|
4250
4510
|
})
|
|
4251
4511
|
], userCenterV.prototype, "verificationToken", 2);
|
|
4252
4512
|
__decorateClass([
|
|
4253
|
-
(0,
|
|
4513
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4254
4514
|
allowNull: true,
|
|
4255
|
-
type:
|
|
4515
|
+
type: import_sequelize_typescript42.DataType.STRING(255)
|
|
4256
4516
|
})
|
|
4257
4517
|
], userCenterV.prototype, "email", 2);
|
|
4258
4518
|
__decorateClass([
|
|
4259
|
-
(0,
|
|
4519
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4260
4520
|
field: "auth_key",
|
|
4261
4521
|
allowNull: true,
|
|
4262
|
-
type:
|
|
4522
|
+
type: import_sequelize_typescript42.DataType.STRING(32)
|
|
4263
4523
|
})
|
|
4264
4524
|
], userCenterV.prototype, "authKey", 2);
|
|
4265
4525
|
__decorateClass([
|
|
4266
|
-
(0,
|
|
4526
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4267
4527
|
field: "access_token",
|
|
4268
4528
|
allowNull: true,
|
|
4269
|
-
type:
|
|
4529
|
+
type: import_sequelize_typescript42.DataType.STRING
|
|
4270
4530
|
})
|
|
4271
4531
|
], userCenterV.prototype, "accessToken", 2);
|
|
4272
4532
|
__decorateClass([
|
|
4273
|
-
(0,
|
|
4533
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4274
4534
|
field: "user_level",
|
|
4275
4535
|
allowNull: true,
|
|
4276
|
-
type:
|
|
4536
|
+
type: import_sequelize_typescript42.DataType.INTEGER
|
|
4277
4537
|
})
|
|
4278
4538
|
], userCenterV.prototype, "userLevel", 2);
|
|
4279
4539
|
__decorateClass([
|
|
4280
|
-
(0,
|
|
4540
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4281
4541
|
field: "user_authen",
|
|
4282
4542
|
allowNull: true,
|
|
4283
|
-
type:
|
|
4543
|
+
type: import_sequelize_typescript42.DataType.STRING(64)
|
|
4284
4544
|
})
|
|
4285
4545
|
], userCenterV.prototype, "userAuthen", 2);
|
|
4286
4546
|
__decorateClass([
|
|
4287
|
-
(0,
|
|
4547
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4288
4548
|
field: "user_type",
|
|
4289
4549
|
allowNull: true,
|
|
4290
|
-
type:
|
|
4550
|
+
type: import_sequelize_typescript42.DataType.INTEGER
|
|
4291
4551
|
})
|
|
4292
4552
|
], userCenterV.prototype, "userType", 2);
|
|
4293
4553
|
__decorateClass([
|
|
4294
|
-
(0,
|
|
4554
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4295
4555
|
allowNull: true,
|
|
4296
|
-
type:
|
|
4556
|
+
type: import_sequelize_typescript42.DataType.STRING(10)
|
|
4297
4557
|
})
|
|
4298
4558
|
], userCenterV.prototype, "prefix", 2);
|
|
4299
4559
|
__decorateClass([
|
|
4300
|
-
(0,
|
|
4560
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4301
4561
|
field: "first_name",
|
|
4302
4562
|
allowNull: true,
|
|
4303
|
-
type:
|
|
4563
|
+
type: import_sequelize_typescript42.DataType.STRING(100)
|
|
4304
4564
|
})
|
|
4305
4565
|
], userCenterV.prototype, "firstName", 2);
|
|
4306
4566
|
__decorateClass([
|
|
4307
|
-
(0,
|
|
4567
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4308
4568
|
field: "last_name",
|
|
4309
4569
|
allowNull: true,
|
|
4310
|
-
type:
|
|
4570
|
+
type: import_sequelize_typescript42.DataType.STRING(100)
|
|
4311
4571
|
})
|
|
4312
4572
|
], userCenterV.prototype, "lastName", 2);
|
|
4313
4573
|
__decorateClass([
|
|
4314
|
-
(0,
|
|
4574
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4315
4575
|
allowNull: true,
|
|
4316
|
-
type:
|
|
4576
|
+
type: import_sequelize_typescript42.DataType.STRING(20)
|
|
4317
4577
|
})
|
|
4318
4578
|
], userCenterV.prototype, "phone", 2);
|
|
4319
4579
|
__decorateClass([
|
|
4320
|
-
(0,
|
|
4580
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4321
4581
|
allowNull: true,
|
|
4322
|
-
type:
|
|
4582
|
+
type: import_sequelize_typescript42.DataType.SMALLINT
|
|
4323
4583
|
})
|
|
4324
4584
|
], userCenterV.prototype, "status", 2);
|
|
4325
4585
|
__decorateClass([
|
|
4326
|
-
(0,
|
|
4586
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4327
4587
|
field: "created_by",
|
|
4328
4588
|
allowNull: true,
|
|
4329
|
-
type:
|
|
4589
|
+
type: import_sequelize_typescript42.DataType.STRING(60)
|
|
4330
4590
|
})
|
|
4331
4591
|
], userCenterV.prototype, "createdBy", 2);
|
|
4332
4592
|
__decorateClass([
|
|
4333
|
-
(0,
|
|
4593
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4334
4594
|
field: "created_date",
|
|
4335
4595
|
allowNull: true,
|
|
4336
|
-
type:
|
|
4596
|
+
type: import_sequelize_typescript42.DataType.DATE
|
|
4337
4597
|
})
|
|
4338
4598
|
], userCenterV.prototype, "createdDate", 2);
|
|
4339
4599
|
__decorateClass([
|
|
4340
|
-
(0,
|
|
4600
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4341
4601
|
field: "updated_by",
|
|
4342
4602
|
allowNull: true,
|
|
4343
|
-
type:
|
|
4603
|
+
type: import_sequelize_typescript42.DataType.STRING(60)
|
|
4344
4604
|
})
|
|
4345
4605
|
], userCenterV.prototype, "updatedBy", 2);
|
|
4346
4606
|
__decorateClass([
|
|
4347
|
-
(0,
|
|
4607
|
+
(0, import_sequelize_typescript42.Column)({
|
|
4348
4608
|
field: "updated_date",
|
|
4349
4609
|
allowNull: true,
|
|
4350
|
-
type:
|
|
4610
|
+
type: import_sequelize_typescript42.DataType.DATE
|
|
4351
4611
|
})
|
|
4352
4612
|
], userCenterV.prototype, "updatedDate", 2);
|
|
4353
4613
|
userCenterV = __decorateClass([
|
|
4354
|
-
(0,
|
|
4614
|
+
(0, import_sequelize_typescript42.Table)({
|
|
4355
4615
|
tableName: "user_center_v",
|
|
4356
4616
|
timestamps: false,
|
|
4357
4617
|
comment: "VIEW"
|
|
@@ -4359,38 +4619,38 @@ userCenterV = __decorateClass([
|
|
|
4359
4619
|
], userCenterV);
|
|
4360
4620
|
|
|
4361
4621
|
// src/databases/tables/userRoleV.ts
|
|
4362
|
-
var
|
|
4363
|
-
var userRoleV = class extends
|
|
4622
|
+
var import_sequelize_typescript43 = require("sequelize-typescript");
|
|
4623
|
+
var userRoleV = class extends import_sequelize_typescript43.Model {
|
|
4364
4624
|
};
|
|
4365
4625
|
__decorateClass([
|
|
4366
|
-
(0,
|
|
4367
|
-
type:
|
|
4626
|
+
(0, import_sequelize_typescript43.Column)({
|
|
4627
|
+
type: import_sequelize_typescript43.DataType.INTEGER,
|
|
4368
4628
|
defaultValue: "0"
|
|
4369
4629
|
})
|
|
4370
4630
|
], userRoleV.prototype, "id", 2);
|
|
4371
4631
|
__decorateClass([
|
|
4372
|
-
(0,
|
|
4632
|
+
(0, import_sequelize_typescript43.Column)({
|
|
4373
4633
|
field: "website_th",
|
|
4374
4634
|
allowNull: true,
|
|
4375
|
-
type:
|
|
4635
|
+
type: import_sequelize_typescript43.DataType.STRING(60)
|
|
4376
4636
|
})
|
|
4377
4637
|
], userRoleV.prototype, "websiteTh", 2);
|
|
4378
4638
|
__decorateClass([
|
|
4379
|
-
(0,
|
|
4639
|
+
(0, import_sequelize_typescript43.Column)({
|
|
4380
4640
|
field: "website_en",
|
|
4381
4641
|
allowNull: true,
|
|
4382
|
-
type:
|
|
4642
|
+
type: import_sequelize_typescript43.DataType.STRING(60)
|
|
4383
4643
|
})
|
|
4384
4644
|
], userRoleV.prototype, "websiteEn", 2);
|
|
4385
4645
|
__decorateClass([
|
|
4386
|
-
(0,
|
|
4646
|
+
(0, import_sequelize_typescript43.Column)({
|
|
4387
4647
|
field: "website_fr",
|
|
4388
4648
|
allowNull: true,
|
|
4389
|
-
type:
|
|
4649
|
+
type: import_sequelize_typescript43.DataType.STRING(60)
|
|
4390
4650
|
})
|
|
4391
4651
|
], userRoleV.prototype, "websiteFr", 2);
|
|
4392
4652
|
userRoleV = __decorateClass([
|
|
4393
|
-
(0,
|
|
4653
|
+
(0, import_sequelize_typescript43.Table)({
|
|
4394
4654
|
tableName: "user_role_v",
|
|
4395
4655
|
timestamps: false,
|
|
4396
4656
|
comment: "VIEW"
|
|
@@ -4428,6 +4688,8 @@ userRoleV = __decorateClass([
|
|
|
4428
4688
|
mdPopup,
|
|
4429
4689
|
mdQuestionnaire,
|
|
4430
4690
|
mdSetting,
|
|
4691
|
+
mdTranslate,
|
|
4692
|
+
mdTranslateGroup,
|
|
4431
4693
|
mdWords,
|
|
4432
4694
|
member,
|
|
4433
4695
|
menu,
|