@admc-go-th/admc-library 1.0.43 → 1.0.44
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 +1 -0
- package/databases/schema/mdPopup.ts +141 -0
- package/databases/tables/index.d.ts +1 -0
- package/databases/tables/index.js +233 -110
- package/databases/tables/mdPopup.d.ts +42 -0
- package/databases/tables/mdPopup.js +156 -0
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface mdPopupAttributes {
|
|
6
|
+
id?: number;
|
|
7
|
+
uuid: string;
|
|
8
|
+
keyName?: string;
|
|
9
|
+
userId: number;
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
detail?: string;
|
|
13
|
+
imageCover?: string;
|
|
14
|
+
sort?: number;
|
|
15
|
+
status?: number;
|
|
16
|
+
hasExpire: number;
|
|
17
|
+
startDate?: Date;
|
|
18
|
+
expireDate?: Date;
|
|
19
|
+
createdBy?: string;
|
|
20
|
+
createdDate?: Date;
|
|
21
|
+
updatedBy: string;
|
|
22
|
+
updatedDate?: Date;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@Table({
|
|
26
|
+
tableName: "md_popup",
|
|
27
|
+
timestamps: false
|
|
28
|
+
})
|
|
29
|
+
export class mdPopup extends Model<mdPopupAttributes, mdPopupAttributes> implements mdPopupAttributes {
|
|
30
|
+
|
|
31
|
+
@Column({
|
|
32
|
+
primaryKey: true,
|
|
33
|
+
autoIncrement: true,
|
|
34
|
+
type: DataType.INTEGER
|
|
35
|
+
})
|
|
36
|
+
declare id?: number;
|
|
37
|
+
|
|
38
|
+
@Column({
|
|
39
|
+
type: DataType.STRING(60)
|
|
40
|
+
})
|
|
41
|
+
declare uuid: string;
|
|
42
|
+
|
|
43
|
+
@Column({
|
|
44
|
+
field: "key_name",
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: DataType.STRING(100)
|
|
47
|
+
})
|
|
48
|
+
declare keyName?: string;
|
|
49
|
+
|
|
50
|
+
@Column({
|
|
51
|
+
field: "user_id",
|
|
52
|
+
type: DataType.INTEGER
|
|
53
|
+
})
|
|
54
|
+
declare userId: number;
|
|
55
|
+
|
|
56
|
+
@Column({
|
|
57
|
+
allowNull: true,
|
|
58
|
+
type: DataType.STRING(255)
|
|
59
|
+
})
|
|
60
|
+
declare title?: string;
|
|
61
|
+
|
|
62
|
+
@Column({
|
|
63
|
+
allowNull: true,
|
|
64
|
+
type: DataType.STRING
|
|
65
|
+
})
|
|
66
|
+
declare description?: string;
|
|
67
|
+
|
|
68
|
+
@Column({
|
|
69
|
+
allowNull: true,
|
|
70
|
+
type: DataType.STRING
|
|
71
|
+
})
|
|
72
|
+
declare detail?: string;
|
|
73
|
+
|
|
74
|
+
@Column({
|
|
75
|
+
field: "image_cover",
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: DataType.STRING(60)
|
|
78
|
+
})
|
|
79
|
+
declare imageCover?: string;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
allowNull: true,
|
|
83
|
+
type: DataType.INTEGER
|
|
84
|
+
})
|
|
85
|
+
declare sort?: number;
|
|
86
|
+
|
|
87
|
+
@Column({
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: DataType.INTEGER
|
|
90
|
+
})
|
|
91
|
+
declare status?: number;
|
|
92
|
+
|
|
93
|
+
@Column({
|
|
94
|
+
field: "has_expire",
|
|
95
|
+
type: DataType.INTEGER
|
|
96
|
+
})
|
|
97
|
+
declare hasExpire: number;
|
|
98
|
+
|
|
99
|
+
@Column({
|
|
100
|
+
field: "start_date",
|
|
101
|
+
allowNull: true,
|
|
102
|
+
type: DataType.DATE
|
|
103
|
+
})
|
|
104
|
+
declare startDate?: Date;
|
|
105
|
+
|
|
106
|
+
@Column({
|
|
107
|
+
field: "expire_date",
|
|
108
|
+
allowNull: true,
|
|
109
|
+
type: DataType.DATE
|
|
110
|
+
})
|
|
111
|
+
declare expireDate?: Date;
|
|
112
|
+
|
|
113
|
+
@Column({
|
|
114
|
+
field: "created_by",
|
|
115
|
+
allowNull: true,
|
|
116
|
+
type: DataType.STRING(60)
|
|
117
|
+
})
|
|
118
|
+
declare createdBy?: string;
|
|
119
|
+
|
|
120
|
+
@Column({
|
|
121
|
+
field: "created_date",
|
|
122
|
+
allowNull: true,
|
|
123
|
+
type: DataType.DATE
|
|
124
|
+
})
|
|
125
|
+
declare createdDate?: Date;
|
|
126
|
+
|
|
127
|
+
@Column({
|
|
128
|
+
field: "updated_by",
|
|
129
|
+
primaryKey: true,
|
|
130
|
+
type: DataType.STRING(60)
|
|
131
|
+
})
|
|
132
|
+
declare updatedBy: string;
|
|
133
|
+
|
|
134
|
+
@Column({
|
|
135
|
+
field: "updated_date",
|
|
136
|
+
allowNull: true,
|
|
137
|
+
type: DataType.DATE
|
|
138
|
+
})
|
|
139
|
+
declare updatedDate?: Date;
|
|
140
|
+
|
|
141
|
+
}
|
|
@@ -8,6 +8,7 @@ export { a as mdEbook, m as mdEbookAttributes, c as mdEbookGroup, b as mdEbookGr
|
|
|
8
8
|
export { a as mdFaq, m as mdFaqAttributes, c as mdFaqGroup, b as mdFaqGroupAttributes } from '../../mdFaq-1c4X_DI2.js';
|
|
9
9
|
export { mdLink, mdLinkAttributes } from './mdLink.js';
|
|
10
10
|
export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-CYzk8W_D.js';
|
|
11
|
+
export { mdPopup, mdPopupAttributes } from './mdPopup.js';
|
|
11
12
|
export { mdSetting, mdSettingAttributes } from './mdSetting.js';
|
|
12
13
|
export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
|
|
13
14
|
export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshToken.js';
|
|
@@ -47,6 +47,7 @@ __export(tables_exports, {
|
|
|
47
47
|
mdLink: () => mdLink,
|
|
48
48
|
mdNews: () => mdNews,
|
|
49
49
|
mdNewsGroup: () => mdNewsGroup,
|
|
50
|
+
mdPopup: () => mdPopup,
|
|
50
51
|
mdQuestionnaire: () => mdQuestionnaire,
|
|
51
52
|
mdSetting: () => mdSetting,
|
|
52
53
|
menu: () => menu,
|
|
@@ -2666,9 +2667,9 @@ mdNews = __decorateClass([
|
|
|
2666
2667
|
})
|
|
2667
2668
|
], mdNews);
|
|
2668
2669
|
|
|
2669
|
-
// src/databases/tables/
|
|
2670
|
+
// src/databases/tables/mdPopup.ts
|
|
2670
2671
|
var import_sequelize_typescript25 = require("sequelize-typescript");
|
|
2671
|
-
var
|
|
2672
|
+
var mdPopup = class extends import_sequelize_typescript25.Model {
|
|
2672
2673
|
};
|
|
2673
2674
|
__decorateClass([
|
|
2674
2675
|
(0, import_sequelize_typescript25.Column)({
|
|
@@ -2676,82 +2677,120 @@ __decorateClass([
|
|
|
2676
2677
|
autoIncrement: true,
|
|
2677
2678
|
type: import_sequelize_typescript25.DataType.INTEGER
|
|
2678
2679
|
})
|
|
2679
|
-
],
|
|
2680
|
+
], mdPopup.prototype, "id", 2);
|
|
2680
2681
|
__decorateClass([
|
|
2681
2682
|
(0, import_sequelize_typescript25.Column)({
|
|
2682
|
-
allowNull: true,
|
|
2683
2683
|
type: import_sequelize_typescript25.DataType.STRING(60)
|
|
2684
2684
|
})
|
|
2685
|
-
],
|
|
2685
|
+
], mdPopup.prototype, "uuid", 2);
|
|
2686
2686
|
__decorateClass([
|
|
2687
2687
|
(0, import_sequelize_typescript25.Column)({
|
|
2688
2688
|
field: "key_name",
|
|
2689
2689
|
allowNull: true,
|
|
2690
2690
|
type: import_sequelize_typescript25.DataType.STRING(100)
|
|
2691
2691
|
})
|
|
2692
|
-
],
|
|
2692
|
+
], mdPopup.prototype, "keyName", 2);
|
|
2693
|
+
__decorateClass([
|
|
2694
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2695
|
+
field: "user_id",
|
|
2696
|
+
type: import_sequelize_typescript25.DataType.INTEGER
|
|
2697
|
+
})
|
|
2698
|
+
], mdPopup.prototype, "userId", 2);
|
|
2693
2699
|
__decorateClass([
|
|
2694
2700
|
(0, import_sequelize_typescript25.Column)({
|
|
2695
2701
|
allowNull: true,
|
|
2696
2702
|
type: import_sequelize_typescript25.DataType.STRING(255)
|
|
2697
2703
|
})
|
|
2698
|
-
],
|
|
2704
|
+
], mdPopup.prototype, "title", 2);
|
|
2699
2705
|
__decorateClass([
|
|
2700
2706
|
(0, import_sequelize_typescript25.Column)({
|
|
2701
2707
|
allowNull: true,
|
|
2702
|
-
type: import_sequelize_typescript25.DataType.STRING
|
|
2708
|
+
type: import_sequelize_typescript25.DataType.STRING
|
|
2703
2709
|
})
|
|
2704
|
-
],
|
|
2710
|
+
], mdPopup.prototype, "description", 2);
|
|
2705
2711
|
__decorateClass([
|
|
2706
2712
|
(0, import_sequelize_typescript25.Column)({
|
|
2707
2713
|
allowNull: true,
|
|
2708
2714
|
type: import_sequelize_typescript25.DataType.STRING
|
|
2709
2715
|
})
|
|
2710
|
-
],
|
|
2716
|
+
], mdPopup.prototype, "detail", 2);
|
|
2717
|
+
__decorateClass([
|
|
2718
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2719
|
+
field: "image_cover",
|
|
2720
|
+
allowNull: true,
|
|
2721
|
+
type: import_sequelize_typescript25.DataType.STRING(60)
|
|
2722
|
+
})
|
|
2723
|
+
], mdPopup.prototype, "imageCover", 2);
|
|
2711
2724
|
__decorateClass([
|
|
2712
2725
|
(0, import_sequelize_typescript25.Column)({
|
|
2713
2726
|
allowNull: true,
|
|
2714
2727
|
type: import_sequelize_typescript25.DataType.INTEGER
|
|
2715
2728
|
})
|
|
2716
|
-
],
|
|
2729
|
+
], mdPopup.prototype, "sort", 2);
|
|
2730
|
+
__decorateClass([
|
|
2731
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2732
|
+
allowNull: true,
|
|
2733
|
+
type: import_sequelize_typescript25.DataType.INTEGER
|
|
2734
|
+
})
|
|
2735
|
+
], mdPopup.prototype, "status", 2);
|
|
2736
|
+
__decorateClass([
|
|
2737
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2738
|
+
field: "has_expire",
|
|
2739
|
+
type: import_sequelize_typescript25.DataType.INTEGER
|
|
2740
|
+
})
|
|
2741
|
+
], mdPopup.prototype, "hasExpire", 2);
|
|
2742
|
+
__decorateClass([
|
|
2743
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2744
|
+
field: "start_date",
|
|
2745
|
+
allowNull: true,
|
|
2746
|
+
type: import_sequelize_typescript25.DataType.DATE
|
|
2747
|
+
})
|
|
2748
|
+
], mdPopup.prototype, "startDate", 2);
|
|
2749
|
+
__decorateClass([
|
|
2750
|
+
(0, import_sequelize_typescript25.Column)({
|
|
2751
|
+
field: "expire_date",
|
|
2752
|
+
allowNull: true,
|
|
2753
|
+
type: import_sequelize_typescript25.DataType.DATE
|
|
2754
|
+
})
|
|
2755
|
+
], mdPopup.prototype, "expireDate", 2);
|
|
2717
2756
|
__decorateClass([
|
|
2718
2757
|
(0, import_sequelize_typescript25.Column)({
|
|
2719
2758
|
field: "created_by",
|
|
2720
2759
|
allowNull: true,
|
|
2721
2760
|
type: import_sequelize_typescript25.DataType.STRING(60)
|
|
2722
2761
|
})
|
|
2723
|
-
],
|
|
2762
|
+
], mdPopup.prototype, "createdBy", 2);
|
|
2724
2763
|
__decorateClass([
|
|
2725
2764
|
(0, import_sequelize_typescript25.Column)({
|
|
2726
2765
|
field: "created_date",
|
|
2727
2766
|
allowNull: true,
|
|
2728
2767
|
type: import_sequelize_typescript25.DataType.DATE
|
|
2729
2768
|
})
|
|
2730
|
-
],
|
|
2769
|
+
], mdPopup.prototype, "createdDate", 2);
|
|
2731
2770
|
__decorateClass([
|
|
2732
2771
|
(0, import_sequelize_typescript25.Column)({
|
|
2733
2772
|
field: "updated_by",
|
|
2734
|
-
|
|
2773
|
+
primaryKey: true,
|
|
2735
2774
|
type: import_sequelize_typescript25.DataType.STRING(60)
|
|
2736
2775
|
})
|
|
2737
|
-
],
|
|
2776
|
+
], mdPopup.prototype, "updatedBy", 2);
|
|
2738
2777
|
__decorateClass([
|
|
2739
2778
|
(0, import_sequelize_typescript25.Column)({
|
|
2740
2779
|
field: "updated_date",
|
|
2741
2780
|
allowNull: true,
|
|
2742
2781
|
type: import_sequelize_typescript25.DataType.DATE
|
|
2743
2782
|
})
|
|
2744
|
-
],
|
|
2745
|
-
|
|
2783
|
+
], mdPopup.prototype, "updatedDate", 2);
|
|
2784
|
+
mdPopup = __decorateClass([
|
|
2746
2785
|
(0, import_sequelize_typescript25.Table)({
|
|
2747
|
-
tableName: "
|
|
2786
|
+
tableName: "md_popup",
|
|
2748
2787
|
timestamps: false
|
|
2749
2788
|
})
|
|
2750
|
-
],
|
|
2789
|
+
], mdPopup);
|
|
2751
2790
|
|
|
2752
|
-
// src/databases/tables/
|
|
2791
|
+
// src/databases/tables/mdSetting.ts
|
|
2753
2792
|
var import_sequelize_typescript26 = require("sequelize-typescript");
|
|
2754
|
-
var
|
|
2793
|
+
var mdSetting = class extends import_sequelize_typescript26.Model {
|
|
2755
2794
|
};
|
|
2756
2795
|
__decorateClass([
|
|
2757
2796
|
(0, import_sequelize_typescript26.Column)({
|
|
@@ -2759,55 +2798,82 @@ __decorateClass([
|
|
|
2759
2798
|
autoIncrement: true,
|
|
2760
2799
|
type: import_sequelize_typescript26.DataType.INTEGER
|
|
2761
2800
|
})
|
|
2762
|
-
],
|
|
2801
|
+
], mdSetting.prototype, "id", 2);
|
|
2763
2802
|
__decorateClass([
|
|
2764
2803
|
(0, import_sequelize_typescript26.Column)({
|
|
2765
|
-
|
|
2766
|
-
type: import_sequelize_typescript26.DataType.STRING
|
|
2804
|
+
allowNull: true,
|
|
2805
|
+
type: import_sequelize_typescript26.DataType.STRING(60)
|
|
2767
2806
|
})
|
|
2768
|
-
],
|
|
2807
|
+
], mdSetting.prototype, "uuid", 2);
|
|
2769
2808
|
__decorateClass([
|
|
2770
2809
|
(0, import_sequelize_typescript26.Column)({
|
|
2771
|
-
field: "
|
|
2772
|
-
|
|
2810
|
+
field: "key_name",
|
|
2811
|
+
allowNull: true,
|
|
2812
|
+
type: import_sequelize_typescript26.DataType.STRING(100)
|
|
2773
2813
|
})
|
|
2774
|
-
],
|
|
2814
|
+
], mdSetting.prototype, "keyName", 2);
|
|
2775
2815
|
__decorateClass([
|
|
2776
2816
|
(0, import_sequelize_typescript26.Column)({
|
|
2777
|
-
field: "user_id",
|
|
2778
2817
|
allowNull: true,
|
|
2779
|
-
type: import_sequelize_typescript26.DataType.
|
|
2818
|
+
type: import_sequelize_typescript26.DataType.STRING(255)
|
|
2780
2819
|
})
|
|
2781
|
-
],
|
|
2820
|
+
], mdSetting.prototype, "name", 2);
|
|
2782
2821
|
__decorateClass([
|
|
2783
2822
|
(0, import_sequelize_typescript26.Column)({
|
|
2784
|
-
|
|
2785
|
-
|
|
2823
|
+
allowNull: true,
|
|
2824
|
+
type: import_sequelize_typescript26.DataType.STRING(255)
|
|
2786
2825
|
})
|
|
2787
|
-
],
|
|
2826
|
+
], mdSetting.prototype, "description", 2);
|
|
2827
|
+
__decorateClass([
|
|
2828
|
+
(0, import_sequelize_typescript26.Column)({
|
|
2829
|
+
allowNull: true,
|
|
2830
|
+
type: import_sequelize_typescript26.DataType.STRING
|
|
2831
|
+
})
|
|
2832
|
+
], mdSetting.prototype, "value", 2);
|
|
2788
2833
|
__decorateClass([
|
|
2789
2834
|
(0, import_sequelize_typescript26.Column)({
|
|
2790
2835
|
allowNull: true,
|
|
2791
|
-
type: import_sequelize_typescript26.DataType.
|
|
2836
|
+
type: import_sequelize_typescript26.DataType.INTEGER
|
|
2792
2837
|
})
|
|
2793
|
-
],
|
|
2838
|
+
], mdSetting.prototype, "status", 2);
|
|
2839
|
+
__decorateClass([
|
|
2840
|
+
(0, import_sequelize_typescript26.Column)({
|
|
2841
|
+
field: "created_by",
|
|
2842
|
+
allowNull: true,
|
|
2843
|
+
type: import_sequelize_typescript26.DataType.STRING(60)
|
|
2844
|
+
})
|
|
2845
|
+
], mdSetting.prototype, "createdBy", 2);
|
|
2794
2846
|
__decorateClass([
|
|
2795
2847
|
(0, import_sequelize_typescript26.Column)({
|
|
2796
2848
|
field: "created_date",
|
|
2797
|
-
|
|
2798
|
-
|
|
2849
|
+
allowNull: true,
|
|
2850
|
+
type: import_sequelize_typescript26.DataType.DATE
|
|
2799
2851
|
})
|
|
2800
|
-
],
|
|
2801
|
-
|
|
2852
|
+
], mdSetting.prototype, "createdDate", 2);
|
|
2853
|
+
__decorateClass([
|
|
2854
|
+
(0, import_sequelize_typescript26.Column)({
|
|
2855
|
+
field: "updated_by",
|
|
2856
|
+
allowNull: true,
|
|
2857
|
+
type: import_sequelize_typescript26.DataType.STRING(60)
|
|
2858
|
+
})
|
|
2859
|
+
], mdSetting.prototype, "updatedBy", 2);
|
|
2860
|
+
__decorateClass([
|
|
2861
|
+
(0, import_sequelize_typescript26.Column)({
|
|
2862
|
+
field: "updated_date",
|
|
2863
|
+
allowNull: true,
|
|
2864
|
+
type: import_sequelize_typescript26.DataType.DATE
|
|
2865
|
+
})
|
|
2866
|
+
], mdSetting.prototype, "updatedDate", 2);
|
|
2867
|
+
mdSetting = __decorateClass([
|
|
2802
2868
|
(0, import_sequelize_typescript26.Table)({
|
|
2803
|
-
tableName: "
|
|
2869
|
+
tableName: "md_setting",
|
|
2804
2870
|
timestamps: false
|
|
2805
2871
|
})
|
|
2806
|
-
],
|
|
2872
|
+
], mdSetting);
|
|
2807
2873
|
|
|
2808
|
-
// src/databases/tables/
|
|
2874
|
+
// src/databases/tables/oauthAccessToken.ts
|
|
2809
2875
|
var import_sequelize_typescript27 = require("sequelize-typescript");
|
|
2810
|
-
var
|
|
2876
|
+
var oauthAccessToken = class extends import_sequelize_typescript27.Model {
|
|
2811
2877
|
};
|
|
2812
2878
|
__decorateClass([
|
|
2813
2879
|
(0, import_sequelize_typescript27.Column)({
|
|
@@ -2815,196 +2881,252 @@ __decorateClass([
|
|
|
2815
2881
|
autoIncrement: true,
|
|
2816
2882
|
type: import_sequelize_typescript27.DataType.INTEGER
|
|
2817
2883
|
})
|
|
2818
|
-
],
|
|
2884
|
+
], oauthAccessToken.prototype, "id", 2);
|
|
2819
2885
|
__decorateClass([
|
|
2820
2886
|
(0, import_sequelize_typescript27.Column)({
|
|
2821
|
-
field: "
|
|
2822
|
-
type: import_sequelize_typescript27.DataType.STRING
|
|
2887
|
+
field: "access_token",
|
|
2888
|
+
type: import_sequelize_typescript27.DataType.STRING
|
|
2823
2889
|
})
|
|
2824
|
-
],
|
|
2890
|
+
], oauthAccessToken.prototype, "accessToken", 2);
|
|
2825
2891
|
__decorateClass([
|
|
2826
2892
|
(0, import_sequelize_typescript27.Column)({
|
|
2827
2893
|
field: "client_id",
|
|
2828
2894
|
type: import_sequelize_typescript27.DataType.STRING(32)
|
|
2829
2895
|
})
|
|
2830
|
-
],
|
|
2896
|
+
], oauthAccessToken.prototype, "clientId", 2);
|
|
2831
2897
|
__decorateClass([
|
|
2832
2898
|
(0, import_sequelize_typescript27.Column)({
|
|
2833
2899
|
field: "user_id",
|
|
2834
2900
|
allowNull: true,
|
|
2835
2901
|
type: import_sequelize_typescript27.DataType.INTEGER
|
|
2836
2902
|
})
|
|
2837
|
-
],
|
|
2903
|
+
], oauthAccessToken.prototype, "userId", 2);
|
|
2838
2904
|
__decorateClass([
|
|
2839
2905
|
(0, import_sequelize_typescript27.Column)({
|
|
2840
2906
|
type: import_sequelize_typescript27.DataType.DATE,
|
|
2841
2907
|
defaultValue: import_sequelize_typescript27.DataType.NOW
|
|
2842
2908
|
})
|
|
2843
|
-
],
|
|
2909
|
+
], oauthAccessToken.prototype, "expires", 2);
|
|
2844
2910
|
__decorateClass([
|
|
2845
2911
|
(0, import_sequelize_typescript27.Column)({
|
|
2846
2912
|
allowNull: true,
|
|
2847
|
-
type: import_sequelize_typescript27.DataType.STRING(
|
|
2913
|
+
type: import_sequelize_typescript27.DataType.STRING(2e3)
|
|
2848
2914
|
})
|
|
2849
|
-
],
|
|
2915
|
+
], oauthAccessToken.prototype, "scope", 2);
|
|
2850
2916
|
__decorateClass([
|
|
2851
2917
|
(0, import_sequelize_typescript27.Column)({
|
|
2852
2918
|
field: "created_date",
|
|
2853
2919
|
type: import_sequelize_typescript27.DataType.DATE,
|
|
2854
2920
|
defaultValue: import_sequelize_typescript27.DataType.NOW
|
|
2855
2921
|
})
|
|
2922
|
+
], oauthAccessToken.prototype, "createdDate", 2);
|
|
2923
|
+
oauthAccessToken = __decorateClass([
|
|
2924
|
+
(0, import_sequelize_typescript27.Table)({
|
|
2925
|
+
tableName: "oauth_access_token",
|
|
2926
|
+
timestamps: false
|
|
2927
|
+
})
|
|
2928
|
+
], oauthAccessToken);
|
|
2929
|
+
|
|
2930
|
+
// src/databases/tables/oauthRefreshToken.ts
|
|
2931
|
+
var import_sequelize_typescript28 = require("sequelize-typescript");
|
|
2932
|
+
var oauthRefreshToken = class extends import_sequelize_typescript28.Model {
|
|
2933
|
+
};
|
|
2934
|
+
__decorateClass([
|
|
2935
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2936
|
+
primaryKey: true,
|
|
2937
|
+
autoIncrement: true,
|
|
2938
|
+
type: import_sequelize_typescript28.DataType.INTEGER
|
|
2939
|
+
})
|
|
2940
|
+
], oauthRefreshToken.prototype, "id", 2);
|
|
2941
|
+
__decorateClass([
|
|
2942
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2943
|
+
field: "refresh_token",
|
|
2944
|
+
type: import_sequelize_typescript28.DataType.STRING(1e3)
|
|
2945
|
+
})
|
|
2946
|
+
], oauthRefreshToken.prototype, "refreshToken", 2);
|
|
2947
|
+
__decorateClass([
|
|
2948
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2949
|
+
field: "client_id",
|
|
2950
|
+
type: import_sequelize_typescript28.DataType.STRING(32)
|
|
2951
|
+
})
|
|
2952
|
+
], oauthRefreshToken.prototype, "clientId", 2);
|
|
2953
|
+
__decorateClass([
|
|
2954
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2955
|
+
field: "user_id",
|
|
2956
|
+
allowNull: true,
|
|
2957
|
+
type: import_sequelize_typescript28.DataType.INTEGER
|
|
2958
|
+
})
|
|
2959
|
+
], oauthRefreshToken.prototype, "userId", 2);
|
|
2960
|
+
__decorateClass([
|
|
2961
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2962
|
+
type: import_sequelize_typescript28.DataType.DATE,
|
|
2963
|
+
defaultValue: import_sequelize_typescript28.DataType.NOW
|
|
2964
|
+
})
|
|
2965
|
+
], oauthRefreshToken.prototype, "expires", 2);
|
|
2966
|
+
__decorateClass([
|
|
2967
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2968
|
+
allowNull: true,
|
|
2969
|
+
type: import_sequelize_typescript28.DataType.STRING(1e3)
|
|
2970
|
+
})
|
|
2971
|
+
], oauthRefreshToken.prototype, "scope", 2);
|
|
2972
|
+
__decorateClass([
|
|
2973
|
+
(0, import_sequelize_typescript28.Column)({
|
|
2974
|
+
field: "created_date",
|
|
2975
|
+
type: import_sequelize_typescript28.DataType.DATE,
|
|
2976
|
+
defaultValue: import_sequelize_typescript28.DataType.NOW
|
|
2977
|
+
})
|
|
2856
2978
|
], oauthRefreshToken.prototype, "createdDate", 2);
|
|
2857
2979
|
oauthRefreshToken = __decorateClass([
|
|
2858
|
-
(0,
|
|
2980
|
+
(0, import_sequelize_typescript28.Table)({
|
|
2859
2981
|
tableName: "oauth_refresh_token",
|
|
2860
2982
|
timestamps: false
|
|
2861
2983
|
})
|
|
2862
2984
|
], oauthRefreshToken);
|
|
2863
2985
|
|
|
2864
2986
|
// src/databases/tables/userCenterV.ts
|
|
2865
|
-
var
|
|
2866
|
-
var userCenterV = class extends
|
|
2987
|
+
var import_sequelize_typescript29 = require("sequelize-typescript");
|
|
2988
|
+
var userCenterV = class extends import_sequelize_typescript29.Model {
|
|
2867
2989
|
};
|
|
2868
2990
|
__decorateClass([
|
|
2869
|
-
(0,
|
|
2870
|
-
type:
|
|
2991
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2992
|
+
type: import_sequelize_typescript29.DataType.INTEGER,
|
|
2871
2993
|
defaultValue: "0"
|
|
2872
2994
|
})
|
|
2873
2995
|
], userCenterV.prototype, "id", 2);
|
|
2874
2996
|
__decorateClass([
|
|
2875
|
-
(0,
|
|
2876
|
-
type:
|
|
2997
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2998
|
+
type: import_sequelize_typescript29.DataType.STRING(60)
|
|
2877
2999
|
})
|
|
2878
3000
|
], userCenterV.prototype, "uuid", 2);
|
|
2879
3001
|
__decorateClass([
|
|
2880
|
-
(0,
|
|
2881
|
-
type:
|
|
3002
|
+
(0, import_sequelize_typescript29.Column)({
|
|
3003
|
+
type: import_sequelize_typescript29.DataType.STRING(100)
|
|
2882
3004
|
})
|
|
2883
3005
|
], userCenterV.prototype, "username", 2);
|
|
2884
3006
|
__decorateClass([
|
|
2885
|
-
(0,
|
|
3007
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2886
3008
|
field: "password_hash",
|
|
2887
3009
|
allowNull: true,
|
|
2888
|
-
type:
|
|
3010
|
+
type: import_sequelize_typescript29.DataType.STRING(255)
|
|
2889
3011
|
})
|
|
2890
3012
|
], userCenterV.prototype, "passwordHash", 2);
|
|
2891
3013
|
__decorateClass([
|
|
2892
|
-
(0,
|
|
3014
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2893
3015
|
field: "password_reset_token",
|
|
2894
3016
|
allowNull: true,
|
|
2895
|
-
type:
|
|
3017
|
+
type: import_sequelize_typescript29.DataType.STRING(255)
|
|
2896
3018
|
})
|
|
2897
3019
|
], userCenterV.prototype, "passwordResetToken", 2);
|
|
2898
3020
|
__decorateClass([
|
|
2899
|
-
(0,
|
|
3021
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2900
3022
|
field: "verification_token",
|
|
2901
3023
|
allowNull: true,
|
|
2902
|
-
type:
|
|
3024
|
+
type: import_sequelize_typescript29.DataType.STRING(255)
|
|
2903
3025
|
})
|
|
2904
3026
|
], userCenterV.prototype, "verificationToken", 2);
|
|
2905
3027
|
__decorateClass([
|
|
2906
|
-
(0,
|
|
3028
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2907
3029
|
allowNull: true,
|
|
2908
|
-
type:
|
|
3030
|
+
type: import_sequelize_typescript29.DataType.STRING(255)
|
|
2909
3031
|
})
|
|
2910
3032
|
], userCenterV.prototype, "email", 2);
|
|
2911
3033
|
__decorateClass([
|
|
2912
|
-
(0,
|
|
3034
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2913
3035
|
field: "auth_key",
|
|
2914
3036
|
allowNull: true,
|
|
2915
|
-
type:
|
|
3037
|
+
type: import_sequelize_typescript29.DataType.STRING(32)
|
|
2916
3038
|
})
|
|
2917
3039
|
], userCenterV.prototype, "authKey", 2);
|
|
2918
3040
|
__decorateClass([
|
|
2919
|
-
(0,
|
|
3041
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2920
3042
|
field: "access_token",
|
|
2921
3043
|
allowNull: true,
|
|
2922
|
-
type:
|
|
3044
|
+
type: import_sequelize_typescript29.DataType.STRING
|
|
2923
3045
|
})
|
|
2924
3046
|
], userCenterV.prototype, "accessToken", 2);
|
|
2925
3047
|
__decorateClass([
|
|
2926
|
-
(0,
|
|
3048
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2927
3049
|
field: "user_level",
|
|
2928
3050
|
allowNull: true,
|
|
2929
|
-
type:
|
|
3051
|
+
type: import_sequelize_typescript29.DataType.INTEGER
|
|
2930
3052
|
})
|
|
2931
3053
|
], userCenterV.prototype, "userLevel", 2);
|
|
2932
3054
|
__decorateClass([
|
|
2933
|
-
(0,
|
|
3055
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2934
3056
|
field: "user_authen",
|
|
2935
3057
|
allowNull: true,
|
|
2936
|
-
type:
|
|
3058
|
+
type: import_sequelize_typescript29.DataType.STRING(64)
|
|
2937
3059
|
})
|
|
2938
3060
|
], userCenterV.prototype, "userAuthen", 2);
|
|
2939
3061
|
__decorateClass([
|
|
2940
|
-
(0,
|
|
3062
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2941
3063
|
field: "user_type",
|
|
2942
3064
|
allowNull: true,
|
|
2943
|
-
type:
|
|
3065
|
+
type: import_sequelize_typescript29.DataType.INTEGER
|
|
2944
3066
|
})
|
|
2945
3067
|
], userCenterV.prototype, "userType", 2);
|
|
2946
3068
|
__decorateClass([
|
|
2947
|
-
(0,
|
|
3069
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2948
3070
|
allowNull: true,
|
|
2949
|
-
type:
|
|
3071
|
+
type: import_sequelize_typescript29.DataType.STRING(10)
|
|
2950
3072
|
})
|
|
2951
3073
|
], userCenterV.prototype, "prefix", 2);
|
|
2952
3074
|
__decorateClass([
|
|
2953
|
-
(0,
|
|
3075
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2954
3076
|
field: "first_name",
|
|
2955
3077
|
allowNull: true,
|
|
2956
|
-
type:
|
|
3078
|
+
type: import_sequelize_typescript29.DataType.STRING(100)
|
|
2957
3079
|
})
|
|
2958
3080
|
], userCenterV.prototype, "firstName", 2);
|
|
2959
3081
|
__decorateClass([
|
|
2960
|
-
(0,
|
|
3082
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2961
3083
|
field: "last_name",
|
|
2962
3084
|
allowNull: true,
|
|
2963
|
-
type:
|
|
3085
|
+
type: import_sequelize_typescript29.DataType.STRING(100)
|
|
2964
3086
|
})
|
|
2965
3087
|
], userCenterV.prototype, "lastName", 2);
|
|
2966
3088
|
__decorateClass([
|
|
2967
|
-
(0,
|
|
3089
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2968
3090
|
allowNull: true,
|
|
2969
|
-
type:
|
|
3091
|
+
type: import_sequelize_typescript29.DataType.STRING(20)
|
|
2970
3092
|
})
|
|
2971
3093
|
], userCenterV.prototype, "phone", 2);
|
|
2972
3094
|
__decorateClass([
|
|
2973
|
-
(0,
|
|
3095
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2974
3096
|
allowNull: true,
|
|
2975
|
-
type:
|
|
3097
|
+
type: import_sequelize_typescript29.DataType.SMALLINT
|
|
2976
3098
|
})
|
|
2977
3099
|
], userCenterV.prototype, "status", 2);
|
|
2978
3100
|
__decorateClass([
|
|
2979
|
-
(0,
|
|
3101
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2980
3102
|
field: "created_by",
|
|
2981
3103
|
allowNull: true,
|
|
2982
|
-
type:
|
|
3104
|
+
type: import_sequelize_typescript29.DataType.STRING(60)
|
|
2983
3105
|
})
|
|
2984
3106
|
], userCenterV.prototype, "createdBy", 2);
|
|
2985
3107
|
__decorateClass([
|
|
2986
|
-
(0,
|
|
3108
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2987
3109
|
field: "created_date",
|
|
2988
3110
|
allowNull: true,
|
|
2989
|
-
type:
|
|
3111
|
+
type: import_sequelize_typescript29.DataType.DATE
|
|
2990
3112
|
})
|
|
2991
3113
|
], userCenterV.prototype, "createdDate", 2);
|
|
2992
3114
|
__decorateClass([
|
|
2993
|
-
(0,
|
|
3115
|
+
(0, import_sequelize_typescript29.Column)({
|
|
2994
3116
|
field: "updated_by",
|
|
2995
3117
|
allowNull: true,
|
|
2996
|
-
type:
|
|
3118
|
+
type: import_sequelize_typescript29.DataType.STRING(60)
|
|
2997
3119
|
})
|
|
2998
3120
|
], userCenterV.prototype, "updatedBy", 2);
|
|
2999
3121
|
__decorateClass([
|
|
3000
|
-
(0,
|
|
3122
|
+
(0, import_sequelize_typescript29.Column)({
|
|
3001
3123
|
field: "updated_date",
|
|
3002
3124
|
allowNull: true,
|
|
3003
|
-
type:
|
|
3125
|
+
type: import_sequelize_typescript29.DataType.DATE
|
|
3004
3126
|
})
|
|
3005
3127
|
], userCenterV.prototype, "updatedDate", 2);
|
|
3006
3128
|
userCenterV = __decorateClass([
|
|
3007
|
-
(0,
|
|
3129
|
+
(0, import_sequelize_typescript29.Table)({
|
|
3008
3130
|
tableName: "user_center_v",
|
|
3009
3131
|
timestamps: false,
|
|
3010
3132
|
comment: "VIEW"
|
|
@@ -3012,38 +3134,38 @@ userCenterV = __decorateClass([
|
|
|
3012
3134
|
], userCenterV);
|
|
3013
3135
|
|
|
3014
3136
|
// src/databases/tables/userRoleV.ts
|
|
3015
|
-
var
|
|
3016
|
-
var userRoleV = class extends
|
|
3137
|
+
var import_sequelize_typescript30 = require("sequelize-typescript");
|
|
3138
|
+
var userRoleV = class extends import_sequelize_typescript30.Model {
|
|
3017
3139
|
};
|
|
3018
3140
|
__decorateClass([
|
|
3019
|
-
(0,
|
|
3020
|
-
type:
|
|
3141
|
+
(0, import_sequelize_typescript30.Column)({
|
|
3142
|
+
type: import_sequelize_typescript30.DataType.INTEGER,
|
|
3021
3143
|
defaultValue: "0"
|
|
3022
3144
|
})
|
|
3023
3145
|
], userRoleV.prototype, "id", 2);
|
|
3024
3146
|
__decorateClass([
|
|
3025
|
-
(0,
|
|
3147
|
+
(0, import_sequelize_typescript30.Column)({
|
|
3026
3148
|
field: "website_th",
|
|
3027
3149
|
allowNull: true,
|
|
3028
|
-
type:
|
|
3150
|
+
type: import_sequelize_typescript30.DataType.STRING(60)
|
|
3029
3151
|
})
|
|
3030
3152
|
], userRoleV.prototype, "websiteTh", 2);
|
|
3031
3153
|
__decorateClass([
|
|
3032
|
-
(0,
|
|
3154
|
+
(0, import_sequelize_typescript30.Column)({
|
|
3033
3155
|
field: "website_en",
|
|
3034
3156
|
allowNull: true,
|
|
3035
|
-
type:
|
|
3157
|
+
type: import_sequelize_typescript30.DataType.STRING(60)
|
|
3036
3158
|
})
|
|
3037
3159
|
], userRoleV.prototype, "websiteEn", 2);
|
|
3038
3160
|
__decorateClass([
|
|
3039
|
-
(0,
|
|
3161
|
+
(0, import_sequelize_typescript30.Column)({
|
|
3040
3162
|
field: "website_fr",
|
|
3041
3163
|
allowNull: true,
|
|
3042
|
-
type:
|
|
3164
|
+
type: import_sequelize_typescript30.DataType.STRING(60)
|
|
3043
3165
|
})
|
|
3044
3166
|
], userRoleV.prototype, "websiteFr", 2);
|
|
3045
3167
|
userRoleV = __decorateClass([
|
|
3046
|
-
(0,
|
|
3168
|
+
(0, import_sequelize_typescript30.Table)({
|
|
3047
3169
|
tableName: "user_role_v",
|
|
3048
3170
|
timestamps: false,
|
|
3049
3171
|
comment: "VIEW"
|
|
@@ -3070,6 +3192,7 @@ userRoleV = __decorateClass([
|
|
|
3070
3192
|
mdLink,
|
|
3071
3193
|
mdNews,
|
|
3072
3194
|
mdNewsGroup,
|
|
3195
|
+
mdPopup,
|
|
3073
3196
|
mdQuestionnaire,
|
|
3074
3197
|
mdSetting,
|
|
3075
3198
|
menu,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface mdPopupAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
userId: number;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
detail?: string;
|
|
11
|
+
imageCover?: string;
|
|
12
|
+
sort?: number;
|
|
13
|
+
status?: number;
|
|
14
|
+
hasExpire: number;
|
|
15
|
+
startDate?: Date;
|
|
16
|
+
expireDate?: Date;
|
|
17
|
+
createdBy?: string;
|
|
18
|
+
createdDate?: Date;
|
|
19
|
+
updatedBy: string;
|
|
20
|
+
updatedDate?: Date;
|
|
21
|
+
}
|
|
22
|
+
declare class mdPopup extends Model<mdPopupAttributes, mdPopupAttributes> implements mdPopupAttributes {
|
|
23
|
+
id?: number;
|
|
24
|
+
uuid: string;
|
|
25
|
+
keyName?: string;
|
|
26
|
+
userId: number;
|
|
27
|
+
title?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
detail?: string;
|
|
30
|
+
imageCover?: string;
|
|
31
|
+
sort?: number;
|
|
32
|
+
status?: number;
|
|
33
|
+
hasExpire: number;
|
|
34
|
+
startDate?: Date;
|
|
35
|
+
expireDate?: Date;
|
|
36
|
+
createdBy?: string;
|
|
37
|
+
createdDate?: Date;
|
|
38
|
+
updatedBy: string;
|
|
39
|
+
updatedDate?: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { mdPopup, type mdPopupAttributes };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/mdPopup.ts
|
|
29
|
+
var mdPopup_exports = {};
|
|
30
|
+
__export(mdPopup_exports, {
|
|
31
|
+
mdPopup: () => mdPopup
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(mdPopup_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var mdPopup = class extends import_sequelize_typescript.Model {
|
|
36
|
+
};
|
|
37
|
+
__decorateClass([
|
|
38
|
+
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
autoIncrement: true,
|
|
41
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
|
+
})
|
|
43
|
+
], mdPopup.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
47
|
+
})
|
|
48
|
+
], mdPopup.prototype, "uuid", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
(0, import_sequelize_typescript.Column)({
|
|
51
|
+
field: "key_name",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
54
|
+
})
|
|
55
|
+
], mdPopup.prototype, "keyName", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
field: "user_id",
|
|
59
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
60
|
+
})
|
|
61
|
+
], mdPopup.prototype, "userId", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
66
|
+
})
|
|
67
|
+
], mdPopup.prototype, "title", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
allowNull: true,
|
|
71
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
72
|
+
})
|
|
73
|
+
], mdPopup.prototype, "description", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
(0, import_sequelize_typescript.Column)({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
78
|
+
})
|
|
79
|
+
], mdPopup.prototype, "detail", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
(0, import_sequelize_typescript.Column)({
|
|
82
|
+
field: "image_cover",
|
|
83
|
+
allowNull: true,
|
|
84
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
85
|
+
})
|
|
86
|
+
], mdPopup.prototype, "imageCover", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
(0, import_sequelize_typescript.Column)({
|
|
89
|
+
allowNull: true,
|
|
90
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
91
|
+
})
|
|
92
|
+
], mdPopup.prototype, "sort", 2);
|
|
93
|
+
__decorateClass([
|
|
94
|
+
(0, import_sequelize_typescript.Column)({
|
|
95
|
+
allowNull: true,
|
|
96
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
97
|
+
})
|
|
98
|
+
], mdPopup.prototype, "status", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
(0, import_sequelize_typescript.Column)({
|
|
101
|
+
field: "has_expire",
|
|
102
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
103
|
+
})
|
|
104
|
+
], mdPopup.prototype, "hasExpire", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
(0, import_sequelize_typescript.Column)({
|
|
107
|
+
field: "start_date",
|
|
108
|
+
allowNull: true,
|
|
109
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
110
|
+
})
|
|
111
|
+
], mdPopup.prototype, "startDate", 2);
|
|
112
|
+
__decorateClass([
|
|
113
|
+
(0, import_sequelize_typescript.Column)({
|
|
114
|
+
field: "expire_date",
|
|
115
|
+
allowNull: true,
|
|
116
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
117
|
+
})
|
|
118
|
+
], mdPopup.prototype, "expireDate", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
(0, import_sequelize_typescript.Column)({
|
|
121
|
+
field: "created_by",
|
|
122
|
+
allowNull: true,
|
|
123
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
124
|
+
})
|
|
125
|
+
], mdPopup.prototype, "createdBy", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
(0, import_sequelize_typescript.Column)({
|
|
128
|
+
field: "created_date",
|
|
129
|
+
allowNull: true,
|
|
130
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
131
|
+
})
|
|
132
|
+
], mdPopup.prototype, "createdDate", 2);
|
|
133
|
+
__decorateClass([
|
|
134
|
+
(0, import_sequelize_typescript.Column)({
|
|
135
|
+
field: "updated_by",
|
|
136
|
+
primaryKey: true,
|
|
137
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
138
|
+
})
|
|
139
|
+
], mdPopup.prototype, "updatedBy", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
(0, import_sequelize_typescript.Column)({
|
|
142
|
+
field: "updated_date",
|
|
143
|
+
allowNull: true,
|
|
144
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
145
|
+
})
|
|
146
|
+
], mdPopup.prototype, "updatedDate", 2);
|
|
147
|
+
mdPopup = __decorateClass([
|
|
148
|
+
(0, import_sequelize_typescript.Table)({
|
|
149
|
+
tableName: "md_popup",
|
|
150
|
+
timestamps: false
|
|
151
|
+
})
|
|
152
|
+
], mdPopup);
|
|
153
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
154
|
+
0 && (module.exports = {
|
|
155
|
+
mdPopup
|
|
156
|
+
});
|