@admc-go-th/admc-library 1.0.74 → 1.0.75
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/mdTranslate.ts +6 -1
- package/databases/schema/mdTranslateGroup.ts +7 -1
- package/databases/tables/index.d.ts +1 -2
- package/databases/tables/index.js +131 -120
- package/databases/tables/mdTranslate.d.ts +2 -62
- package/databases/tables/mdTranslate.js +152 -52
- package/databases/tables/mdTranslateGroup.d.ts +2 -32
- package/databases/tables/mdTranslateGroup.js +215 -14
- package/mdTranslate-OuC5tJKe.d.ts +93 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { mdTranslateGroup } from "./mdTranslateGroup";
|
|
4
5
|
|
|
5
6
|
export interface mdTranslateAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -58,6 +59,7 @@ export class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttribu
|
|
|
58
59
|
})
|
|
59
60
|
declare keyName?: string;
|
|
60
61
|
|
|
62
|
+
@ForeignKey(() => mdTranslateGroup)
|
|
61
63
|
@Column({
|
|
62
64
|
field: "group_id",
|
|
63
65
|
allowNull: true,
|
|
@@ -217,4 +219,7 @@ export class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttribu
|
|
|
217
219
|
})
|
|
218
220
|
declare updatedDate?: Date;
|
|
219
221
|
|
|
222
|
+
@BelongsTo(() => mdTranslateGroup)
|
|
223
|
+
declare mdTranslateGroup?: mdTranslateGroup;
|
|
224
|
+
|
|
220
225
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { mdTranslate } from "./mdTranslate";
|
|
4
5
|
|
|
5
6
|
export interface mdTranslateGroupAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -101,4 +102,9 @@ export class mdTranslateGroup extends Model<mdTranslateGroupAttributes, mdTransl
|
|
|
101
102
|
})
|
|
102
103
|
declare updatedDate?: Date;
|
|
103
104
|
|
|
105
|
+
@HasMany(() => mdTranslate, {
|
|
106
|
+
sourceKey: "id"
|
|
107
|
+
})
|
|
108
|
+
declare mdTranslates?: mdTranslate[];
|
|
109
|
+
|
|
104
110
|
}
|
|
@@ -16,8 +16,7 @@ export { a as mdLink, m as mdLinkAttributes, c as mdLinkGroup, b as mdLinkGroupA
|
|
|
16
16
|
export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-CqZ9kQ8-.js';
|
|
17
17
|
export { mdPopup, mdPopupAttributes } from './mdPopup.js';
|
|
18
18
|
export { mdSetting, mdSettingAttributes } from './mdSetting.js';
|
|
19
|
-
export { mdTranslate, mdTranslateAttributes } from '
|
|
20
|
-
export { mdTranslateGroup, mdTranslateGroupAttributes } from './mdTranslateGroup.js';
|
|
19
|
+
export { a as mdTranslate, m as mdTranslateAttributes, c as mdTranslateGroup, b as mdTranslateGroupAttributes } from '../../mdTranslate-OuC5tJKe.js';
|
|
21
20
|
export { mdWords, mdWordsAttributes } from './mdWords.js';
|
|
22
21
|
export { member, memberAttributes } from './member.js';
|
|
23
22
|
export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
|
|
@@ -3740,8 +3740,11 @@ mdSetting = __decorateClass([
|
|
|
3740
3740
|
], mdSetting);
|
|
3741
3741
|
|
|
3742
3742
|
// src/databases/tables/mdTranslate.ts
|
|
3743
|
+
var import_sequelize_typescript36 = require("sequelize-typescript");
|
|
3744
|
+
|
|
3745
|
+
// src/databases/tables/mdTranslateGroup.ts
|
|
3743
3746
|
var import_sequelize_typescript35 = require("sequelize-typescript");
|
|
3744
|
-
var
|
|
3747
|
+
var mdTranslateGroup = class extends import_sequelize_typescript35.Model {
|
|
3745
3748
|
};
|
|
3746
3749
|
__decorateClass([
|
|
3747
3750
|
(0, import_sequelize_typescript35.Column)({
|
|
@@ -3749,274 +3752,282 @@ __decorateClass([
|
|
|
3749
3752
|
autoIncrement: true,
|
|
3750
3753
|
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3751
3754
|
})
|
|
3752
|
-
],
|
|
3755
|
+
], mdTranslateGroup.prototype, "id", 2);
|
|
3753
3756
|
__decorateClass([
|
|
3754
3757
|
(0, import_sequelize_typescript35.Column)({
|
|
3755
3758
|
allowNull: true,
|
|
3756
3759
|
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3757
3760
|
})
|
|
3758
|
-
],
|
|
3761
|
+
], mdTranslateGroup.prototype, "uuid", 2);
|
|
3759
3762
|
__decorateClass([
|
|
3760
3763
|
(0, import_sequelize_typescript35.Column)({
|
|
3761
3764
|
field: "key_name",
|
|
3762
3765
|
allowNull: true,
|
|
3763
3766
|
type: import_sequelize_typescript35.DataType.STRING(100)
|
|
3764
3767
|
})
|
|
3765
|
-
],
|
|
3768
|
+
], mdTranslateGroup.prototype, "keyName", 2);
|
|
3766
3769
|
__decorateClass([
|
|
3767
3770
|
(0, import_sequelize_typescript35.Column)({
|
|
3768
|
-
field: "
|
|
3771
|
+
field: "user_id",
|
|
3769
3772
|
allowNull: true,
|
|
3770
3773
|
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3771
3774
|
})
|
|
3772
|
-
],
|
|
3775
|
+
], mdTranslateGroup.prototype, "userId", 2);
|
|
3773
3776
|
__decorateClass([
|
|
3774
3777
|
(0, import_sequelize_typescript35.Column)({
|
|
3775
|
-
|
|
3776
|
-
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3778
|
+
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3777
3779
|
})
|
|
3778
|
-
],
|
|
3780
|
+
], mdTranslateGroup.prototype, "name", 2);
|
|
3779
3781
|
__decorateClass([
|
|
3780
3782
|
(0, import_sequelize_typescript35.Column)({
|
|
3781
3783
|
allowNull: true,
|
|
3782
3784
|
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3783
3785
|
})
|
|
3784
|
-
],
|
|
3786
|
+
], mdTranslateGroup.prototype, "description", 2);
|
|
3785
3787
|
__decorateClass([
|
|
3786
3788
|
(0, import_sequelize_typescript35.Column)({
|
|
3787
3789
|
allowNull: true,
|
|
3788
|
-
type: import_sequelize_typescript35.DataType.
|
|
3790
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3789
3791
|
})
|
|
3790
|
-
],
|
|
3792
|
+
], mdTranslateGroup.prototype, "sort", 2);
|
|
3791
3793
|
__decorateClass([
|
|
3792
3794
|
(0, import_sequelize_typescript35.Column)({
|
|
3793
3795
|
allowNull: true,
|
|
3794
|
-
type: import_sequelize_typescript35.DataType.
|
|
3796
|
+
type: import_sequelize_typescript35.DataType.INTEGER
|
|
3795
3797
|
})
|
|
3796
|
-
],
|
|
3798
|
+
], mdTranslateGroup.prototype, "status", 2);
|
|
3797
3799
|
__decorateClass([
|
|
3798
3800
|
(0, import_sequelize_typescript35.Column)({
|
|
3799
|
-
field: "
|
|
3801
|
+
field: "created_by",
|
|
3800
3802
|
allowNull: true,
|
|
3801
|
-
type: import_sequelize_typescript35.DataType.STRING(
|
|
3803
|
+
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3802
3804
|
})
|
|
3803
|
-
],
|
|
3805
|
+
], mdTranslateGroup.prototype, "createdBy", 2);
|
|
3804
3806
|
__decorateClass([
|
|
3805
3807
|
(0, import_sequelize_typescript35.Column)({
|
|
3806
|
-
field: "
|
|
3808
|
+
field: "created_date",
|
|
3807
3809
|
allowNull: true,
|
|
3808
|
-
type: import_sequelize_typescript35.DataType.
|
|
3810
|
+
type: import_sequelize_typescript35.DataType.DATE
|
|
3809
3811
|
})
|
|
3810
|
-
],
|
|
3812
|
+
], mdTranslateGroup.prototype, "createdDate", 2);
|
|
3811
3813
|
__decorateClass([
|
|
3812
3814
|
(0, import_sequelize_typescript35.Column)({
|
|
3813
|
-
field: "
|
|
3815
|
+
field: "updated_by",
|
|
3814
3816
|
allowNull: true,
|
|
3815
|
-
type: import_sequelize_typescript35.DataType.STRING(
|
|
3817
|
+
type: import_sequelize_typescript35.DataType.STRING(60)
|
|
3816
3818
|
})
|
|
3817
|
-
],
|
|
3819
|
+
], mdTranslateGroup.prototype, "updatedBy", 2);
|
|
3818
3820
|
__decorateClass([
|
|
3819
3821
|
(0, import_sequelize_typescript35.Column)({
|
|
3820
|
-
field: "
|
|
3822
|
+
field: "updated_date",
|
|
3821
3823
|
allowNull: true,
|
|
3822
|
-
type: import_sequelize_typescript35.DataType.
|
|
3824
|
+
type: import_sequelize_typescript35.DataType.DATE
|
|
3823
3825
|
})
|
|
3824
|
-
],
|
|
3826
|
+
], mdTranslateGroup.prototype, "updatedDate", 2);
|
|
3825
3827
|
__decorateClass([
|
|
3826
|
-
(0, import_sequelize_typescript35.
|
|
3827
|
-
|
|
3828
|
-
allowNull: true,
|
|
3829
|
-
type: import_sequelize_typescript35.DataType.STRING(255)
|
|
3828
|
+
(0, import_sequelize_typescript35.HasMany)(() => mdTranslate, {
|
|
3829
|
+
sourceKey: "id"
|
|
3830
3830
|
})
|
|
3831
|
-
],
|
|
3832
|
-
__decorateClass([
|
|
3833
|
-
(0, import_sequelize_typescript35.
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
type: import_sequelize_typescript35.DataType.DATE
|
|
3831
|
+
], mdTranslateGroup.prototype, "mdTranslates", 2);
|
|
3832
|
+
mdTranslateGroup = __decorateClass([
|
|
3833
|
+
(0, import_sequelize_typescript35.Table)({
|
|
3834
|
+
tableName: "md_translate_group",
|
|
3835
|
+
timestamps: false
|
|
3837
3836
|
})
|
|
3838
|
-
],
|
|
3837
|
+
], mdTranslateGroup);
|
|
3838
|
+
|
|
3839
|
+
// src/databases/tables/mdTranslate.ts
|
|
3840
|
+
var mdTranslate = class extends import_sequelize_typescript36.Model {
|
|
3841
|
+
};
|
|
3839
3842
|
__decorateClass([
|
|
3840
|
-
(0,
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
type:
|
|
3843
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3844
|
+
primaryKey: true,
|
|
3845
|
+
autoIncrement: true,
|
|
3846
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3844
3847
|
})
|
|
3845
|
-
], mdTranslate.prototype, "
|
|
3848
|
+
], mdTranslate.prototype, "id", 2);
|
|
3846
3849
|
__decorateClass([
|
|
3847
|
-
(0,
|
|
3850
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3848
3851
|
allowNull: true,
|
|
3849
|
-
type:
|
|
3852
|
+
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3850
3853
|
})
|
|
3851
|
-
], mdTranslate.prototype, "
|
|
3854
|
+
], mdTranslate.prototype, "uuid", 2);
|
|
3852
3855
|
__decorateClass([
|
|
3853
|
-
(0,
|
|
3856
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3857
|
+
field: "key_name",
|
|
3854
3858
|
allowNull: true,
|
|
3855
|
-
type:
|
|
3859
|
+
type: import_sequelize_typescript36.DataType.STRING(100)
|
|
3856
3860
|
})
|
|
3857
|
-
], mdTranslate.prototype, "
|
|
3861
|
+
], mdTranslate.prototype, "keyName", 2);
|
|
3858
3862
|
__decorateClass([
|
|
3859
|
-
(0,
|
|
3863
|
+
(0, import_sequelize_typescript36.ForeignKey)(() => mdTranslateGroup),
|
|
3864
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3865
|
+
field: "group_id",
|
|
3860
3866
|
allowNull: true,
|
|
3861
|
-
type:
|
|
3867
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3862
3868
|
})
|
|
3863
|
-
], mdTranslate.prototype, "
|
|
3869
|
+
], mdTranslate.prototype, "groupId", 2);
|
|
3864
3870
|
__decorateClass([
|
|
3865
|
-
(0,
|
|
3866
|
-
|
|
3867
|
-
type:
|
|
3871
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3872
|
+
field: "user_id",
|
|
3873
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3868
3874
|
})
|
|
3869
|
-
], mdTranslate.prototype, "
|
|
3875
|
+
], mdTranslate.prototype, "userId", 2);
|
|
3870
3876
|
__decorateClass([
|
|
3871
|
-
(0,
|
|
3877
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3872
3878
|
allowNull: true,
|
|
3873
|
-
type:
|
|
3879
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3874
3880
|
})
|
|
3875
|
-
], mdTranslate.prototype, "
|
|
3881
|
+
], mdTranslate.prototype, "title", 2);
|
|
3876
3882
|
__decorateClass([
|
|
3877
|
-
(0,
|
|
3878
|
-
field: "has_expire",
|
|
3883
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3879
3884
|
allowNull: true,
|
|
3880
|
-
type:
|
|
3885
|
+
type: import_sequelize_typescript36.DataType.STRING
|
|
3881
3886
|
})
|
|
3882
|
-
], mdTranslate.prototype, "
|
|
3887
|
+
], mdTranslate.prototype, "description", 2);
|
|
3883
3888
|
__decorateClass([
|
|
3884
|
-
(0,
|
|
3885
|
-
field: "start_date",
|
|
3889
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3886
3890
|
allowNull: true,
|
|
3887
|
-
type:
|
|
3891
|
+
type: import_sequelize_typescript36.DataType.STRING
|
|
3888
3892
|
})
|
|
3889
|
-
], mdTranslate.prototype, "
|
|
3893
|
+
], mdTranslate.prototype, "detail", 2);
|
|
3890
3894
|
__decorateClass([
|
|
3891
|
-
(0,
|
|
3892
|
-
field: "
|
|
3895
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3896
|
+
field: "meta_title",
|
|
3893
3897
|
allowNull: true,
|
|
3894
|
-
type:
|
|
3898
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3895
3899
|
})
|
|
3896
|
-
], mdTranslate.prototype, "
|
|
3900
|
+
], mdTranslate.prototype, "metaTitle", 2);
|
|
3897
3901
|
__decorateClass([
|
|
3898
|
-
(0,
|
|
3899
|
-
field: "
|
|
3902
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3903
|
+
field: "meta_keyword",
|
|
3900
3904
|
allowNull: true,
|
|
3901
|
-
type:
|
|
3905
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3902
3906
|
})
|
|
3903
|
-
], mdTranslate.prototype, "
|
|
3907
|
+
], mdTranslate.prototype, "metaKeyword", 2);
|
|
3904
3908
|
__decorateClass([
|
|
3905
|
-
(0,
|
|
3906
|
-
field: "
|
|
3909
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3910
|
+
field: "meta_description",
|
|
3907
3911
|
allowNull: true,
|
|
3908
|
-
type:
|
|
3912
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3909
3913
|
})
|
|
3910
|
-
], mdTranslate.prototype, "
|
|
3914
|
+
], mdTranslate.prototype, "metaDescription", 2);
|
|
3911
3915
|
__decorateClass([
|
|
3912
|
-
(0,
|
|
3913
|
-
field: "
|
|
3916
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3917
|
+
field: "translate_by",
|
|
3914
3918
|
allowNull: true,
|
|
3915
|
-
type:
|
|
3919
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3916
3920
|
})
|
|
3917
|
-
], mdTranslate.prototype, "
|
|
3921
|
+
], mdTranslate.prototype, "translateBy", 2);
|
|
3918
3922
|
__decorateClass([
|
|
3919
|
-
(0,
|
|
3920
|
-
field: "
|
|
3923
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3924
|
+
field: "reference_no",
|
|
3921
3925
|
allowNull: true,
|
|
3922
|
-
type:
|
|
3923
|
-
})
|
|
3924
|
-
], mdTranslate.prototype, "updatedDate", 2);
|
|
3925
|
-
mdTranslate = __decorateClass([
|
|
3926
|
-
(0, import_sequelize_typescript35.Table)({
|
|
3927
|
-
tableName: "md_translate",
|
|
3928
|
-
timestamps: false
|
|
3926
|
+
type: import_sequelize_typescript36.DataType.STRING(255)
|
|
3929
3927
|
})
|
|
3930
|
-
], mdTranslate);
|
|
3931
|
-
|
|
3932
|
-
// src/databases/tables/mdTranslateGroup.ts
|
|
3933
|
-
var import_sequelize_typescript36 = require("sequelize-typescript");
|
|
3934
|
-
var mdTranslateGroup = class extends import_sequelize_typescript36.Model {
|
|
3935
|
-
};
|
|
3928
|
+
], mdTranslate.prototype, "referenceNo", 2);
|
|
3936
3929
|
__decorateClass([
|
|
3937
3930
|
(0, import_sequelize_typescript36.Column)({
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
type: import_sequelize_typescript36.DataType.
|
|
3931
|
+
field: "reference_date",
|
|
3932
|
+
allowNull: true,
|
|
3933
|
+
type: import_sequelize_typescript36.DataType.DATE
|
|
3941
3934
|
})
|
|
3942
|
-
],
|
|
3935
|
+
], mdTranslate.prototype, "referenceDate", 2);
|
|
3943
3936
|
__decorateClass([
|
|
3944
3937
|
(0, import_sequelize_typescript36.Column)({
|
|
3938
|
+
field: "image_cover",
|
|
3945
3939
|
allowNull: true,
|
|
3946
3940
|
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3947
3941
|
})
|
|
3948
|
-
],
|
|
3942
|
+
], mdTranslate.prototype, "imageCover", 2);
|
|
3949
3943
|
__decorateClass([
|
|
3950
3944
|
(0, import_sequelize_typescript36.Column)({
|
|
3951
|
-
field: "key_name",
|
|
3952
3945
|
allowNull: true,
|
|
3953
|
-
type: import_sequelize_typescript36.DataType.
|
|
3946
|
+
type: import_sequelize_typescript36.DataType.JSON
|
|
3954
3947
|
})
|
|
3955
|
-
],
|
|
3948
|
+
], mdTranslate.prototype, "attachments", 2);
|
|
3956
3949
|
__decorateClass([
|
|
3957
3950
|
(0, import_sequelize_typescript36.Column)({
|
|
3958
|
-
field: "user_id",
|
|
3959
3951
|
allowNull: true,
|
|
3960
3952
|
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3961
3953
|
})
|
|
3962
|
-
],
|
|
3954
|
+
], mdTranslate.prototype, "highlight", 2);
|
|
3963
3955
|
__decorateClass([
|
|
3964
3956
|
(0, import_sequelize_typescript36.Column)({
|
|
3965
|
-
|
|
3957
|
+
allowNull: true,
|
|
3958
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3966
3959
|
})
|
|
3967
|
-
],
|
|
3960
|
+
], mdTranslate.prototype, "sort", 2);
|
|
3968
3961
|
__decorateClass([
|
|
3969
3962
|
(0, import_sequelize_typescript36.Column)({
|
|
3970
3963
|
allowNull: true,
|
|
3971
|
-
type: import_sequelize_typescript36.DataType.
|
|
3964
|
+
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3972
3965
|
})
|
|
3973
|
-
],
|
|
3966
|
+
], mdTranslate.prototype, "publish", 2);
|
|
3974
3967
|
__decorateClass([
|
|
3975
3968
|
(0, import_sequelize_typescript36.Column)({
|
|
3976
3969
|
allowNull: true,
|
|
3977
3970
|
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3978
3971
|
})
|
|
3979
|
-
],
|
|
3972
|
+
], mdTranslate.prototype, "status", 2);
|
|
3980
3973
|
__decorateClass([
|
|
3981
3974
|
(0, import_sequelize_typescript36.Column)({
|
|
3975
|
+
field: "has_expire",
|
|
3982
3976
|
allowNull: true,
|
|
3983
3977
|
type: import_sequelize_typescript36.DataType.INTEGER
|
|
3984
3978
|
})
|
|
3985
|
-
],
|
|
3979
|
+
], mdTranslate.prototype, "hasExpire", 2);
|
|
3980
|
+
__decorateClass([
|
|
3981
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3982
|
+
field: "start_date",
|
|
3983
|
+
allowNull: true,
|
|
3984
|
+
type: import_sequelize_typescript36.DataType.DATE
|
|
3985
|
+
})
|
|
3986
|
+
], mdTranslate.prototype, "startDate", 2);
|
|
3987
|
+
__decorateClass([
|
|
3988
|
+
(0, import_sequelize_typescript36.Column)({
|
|
3989
|
+
field: "expire_date",
|
|
3990
|
+
allowNull: true,
|
|
3991
|
+
type: import_sequelize_typescript36.DataType.DATE
|
|
3992
|
+
})
|
|
3993
|
+
], mdTranslate.prototype, "expireDate", 2);
|
|
3986
3994
|
__decorateClass([
|
|
3987
3995
|
(0, import_sequelize_typescript36.Column)({
|
|
3988
3996
|
field: "created_by",
|
|
3989
3997
|
allowNull: true,
|
|
3990
3998
|
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
3991
3999
|
})
|
|
3992
|
-
],
|
|
4000
|
+
], mdTranslate.prototype, "createdBy", 2);
|
|
3993
4001
|
__decorateClass([
|
|
3994
4002
|
(0, import_sequelize_typescript36.Column)({
|
|
3995
4003
|
field: "created_date",
|
|
3996
4004
|
allowNull: true,
|
|
3997
4005
|
type: import_sequelize_typescript36.DataType.DATE
|
|
3998
4006
|
})
|
|
3999
|
-
],
|
|
4007
|
+
], mdTranslate.prototype, "createdDate", 2);
|
|
4000
4008
|
__decorateClass([
|
|
4001
4009
|
(0, import_sequelize_typescript36.Column)({
|
|
4002
4010
|
field: "updated_by",
|
|
4003
4011
|
allowNull: true,
|
|
4004
4012
|
type: import_sequelize_typescript36.DataType.STRING(60)
|
|
4005
4013
|
})
|
|
4006
|
-
],
|
|
4014
|
+
], mdTranslate.prototype, "updatedBy", 2);
|
|
4007
4015
|
__decorateClass([
|
|
4008
4016
|
(0, import_sequelize_typescript36.Column)({
|
|
4009
4017
|
field: "updated_date",
|
|
4010
4018
|
allowNull: true,
|
|
4011
4019
|
type: import_sequelize_typescript36.DataType.DATE
|
|
4012
4020
|
})
|
|
4013
|
-
],
|
|
4014
|
-
|
|
4021
|
+
], mdTranslate.prototype, "updatedDate", 2);
|
|
4022
|
+
__decorateClass([
|
|
4023
|
+
(0, import_sequelize_typescript36.BelongsTo)(() => mdTranslateGroup)
|
|
4024
|
+
], mdTranslate.prototype, "mdTranslateGroup", 2);
|
|
4025
|
+
mdTranslate = __decorateClass([
|
|
4015
4026
|
(0, import_sequelize_typescript36.Table)({
|
|
4016
|
-
tableName: "
|
|
4027
|
+
tableName: "md_translate",
|
|
4017
4028
|
timestamps: false
|
|
4018
4029
|
})
|
|
4019
|
-
],
|
|
4030
|
+
], mdTranslate);
|
|
4020
4031
|
|
|
4021
4032
|
// src/databases/tables/mdWords.ts
|
|
4022
4033
|
var import_sequelize_typescript37 = require("sequelize-typescript");
|
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface mdTranslateAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid?: string;
|
|
6
|
-
keyName?: string;
|
|
7
|
-
groupId?: number;
|
|
8
|
-
userId: number;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
detail?: string;
|
|
12
|
-
metaTitle?: string;
|
|
13
|
-
metaKeyword?: string;
|
|
14
|
-
metaDescription?: string;
|
|
15
|
-
translateBy?: string;
|
|
16
|
-
referenceNo?: string;
|
|
17
|
-
referenceDate?: Date;
|
|
18
|
-
imageCover?: string;
|
|
19
|
-
attachments?: object;
|
|
20
|
-
highlight?: number;
|
|
21
|
-
sort?: number;
|
|
22
|
-
publish?: number;
|
|
23
|
-
status?: number;
|
|
24
|
-
hasExpire?: number;
|
|
25
|
-
startDate?: Date;
|
|
26
|
-
expireDate?: Date;
|
|
27
|
-
createdBy?: string;
|
|
28
|
-
createdDate?: Date;
|
|
29
|
-
updatedBy?: string;
|
|
30
|
-
updatedDate?: Date;
|
|
31
|
-
}
|
|
32
|
-
declare class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttributes> implements mdTranslateAttributes {
|
|
33
|
-
id?: number;
|
|
34
|
-
uuid?: string;
|
|
35
|
-
keyName?: string;
|
|
36
|
-
groupId?: number;
|
|
37
|
-
userId: number;
|
|
38
|
-
title?: string;
|
|
39
|
-
description?: string;
|
|
40
|
-
detail?: string;
|
|
41
|
-
metaTitle?: string;
|
|
42
|
-
metaKeyword?: string;
|
|
43
|
-
metaDescription?: string;
|
|
44
|
-
translateBy?: string;
|
|
45
|
-
referenceNo?: string;
|
|
46
|
-
referenceDate?: Date;
|
|
47
|
-
imageCover?: string;
|
|
48
|
-
attachments?: object;
|
|
49
|
-
highlight?: number;
|
|
50
|
-
sort?: number;
|
|
51
|
-
publish?: number;
|
|
52
|
-
status?: number;
|
|
53
|
-
hasExpire?: number;
|
|
54
|
-
startDate?: Date;
|
|
55
|
-
expireDate?: Date;
|
|
56
|
-
createdBy?: string;
|
|
57
|
-
createdDate?: Date;
|
|
58
|
-
updatedBy?: string;
|
|
59
|
-
updatedDate?: Date;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { mdTranslate, type mdTranslateAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { a as mdTranslate, m as mdTranslateAttributes } from '../../mdTranslate-OuC5tJKe.js';
|
|
@@ -31,8 +31,11 @@ __export(mdTranslate_exports, {
|
|
|
31
31
|
mdTranslate: () => mdTranslate
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(mdTranslate_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/mdTranslateGroup.ts
|
|
34
37
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
38
|
+
var mdTranslateGroup = class extends import_sequelize_typescript.Model {
|
|
36
39
|
};
|
|
37
40
|
__decorateClass([
|
|
38
41
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -40,181 +43,278 @@ __decorateClass([
|
|
|
40
43
|
autoIncrement: true,
|
|
41
44
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
45
|
})
|
|
43
|
-
],
|
|
46
|
+
], mdTranslateGroup.prototype, "id", 2);
|
|
44
47
|
__decorateClass([
|
|
45
48
|
(0, import_sequelize_typescript.Column)({
|
|
46
49
|
allowNull: true,
|
|
47
50
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
48
51
|
})
|
|
49
|
-
],
|
|
52
|
+
], mdTranslateGroup.prototype, "uuid", 2);
|
|
50
53
|
__decorateClass([
|
|
51
54
|
(0, import_sequelize_typescript.Column)({
|
|
52
55
|
field: "key_name",
|
|
53
56
|
allowNull: true,
|
|
54
57
|
type: import_sequelize_typescript.DataType.STRING(100)
|
|
55
58
|
})
|
|
56
|
-
],
|
|
59
|
+
], mdTranslateGroup.prototype, "keyName", 2);
|
|
57
60
|
__decorateClass([
|
|
58
61
|
(0, import_sequelize_typescript.Column)({
|
|
59
|
-
field: "
|
|
62
|
+
field: "user_id",
|
|
60
63
|
allowNull: true,
|
|
61
64
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
62
65
|
})
|
|
63
|
-
],
|
|
66
|
+
], mdTranslateGroup.prototype, "userId", 2);
|
|
64
67
|
__decorateClass([
|
|
65
68
|
(0, import_sequelize_typescript.Column)({
|
|
66
|
-
|
|
67
|
-
type: import_sequelize_typescript.DataType.INTEGER
|
|
69
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
68
70
|
})
|
|
69
|
-
],
|
|
71
|
+
], mdTranslateGroup.prototype, "name", 2);
|
|
70
72
|
__decorateClass([
|
|
71
73
|
(0, import_sequelize_typescript.Column)({
|
|
72
74
|
allowNull: true,
|
|
73
75
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
74
76
|
})
|
|
75
|
-
],
|
|
77
|
+
], mdTranslateGroup.prototype, "description", 2);
|
|
76
78
|
__decorateClass([
|
|
77
79
|
(0, import_sequelize_typescript.Column)({
|
|
78
80
|
allowNull: true,
|
|
79
|
-
type: import_sequelize_typescript.DataType.
|
|
81
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
80
82
|
})
|
|
81
|
-
],
|
|
83
|
+
], mdTranslateGroup.prototype, "sort", 2);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
(0, import_sequelize_typescript.Column)({
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
88
|
+
})
|
|
89
|
+
], mdTranslateGroup.prototype, "status", 2);
|
|
82
90
|
__decorateClass([
|
|
83
91
|
(0, import_sequelize_typescript.Column)({
|
|
92
|
+
field: "created_by",
|
|
84
93
|
allowNull: true,
|
|
85
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
94
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
86
95
|
})
|
|
87
|
-
],
|
|
96
|
+
], mdTranslateGroup.prototype, "createdBy", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
(0, import_sequelize_typescript.Column)({
|
|
99
|
+
field: "created_date",
|
|
100
|
+
allowNull: true,
|
|
101
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
102
|
+
})
|
|
103
|
+
], mdTranslateGroup.prototype, "createdDate", 2);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
(0, import_sequelize_typescript.Column)({
|
|
106
|
+
field: "updated_by",
|
|
107
|
+
allowNull: true,
|
|
108
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
109
|
+
})
|
|
110
|
+
], mdTranslateGroup.prototype, "updatedBy", 2);
|
|
88
111
|
__decorateClass([
|
|
89
112
|
(0, import_sequelize_typescript.Column)({
|
|
113
|
+
field: "updated_date",
|
|
114
|
+
allowNull: true,
|
|
115
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
116
|
+
})
|
|
117
|
+
], mdTranslateGroup.prototype, "updatedDate", 2);
|
|
118
|
+
__decorateClass([
|
|
119
|
+
(0, import_sequelize_typescript.HasMany)(() => mdTranslate, {
|
|
120
|
+
sourceKey: "id"
|
|
121
|
+
})
|
|
122
|
+
], mdTranslateGroup.prototype, "mdTranslates", 2);
|
|
123
|
+
mdTranslateGroup = __decorateClass([
|
|
124
|
+
(0, import_sequelize_typescript.Table)({
|
|
125
|
+
tableName: "md_translate_group",
|
|
126
|
+
timestamps: false
|
|
127
|
+
})
|
|
128
|
+
], mdTranslateGroup);
|
|
129
|
+
|
|
130
|
+
// src/databases/tables/mdTranslate.ts
|
|
131
|
+
var mdTranslate = class extends import_sequelize_typescript2.Model {
|
|
132
|
+
};
|
|
133
|
+
__decorateClass([
|
|
134
|
+
(0, import_sequelize_typescript2.Column)({
|
|
135
|
+
primaryKey: true,
|
|
136
|
+
autoIncrement: true,
|
|
137
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
138
|
+
})
|
|
139
|
+
], mdTranslate.prototype, "id", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
(0, import_sequelize_typescript2.Column)({
|
|
142
|
+
allowNull: true,
|
|
143
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
144
|
+
})
|
|
145
|
+
], mdTranslate.prototype, "uuid", 2);
|
|
146
|
+
__decorateClass([
|
|
147
|
+
(0, import_sequelize_typescript2.Column)({
|
|
148
|
+
field: "key_name",
|
|
149
|
+
allowNull: true,
|
|
150
|
+
type: import_sequelize_typescript2.DataType.STRING(100)
|
|
151
|
+
})
|
|
152
|
+
], mdTranslate.prototype, "keyName", 2);
|
|
153
|
+
__decorateClass([
|
|
154
|
+
(0, import_sequelize_typescript2.ForeignKey)(() => mdTranslateGroup),
|
|
155
|
+
(0, import_sequelize_typescript2.Column)({
|
|
156
|
+
field: "group_id",
|
|
157
|
+
allowNull: true,
|
|
158
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
159
|
+
})
|
|
160
|
+
], mdTranslate.prototype, "groupId", 2);
|
|
161
|
+
__decorateClass([
|
|
162
|
+
(0, import_sequelize_typescript2.Column)({
|
|
163
|
+
field: "user_id",
|
|
164
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
165
|
+
})
|
|
166
|
+
], mdTranslate.prototype, "userId", 2);
|
|
167
|
+
__decorateClass([
|
|
168
|
+
(0, import_sequelize_typescript2.Column)({
|
|
169
|
+
allowNull: true,
|
|
170
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
171
|
+
})
|
|
172
|
+
], mdTranslate.prototype, "title", 2);
|
|
173
|
+
__decorateClass([
|
|
174
|
+
(0, import_sequelize_typescript2.Column)({
|
|
175
|
+
allowNull: true,
|
|
176
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
177
|
+
})
|
|
178
|
+
], mdTranslate.prototype, "description", 2);
|
|
179
|
+
__decorateClass([
|
|
180
|
+
(0, import_sequelize_typescript2.Column)({
|
|
181
|
+
allowNull: true,
|
|
182
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
183
|
+
})
|
|
184
|
+
], mdTranslate.prototype, "detail", 2);
|
|
185
|
+
__decorateClass([
|
|
186
|
+
(0, import_sequelize_typescript2.Column)({
|
|
90
187
|
field: "meta_title",
|
|
91
188
|
allowNull: true,
|
|
92
|
-
type:
|
|
189
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
93
190
|
})
|
|
94
191
|
], mdTranslate.prototype, "metaTitle", 2);
|
|
95
192
|
__decorateClass([
|
|
96
|
-
(0,
|
|
193
|
+
(0, import_sequelize_typescript2.Column)({
|
|
97
194
|
field: "meta_keyword",
|
|
98
195
|
allowNull: true,
|
|
99
|
-
type:
|
|
196
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
100
197
|
})
|
|
101
198
|
], mdTranslate.prototype, "metaKeyword", 2);
|
|
102
199
|
__decorateClass([
|
|
103
|
-
(0,
|
|
200
|
+
(0, import_sequelize_typescript2.Column)({
|
|
104
201
|
field: "meta_description",
|
|
105
202
|
allowNull: true,
|
|
106
|
-
type:
|
|
203
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
107
204
|
})
|
|
108
205
|
], mdTranslate.prototype, "metaDescription", 2);
|
|
109
206
|
__decorateClass([
|
|
110
|
-
(0,
|
|
207
|
+
(0, import_sequelize_typescript2.Column)({
|
|
111
208
|
field: "translate_by",
|
|
112
209
|
allowNull: true,
|
|
113
|
-
type:
|
|
210
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
114
211
|
})
|
|
115
212
|
], mdTranslate.prototype, "translateBy", 2);
|
|
116
213
|
__decorateClass([
|
|
117
|
-
(0,
|
|
214
|
+
(0, import_sequelize_typescript2.Column)({
|
|
118
215
|
field: "reference_no",
|
|
119
216
|
allowNull: true,
|
|
120
|
-
type:
|
|
217
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
121
218
|
})
|
|
122
219
|
], mdTranslate.prototype, "referenceNo", 2);
|
|
123
220
|
__decorateClass([
|
|
124
|
-
(0,
|
|
221
|
+
(0, import_sequelize_typescript2.Column)({
|
|
125
222
|
field: "reference_date",
|
|
126
223
|
allowNull: true,
|
|
127
|
-
type:
|
|
224
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
128
225
|
})
|
|
129
226
|
], mdTranslate.prototype, "referenceDate", 2);
|
|
130
227
|
__decorateClass([
|
|
131
|
-
(0,
|
|
228
|
+
(0, import_sequelize_typescript2.Column)({
|
|
132
229
|
field: "image_cover",
|
|
133
230
|
allowNull: true,
|
|
134
|
-
type:
|
|
231
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
135
232
|
})
|
|
136
233
|
], mdTranslate.prototype, "imageCover", 2);
|
|
137
234
|
__decorateClass([
|
|
138
|
-
(0,
|
|
235
|
+
(0, import_sequelize_typescript2.Column)({
|
|
139
236
|
allowNull: true,
|
|
140
|
-
type:
|
|
237
|
+
type: import_sequelize_typescript2.DataType.JSON
|
|
141
238
|
})
|
|
142
239
|
], mdTranslate.prototype, "attachments", 2);
|
|
143
240
|
__decorateClass([
|
|
144
|
-
(0,
|
|
241
|
+
(0, import_sequelize_typescript2.Column)({
|
|
145
242
|
allowNull: true,
|
|
146
|
-
type:
|
|
243
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
147
244
|
})
|
|
148
245
|
], mdTranslate.prototype, "highlight", 2);
|
|
149
246
|
__decorateClass([
|
|
150
|
-
(0,
|
|
247
|
+
(0, import_sequelize_typescript2.Column)({
|
|
151
248
|
allowNull: true,
|
|
152
|
-
type:
|
|
249
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
153
250
|
})
|
|
154
251
|
], mdTranslate.prototype, "sort", 2);
|
|
155
252
|
__decorateClass([
|
|
156
|
-
(0,
|
|
253
|
+
(0, import_sequelize_typescript2.Column)({
|
|
157
254
|
allowNull: true,
|
|
158
|
-
type:
|
|
255
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
159
256
|
})
|
|
160
257
|
], mdTranslate.prototype, "publish", 2);
|
|
161
258
|
__decorateClass([
|
|
162
|
-
(0,
|
|
259
|
+
(0, import_sequelize_typescript2.Column)({
|
|
163
260
|
allowNull: true,
|
|
164
|
-
type:
|
|
261
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
165
262
|
})
|
|
166
263
|
], mdTranslate.prototype, "status", 2);
|
|
167
264
|
__decorateClass([
|
|
168
|
-
(0,
|
|
265
|
+
(0, import_sequelize_typescript2.Column)({
|
|
169
266
|
field: "has_expire",
|
|
170
267
|
allowNull: true,
|
|
171
|
-
type:
|
|
268
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
172
269
|
})
|
|
173
270
|
], mdTranslate.prototype, "hasExpire", 2);
|
|
174
271
|
__decorateClass([
|
|
175
|
-
(0,
|
|
272
|
+
(0, import_sequelize_typescript2.Column)({
|
|
176
273
|
field: "start_date",
|
|
177
274
|
allowNull: true,
|
|
178
|
-
type:
|
|
275
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
179
276
|
})
|
|
180
277
|
], mdTranslate.prototype, "startDate", 2);
|
|
181
278
|
__decorateClass([
|
|
182
|
-
(0,
|
|
279
|
+
(0, import_sequelize_typescript2.Column)({
|
|
183
280
|
field: "expire_date",
|
|
184
281
|
allowNull: true,
|
|
185
|
-
type:
|
|
282
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
186
283
|
})
|
|
187
284
|
], mdTranslate.prototype, "expireDate", 2);
|
|
188
285
|
__decorateClass([
|
|
189
|
-
(0,
|
|
286
|
+
(0, import_sequelize_typescript2.Column)({
|
|
190
287
|
field: "created_by",
|
|
191
288
|
allowNull: true,
|
|
192
|
-
type:
|
|
289
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
193
290
|
})
|
|
194
291
|
], mdTranslate.prototype, "createdBy", 2);
|
|
195
292
|
__decorateClass([
|
|
196
|
-
(0,
|
|
293
|
+
(0, import_sequelize_typescript2.Column)({
|
|
197
294
|
field: "created_date",
|
|
198
295
|
allowNull: true,
|
|
199
|
-
type:
|
|
296
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
200
297
|
})
|
|
201
298
|
], mdTranslate.prototype, "createdDate", 2);
|
|
202
299
|
__decorateClass([
|
|
203
|
-
(0,
|
|
300
|
+
(0, import_sequelize_typescript2.Column)({
|
|
204
301
|
field: "updated_by",
|
|
205
302
|
allowNull: true,
|
|
206
|
-
type:
|
|
303
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
207
304
|
})
|
|
208
305
|
], mdTranslate.prototype, "updatedBy", 2);
|
|
209
306
|
__decorateClass([
|
|
210
|
-
(0,
|
|
307
|
+
(0, import_sequelize_typescript2.Column)({
|
|
211
308
|
field: "updated_date",
|
|
212
309
|
allowNull: true,
|
|
213
|
-
type:
|
|
310
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
214
311
|
})
|
|
215
312
|
], mdTranslate.prototype, "updatedDate", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
(0, import_sequelize_typescript2.BelongsTo)(() => mdTranslateGroup)
|
|
315
|
+
], mdTranslate.prototype, "mdTranslateGroup", 2);
|
|
216
316
|
mdTranslate = __decorateClass([
|
|
217
|
-
(0,
|
|
317
|
+
(0, import_sequelize_typescript2.Table)({
|
|
218
318
|
tableName: "md_translate",
|
|
219
319
|
timestamps: false
|
|
220
320
|
})
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface mdTranslateGroupAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid?: string;
|
|
6
|
-
keyName?: string;
|
|
7
|
-
userId?: number;
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
sort?: number;
|
|
11
|
-
status?: number;
|
|
12
|
-
createdBy?: string;
|
|
13
|
-
createdDate?: Date;
|
|
14
|
-
updatedBy?: string;
|
|
15
|
-
updatedDate?: Date;
|
|
16
|
-
}
|
|
17
|
-
declare class mdTranslateGroup extends Model<mdTranslateGroupAttributes, mdTranslateGroupAttributes> implements mdTranslateGroupAttributes {
|
|
18
|
-
id?: number;
|
|
19
|
-
uuid?: string;
|
|
20
|
-
keyName?: string;
|
|
21
|
-
userId?: number;
|
|
22
|
-
name: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
sort?: number;
|
|
25
|
-
status?: number;
|
|
26
|
-
createdBy?: string;
|
|
27
|
-
createdDate?: Date;
|
|
28
|
-
updatedBy?: string;
|
|
29
|
-
updatedDate?: Date;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { mdTranslateGroup, type mdTranslateGroupAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { c as mdTranslateGroup, b as mdTranslateGroupAttributes } from '../../mdTranslate-OuC5tJKe.js';
|
|
@@ -31,8 +31,11 @@ __export(mdTranslateGroup_exports, {
|
|
|
31
31
|
mdTranslateGroup: () => mdTranslateGroup
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(mdTranslateGroup_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/mdTranslate.ts
|
|
34
37
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
38
|
+
var mdTranslate = class extends import_sequelize_typescript.Model {
|
|
36
39
|
};
|
|
37
40
|
__decorateClass([
|
|
38
41
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -40,80 +43,278 @@ __decorateClass([
|
|
|
40
43
|
autoIncrement: true,
|
|
41
44
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
45
|
})
|
|
43
|
-
],
|
|
46
|
+
], mdTranslate.prototype, "id", 2);
|
|
44
47
|
__decorateClass([
|
|
45
48
|
(0, import_sequelize_typescript.Column)({
|
|
46
49
|
allowNull: true,
|
|
47
50
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
48
51
|
})
|
|
49
|
-
],
|
|
52
|
+
], mdTranslate.prototype, "uuid", 2);
|
|
50
53
|
__decorateClass([
|
|
51
54
|
(0, import_sequelize_typescript.Column)({
|
|
52
55
|
field: "key_name",
|
|
53
56
|
allowNull: true,
|
|
54
57
|
type: import_sequelize_typescript.DataType.STRING(100)
|
|
55
58
|
})
|
|
56
|
-
],
|
|
59
|
+
], mdTranslate.prototype, "keyName", 2);
|
|
57
60
|
__decorateClass([
|
|
61
|
+
(0, import_sequelize_typescript.ForeignKey)(() => mdTranslateGroup),
|
|
58
62
|
(0, import_sequelize_typescript.Column)({
|
|
59
|
-
field: "
|
|
63
|
+
field: "group_id",
|
|
60
64
|
allowNull: true,
|
|
61
65
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
62
66
|
})
|
|
63
|
-
],
|
|
67
|
+
], mdTranslate.prototype, "groupId", 2);
|
|
64
68
|
__decorateClass([
|
|
65
69
|
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
field: "user_id",
|
|
71
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
72
|
+
})
|
|
73
|
+
], mdTranslate.prototype, "userId", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
(0, import_sequelize_typescript.Column)({
|
|
76
|
+
allowNull: true,
|
|
66
77
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
67
78
|
})
|
|
68
|
-
],
|
|
79
|
+
], mdTranslate.prototype, "title", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
(0, import_sequelize_typescript.Column)({
|
|
82
|
+
allowNull: true,
|
|
83
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
84
|
+
})
|
|
85
|
+
], mdTranslate.prototype, "description", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
(0, import_sequelize_typescript.Column)({
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
90
|
+
})
|
|
91
|
+
], mdTranslate.prototype, "detail", 2);
|
|
69
92
|
__decorateClass([
|
|
70
93
|
(0, import_sequelize_typescript.Column)({
|
|
94
|
+
field: "meta_title",
|
|
71
95
|
allowNull: true,
|
|
72
96
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
73
97
|
})
|
|
74
|
-
],
|
|
98
|
+
], mdTranslate.prototype, "metaTitle", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
(0, import_sequelize_typescript.Column)({
|
|
101
|
+
field: "meta_keyword",
|
|
102
|
+
allowNull: true,
|
|
103
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
104
|
+
})
|
|
105
|
+
], mdTranslate.prototype, "metaKeyword", 2);
|
|
106
|
+
__decorateClass([
|
|
107
|
+
(0, import_sequelize_typescript.Column)({
|
|
108
|
+
field: "meta_description",
|
|
109
|
+
allowNull: true,
|
|
110
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
111
|
+
})
|
|
112
|
+
], mdTranslate.prototype, "metaDescription", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
(0, import_sequelize_typescript.Column)({
|
|
115
|
+
field: "translate_by",
|
|
116
|
+
allowNull: true,
|
|
117
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
118
|
+
})
|
|
119
|
+
], mdTranslate.prototype, "translateBy", 2);
|
|
120
|
+
__decorateClass([
|
|
121
|
+
(0, import_sequelize_typescript.Column)({
|
|
122
|
+
field: "reference_no",
|
|
123
|
+
allowNull: true,
|
|
124
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
125
|
+
})
|
|
126
|
+
], mdTranslate.prototype, "referenceNo", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
(0, import_sequelize_typescript.Column)({
|
|
129
|
+
field: "reference_date",
|
|
130
|
+
allowNull: true,
|
|
131
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
132
|
+
})
|
|
133
|
+
], mdTranslate.prototype, "referenceDate", 2);
|
|
134
|
+
__decorateClass([
|
|
135
|
+
(0, import_sequelize_typescript.Column)({
|
|
136
|
+
field: "image_cover",
|
|
137
|
+
allowNull: true,
|
|
138
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
139
|
+
})
|
|
140
|
+
], mdTranslate.prototype, "imageCover", 2);
|
|
141
|
+
__decorateClass([
|
|
142
|
+
(0, import_sequelize_typescript.Column)({
|
|
143
|
+
allowNull: true,
|
|
144
|
+
type: import_sequelize_typescript.DataType.JSON
|
|
145
|
+
})
|
|
146
|
+
], mdTranslate.prototype, "attachments", 2);
|
|
75
147
|
__decorateClass([
|
|
76
148
|
(0, import_sequelize_typescript.Column)({
|
|
77
149
|
allowNull: true,
|
|
78
150
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
79
151
|
})
|
|
80
|
-
],
|
|
152
|
+
], mdTranslate.prototype, "highlight", 2);
|
|
81
153
|
__decorateClass([
|
|
82
154
|
(0, import_sequelize_typescript.Column)({
|
|
83
155
|
allowNull: true,
|
|
84
156
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
85
157
|
})
|
|
86
|
-
],
|
|
158
|
+
], mdTranslate.prototype, "sort", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
(0, import_sequelize_typescript.Column)({
|
|
161
|
+
allowNull: true,
|
|
162
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
163
|
+
})
|
|
164
|
+
], mdTranslate.prototype, "publish", 2);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
(0, import_sequelize_typescript.Column)({
|
|
167
|
+
allowNull: true,
|
|
168
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
169
|
+
})
|
|
170
|
+
], mdTranslate.prototype, "status", 2);
|
|
171
|
+
__decorateClass([
|
|
172
|
+
(0, import_sequelize_typescript.Column)({
|
|
173
|
+
field: "has_expire",
|
|
174
|
+
allowNull: true,
|
|
175
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
176
|
+
})
|
|
177
|
+
], mdTranslate.prototype, "hasExpire", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
(0, import_sequelize_typescript.Column)({
|
|
180
|
+
field: "start_date",
|
|
181
|
+
allowNull: true,
|
|
182
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
183
|
+
})
|
|
184
|
+
], mdTranslate.prototype, "startDate", 2);
|
|
185
|
+
__decorateClass([
|
|
186
|
+
(0, import_sequelize_typescript.Column)({
|
|
187
|
+
field: "expire_date",
|
|
188
|
+
allowNull: true,
|
|
189
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
190
|
+
})
|
|
191
|
+
], mdTranslate.prototype, "expireDate", 2);
|
|
87
192
|
__decorateClass([
|
|
88
193
|
(0, import_sequelize_typescript.Column)({
|
|
89
194
|
field: "created_by",
|
|
90
195
|
allowNull: true,
|
|
91
196
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
92
197
|
})
|
|
93
|
-
],
|
|
198
|
+
], mdTranslate.prototype, "createdBy", 2);
|
|
94
199
|
__decorateClass([
|
|
95
200
|
(0, import_sequelize_typescript.Column)({
|
|
96
201
|
field: "created_date",
|
|
97
202
|
allowNull: true,
|
|
98
203
|
type: import_sequelize_typescript.DataType.DATE
|
|
99
204
|
})
|
|
100
|
-
],
|
|
205
|
+
], mdTranslate.prototype, "createdDate", 2);
|
|
101
206
|
__decorateClass([
|
|
102
207
|
(0, import_sequelize_typescript.Column)({
|
|
103
208
|
field: "updated_by",
|
|
104
209
|
allowNull: true,
|
|
105
210
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
106
211
|
})
|
|
107
|
-
],
|
|
212
|
+
], mdTranslate.prototype, "updatedBy", 2);
|
|
108
213
|
__decorateClass([
|
|
109
214
|
(0, import_sequelize_typescript.Column)({
|
|
110
215
|
field: "updated_date",
|
|
111
216
|
allowNull: true,
|
|
112
217
|
type: import_sequelize_typescript.DataType.DATE
|
|
113
218
|
})
|
|
219
|
+
], mdTranslate.prototype, "updatedDate", 2);
|
|
220
|
+
__decorateClass([
|
|
221
|
+
(0, import_sequelize_typescript.BelongsTo)(() => mdTranslateGroup)
|
|
222
|
+
], mdTranslate.prototype, "mdTranslateGroup", 2);
|
|
223
|
+
mdTranslate = __decorateClass([
|
|
224
|
+
(0, import_sequelize_typescript.Table)({
|
|
225
|
+
tableName: "md_translate",
|
|
226
|
+
timestamps: false
|
|
227
|
+
})
|
|
228
|
+
], mdTranslate);
|
|
229
|
+
|
|
230
|
+
// src/databases/tables/mdTranslateGroup.ts
|
|
231
|
+
var mdTranslateGroup = class extends import_sequelize_typescript2.Model {
|
|
232
|
+
};
|
|
233
|
+
__decorateClass([
|
|
234
|
+
(0, import_sequelize_typescript2.Column)({
|
|
235
|
+
primaryKey: true,
|
|
236
|
+
autoIncrement: true,
|
|
237
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
238
|
+
})
|
|
239
|
+
], mdTranslateGroup.prototype, "id", 2);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
(0, import_sequelize_typescript2.Column)({
|
|
242
|
+
allowNull: true,
|
|
243
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
244
|
+
})
|
|
245
|
+
], mdTranslateGroup.prototype, "uuid", 2);
|
|
246
|
+
__decorateClass([
|
|
247
|
+
(0, import_sequelize_typescript2.Column)({
|
|
248
|
+
field: "key_name",
|
|
249
|
+
allowNull: true,
|
|
250
|
+
type: import_sequelize_typescript2.DataType.STRING(100)
|
|
251
|
+
})
|
|
252
|
+
], mdTranslateGroup.prototype, "keyName", 2);
|
|
253
|
+
__decorateClass([
|
|
254
|
+
(0, import_sequelize_typescript2.Column)({
|
|
255
|
+
field: "user_id",
|
|
256
|
+
allowNull: true,
|
|
257
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
258
|
+
})
|
|
259
|
+
], mdTranslateGroup.prototype, "userId", 2);
|
|
260
|
+
__decorateClass([
|
|
261
|
+
(0, import_sequelize_typescript2.Column)({
|
|
262
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
263
|
+
})
|
|
264
|
+
], mdTranslateGroup.prototype, "name", 2);
|
|
265
|
+
__decorateClass([
|
|
266
|
+
(0, import_sequelize_typescript2.Column)({
|
|
267
|
+
allowNull: true,
|
|
268
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
269
|
+
})
|
|
270
|
+
], mdTranslateGroup.prototype, "description", 2);
|
|
271
|
+
__decorateClass([
|
|
272
|
+
(0, import_sequelize_typescript2.Column)({
|
|
273
|
+
allowNull: true,
|
|
274
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
275
|
+
})
|
|
276
|
+
], mdTranslateGroup.prototype, "sort", 2);
|
|
277
|
+
__decorateClass([
|
|
278
|
+
(0, import_sequelize_typescript2.Column)({
|
|
279
|
+
allowNull: true,
|
|
280
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
281
|
+
})
|
|
282
|
+
], mdTranslateGroup.prototype, "status", 2);
|
|
283
|
+
__decorateClass([
|
|
284
|
+
(0, import_sequelize_typescript2.Column)({
|
|
285
|
+
field: "created_by",
|
|
286
|
+
allowNull: true,
|
|
287
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
288
|
+
})
|
|
289
|
+
], mdTranslateGroup.prototype, "createdBy", 2);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
(0, import_sequelize_typescript2.Column)({
|
|
292
|
+
field: "created_date",
|
|
293
|
+
allowNull: true,
|
|
294
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
295
|
+
})
|
|
296
|
+
], mdTranslateGroup.prototype, "createdDate", 2);
|
|
297
|
+
__decorateClass([
|
|
298
|
+
(0, import_sequelize_typescript2.Column)({
|
|
299
|
+
field: "updated_by",
|
|
300
|
+
allowNull: true,
|
|
301
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
302
|
+
})
|
|
303
|
+
], mdTranslateGroup.prototype, "updatedBy", 2);
|
|
304
|
+
__decorateClass([
|
|
305
|
+
(0, import_sequelize_typescript2.Column)({
|
|
306
|
+
field: "updated_date",
|
|
307
|
+
allowNull: true,
|
|
308
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
309
|
+
})
|
|
114
310
|
], mdTranslateGroup.prototype, "updatedDate", 2);
|
|
311
|
+
__decorateClass([
|
|
312
|
+
(0, import_sequelize_typescript2.HasMany)(() => mdTranslate, {
|
|
313
|
+
sourceKey: "id"
|
|
314
|
+
})
|
|
315
|
+
], mdTranslateGroup.prototype, "mdTranslates", 2);
|
|
115
316
|
mdTranslateGroup = __decorateClass([
|
|
116
|
-
(0,
|
|
317
|
+
(0, import_sequelize_typescript2.Table)({
|
|
117
318
|
tableName: "md_translate_group",
|
|
118
319
|
timestamps: false
|
|
119
320
|
})
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface mdTranslateGroupAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
userId?: number;
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
sort?: number;
|
|
11
|
+
status?: number;
|
|
12
|
+
createdBy?: string;
|
|
13
|
+
createdDate?: Date;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
updatedDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class mdTranslateGroup extends Model<mdTranslateGroupAttributes, mdTranslateGroupAttributes> implements mdTranslateGroupAttributes {
|
|
18
|
+
id?: number;
|
|
19
|
+
uuid?: string;
|
|
20
|
+
keyName?: string;
|
|
21
|
+
userId?: number;
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
sort?: number;
|
|
25
|
+
status?: number;
|
|
26
|
+
createdBy?: string;
|
|
27
|
+
createdDate?: Date;
|
|
28
|
+
updatedBy?: string;
|
|
29
|
+
updatedDate?: Date;
|
|
30
|
+
mdTranslates?: mdTranslate[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface mdTranslateAttributes {
|
|
34
|
+
id?: number;
|
|
35
|
+
uuid?: string;
|
|
36
|
+
keyName?: string;
|
|
37
|
+
groupId?: number;
|
|
38
|
+
userId: number;
|
|
39
|
+
title?: string;
|
|
40
|
+
description?: string;
|
|
41
|
+
detail?: string;
|
|
42
|
+
metaTitle?: string;
|
|
43
|
+
metaKeyword?: string;
|
|
44
|
+
metaDescription?: string;
|
|
45
|
+
translateBy?: string;
|
|
46
|
+
referenceNo?: string;
|
|
47
|
+
referenceDate?: Date;
|
|
48
|
+
imageCover?: string;
|
|
49
|
+
attachments?: object;
|
|
50
|
+
highlight?: number;
|
|
51
|
+
sort?: number;
|
|
52
|
+
publish?: number;
|
|
53
|
+
status?: number;
|
|
54
|
+
hasExpire?: number;
|
|
55
|
+
startDate?: Date;
|
|
56
|
+
expireDate?: Date;
|
|
57
|
+
createdBy?: string;
|
|
58
|
+
createdDate?: Date;
|
|
59
|
+
updatedBy?: string;
|
|
60
|
+
updatedDate?: Date;
|
|
61
|
+
}
|
|
62
|
+
declare class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttributes> implements mdTranslateAttributes {
|
|
63
|
+
id?: number;
|
|
64
|
+
uuid?: string;
|
|
65
|
+
keyName?: string;
|
|
66
|
+
groupId?: number;
|
|
67
|
+
userId: number;
|
|
68
|
+
title?: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
detail?: string;
|
|
71
|
+
metaTitle?: string;
|
|
72
|
+
metaKeyword?: string;
|
|
73
|
+
metaDescription?: string;
|
|
74
|
+
translateBy?: string;
|
|
75
|
+
referenceNo?: string;
|
|
76
|
+
referenceDate?: Date;
|
|
77
|
+
imageCover?: string;
|
|
78
|
+
attachments?: object;
|
|
79
|
+
highlight?: number;
|
|
80
|
+
sort?: number;
|
|
81
|
+
publish?: number;
|
|
82
|
+
status?: number;
|
|
83
|
+
hasExpire?: number;
|
|
84
|
+
startDate?: Date;
|
|
85
|
+
expireDate?: Date;
|
|
86
|
+
createdBy?: string;
|
|
87
|
+
createdDate?: Date;
|
|
88
|
+
updatedBy?: string;
|
|
89
|
+
updatedDate?: Date;
|
|
90
|
+
mdTranslateGroup?: mdTranslateGroup;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { mdTranslate as a, type mdTranslateGroupAttributes as b, mdTranslateGroup as c, type mdTranslateAttributes as m };
|