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