@admc-go-th/admc-library 1.0.39 → 1.0.41

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.
@@ -31,8 +31,11 @@ __export(mdNews_exports, {
31
31
  mdNews: () => mdNews
32
32
  });
33
33
  module.exports = __toCommonJS(mdNews_exports);
34
+ var import_sequelize_typescript2 = require("sequelize-typescript");
35
+
36
+ // src/databases/tables/mdNewsGroup.ts
34
37
  var import_sequelize_typescript = require("sequelize-typescript");
35
- var mdNews = class extends import_sequelize_typescript.Model {
38
+ var mdNewsGroup = class extends import_sequelize_typescript.Model {
36
39
  };
37
40
  __decorateClass([
38
41
  (0, import_sequelize_typescript.Column)({
@@ -40,153 +43,244 @@ __decorateClass([
40
43
  autoIncrement: true,
41
44
  type: import_sequelize_typescript.DataType.INTEGER
42
45
  })
43
- ], mdNews.prototype, "id", 2);
46
+ ], mdNewsGroup.prototype, "id", 2);
44
47
  __decorateClass([
45
48
  (0, import_sequelize_typescript.Column)({
49
+ allowNull: true,
46
50
  type: import_sequelize_typescript.DataType.STRING(60)
47
51
  })
48
- ], mdNews.prototype, "uuid", 2);
52
+ ], mdNewsGroup.prototype, "uuid", 2);
49
53
  __decorateClass([
50
54
  (0, import_sequelize_typescript.Column)({
51
55
  field: "key_name",
52
56
  allowNull: true,
53
57
  type: import_sequelize_typescript.DataType.STRING(100)
54
58
  })
55
- ], mdNews.prototype, "keyName", 2);
59
+ ], mdNewsGroup.prototype, "keyName", 2);
56
60
  __decorateClass([
57
61
  (0, import_sequelize_typescript.Column)({
58
- field: "group_id",
62
+ field: "user_id",
59
63
  allowNull: true,
60
64
  type: import_sequelize_typescript.DataType.INTEGER
61
65
  })
62
- ], mdNews.prototype, "groupId", 2);
66
+ ], mdNewsGroup.prototype, "userId", 2);
63
67
  __decorateClass([
64
68
  (0, import_sequelize_typescript.Column)({
65
- field: "user_id",
66
- type: import_sequelize_typescript.DataType.INTEGER
69
+ type: import_sequelize_typescript.DataType.STRING(255)
67
70
  })
68
- ], mdNews.prototype, "userId", 2);
71
+ ], mdNewsGroup.prototype, "name", 2);
69
72
  __decorateClass([
70
73
  (0, import_sequelize_typescript.Column)({
71
74
  allowNull: true,
72
75
  type: import_sequelize_typescript.DataType.STRING(255)
73
76
  })
74
- ], mdNews.prototype, "title", 2);
77
+ ], mdNewsGroup.prototype, "description", 2);
75
78
  __decorateClass([
76
79
  (0, import_sequelize_typescript.Column)({
77
80
  allowNull: true,
78
- type: import_sequelize_typescript.DataType.STRING
81
+ type: import_sequelize_typescript.DataType.INTEGER
79
82
  })
80
- ], mdNews.prototype, "description", 2);
83
+ ], mdNewsGroup.prototype, "status", 2);
81
84
  __decorateClass([
82
85
  (0, import_sequelize_typescript.Column)({
86
+ field: "created_by",
83
87
  allowNull: true,
84
- type: import_sequelize_typescript.DataType.STRING
88
+ type: import_sequelize_typescript.DataType.STRING(60)
85
89
  })
86
- ], mdNews.prototype, "detail", 2);
90
+ ], mdNewsGroup.prototype, "createdBy", 2);
87
91
  __decorateClass([
88
92
  (0, import_sequelize_typescript.Column)({
93
+ field: "created_date",
94
+ allowNull: true,
95
+ type: import_sequelize_typescript.DataType.DATE
96
+ })
97
+ ], mdNewsGroup.prototype, "createdDate", 2);
98
+ __decorateClass([
99
+ (0, import_sequelize_typescript.Column)({
100
+ field: "updated_by",
101
+ allowNull: true,
102
+ type: import_sequelize_typescript.DataType.STRING(60)
103
+ })
104
+ ], mdNewsGroup.prototype, "updatedBy", 2);
105
+ __decorateClass([
106
+ (0, import_sequelize_typescript.Column)({
107
+ field: "updated_date",
108
+ allowNull: true,
109
+ type: import_sequelize_typescript.DataType.DATE
110
+ })
111
+ ], mdNewsGroup.prototype, "updatedDate", 2);
112
+ __decorateClass([
113
+ (0, import_sequelize_typescript.HasMany)(() => mdNews, {
114
+ sourceKey: "id"
115
+ })
116
+ ], mdNewsGroup.prototype, "mdNews", 2);
117
+ mdNewsGroup = __decorateClass([
118
+ (0, import_sequelize_typescript.Table)({
119
+ tableName: "md_news_group",
120
+ timestamps: false
121
+ })
122
+ ], mdNewsGroup);
123
+
124
+ // src/databases/tables/mdNews.ts
125
+ var mdNews = class extends import_sequelize_typescript2.Model {
126
+ };
127
+ __decorateClass([
128
+ (0, import_sequelize_typescript2.Column)({
129
+ primaryKey: true,
130
+ autoIncrement: true,
131
+ type: import_sequelize_typescript2.DataType.INTEGER
132
+ })
133
+ ], mdNews.prototype, "id", 2);
134
+ __decorateClass([
135
+ (0, import_sequelize_typescript2.Column)({
136
+ type: import_sequelize_typescript2.DataType.STRING(60)
137
+ })
138
+ ], mdNews.prototype, "uuid", 2);
139
+ __decorateClass([
140
+ (0, import_sequelize_typescript2.Column)({
141
+ field: "key_name",
142
+ allowNull: true,
143
+ type: import_sequelize_typescript2.DataType.STRING(100)
144
+ })
145
+ ], mdNews.prototype, "keyName", 2);
146
+ __decorateClass([
147
+ (0, import_sequelize_typescript2.ForeignKey)(() => mdNewsGroup),
148
+ (0, import_sequelize_typescript2.Column)({
149
+ field: "group_id",
150
+ allowNull: true,
151
+ type: import_sequelize_typescript2.DataType.INTEGER
152
+ })
153
+ ], mdNews.prototype, "groupId", 2);
154
+ __decorateClass([
155
+ (0, import_sequelize_typescript2.Column)({
156
+ field: "user_id",
157
+ type: import_sequelize_typescript2.DataType.INTEGER
158
+ })
159
+ ], mdNews.prototype, "userId", 2);
160
+ __decorateClass([
161
+ (0, import_sequelize_typescript2.Column)({
162
+ allowNull: true,
163
+ type: import_sequelize_typescript2.DataType.STRING(255)
164
+ })
165
+ ], mdNews.prototype, "title", 2);
166
+ __decorateClass([
167
+ (0, import_sequelize_typescript2.Column)({
168
+ allowNull: true,
169
+ type: import_sequelize_typescript2.DataType.STRING
170
+ })
171
+ ], mdNews.prototype, "description", 2);
172
+ __decorateClass([
173
+ (0, import_sequelize_typescript2.Column)({
174
+ allowNull: true,
175
+ type: import_sequelize_typescript2.DataType.STRING
176
+ })
177
+ ], mdNews.prototype, "detail", 2);
178
+ __decorateClass([
179
+ (0, import_sequelize_typescript2.Column)({
89
180
  field: "meta_title",
90
181
  allowNull: true,
91
- type: import_sequelize_typescript.DataType.STRING(255)
182
+ type: import_sequelize_typescript2.DataType.STRING(255)
92
183
  })
93
184
  ], mdNews.prototype, "metaTitle", 2);
94
185
  __decorateClass([
95
- (0, import_sequelize_typescript.Column)({
186
+ (0, import_sequelize_typescript2.Column)({
96
187
  field: "meta_keyword",
97
188
  allowNull: true,
98
- type: import_sequelize_typescript.DataType.STRING(255)
189
+ type: import_sequelize_typescript2.DataType.STRING(255)
99
190
  })
100
191
  ], mdNews.prototype, "metaKeyword", 2);
101
192
  __decorateClass([
102
- (0, import_sequelize_typescript.Column)({
193
+ (0, import_sequelize_typescript2.Column)({
103
194
  field: "meta_description",
104
195
  allowNull: true,
105
- type: import_sequelize_typescript.DataType.STRING(255)
196
+ type: import_sequelize_typescript2.DataType.STRING(255)
106
197
  })
107
198
  ], mdNews.prototype, "metaDescription", 2);
108
199
  __decorateClass([
109
- (0, import_sequelize_typescript.Column)({
200
+ (0, import_sequelize_typescript2.Column)({
110
201
  field: "image_cover",
111
202
  allowNull: true,
112
- type: import_sequelize_typescript.DataType.STRING(60)
203
+ type: import_sequelize_typescript2.DataType.STRING(60)
113
204
  })
114
205
  ], mdNews.prototype, "imageCover", 2);
115
206
  __decorateClass([
116
- (0, import_sequelize_typescript.Column)({
207
+ (0, import_sequelize_typescript2.Column)({
117
208
  field: "image_gallery",
118
209
  allowNull: true,
119
- type: import_sequelize_typescript.DataType.JSON
210
+ type: import_sequelize_typescript2.DataType.JSON
120
211
  })
121
212
  ], mdNews.prototype, "imageGallery", 2);
122
213
  __decorateClass([
123
- (0, import_sequelize_typescript.Column)({
214
+ (0, import_sequelize_typescript2.Column)({
124
215
  allowNull: true,
125
- type: import_sequelize_typescript.DataType.JSON
216
+ type: import_sequelize_typescript2.DataType.JSON
126
217
  })
127
218
  ], mdNews.prototype, "attachments", 2);
128
219
  __decorateClass([
129
- (0, import_sequelize_typescript.Column)({
220
+ (0, import_sequelize_typescript2.Column)({
130
221
  allowNull: true,
131
- type: import_sequelize_typescript.DataType.INTEGER
222
+ type: import_sequelize_typescript2.DataType.INTEGER
132
223
  })
133
224
  ], mdNews.prototype, "sort", 2);
134
225
  __decorateClass([
135
- (0, import_sequelize_typescript.Column)({
226
+ (0, import_sequelize_typescript2.Column)({
136
227
  allowNull: true,
137
- type: import_sequelize_typescript.DataType.INTEGER
228
+ type: import_sequelize_typescript2.DataType.INTEGER
138
229
  })
139
230
  ], mdNews.prototype, "status", 2);
140
231
  __decorateClass([
141
- (0, import_sequelize_typescript.Column)({
232
+ (0, import_sequelize_typescript2.Column)({
142
233
  field: "has_expire",
143
- type: import_sequelize_typescript.DataType.INTEGER
234
+ type: import_sequelize_typescript2.DataType.INTEGER
144
235
  })
145
236
  ], mdNews.prototype, "hasExpire", 2);
146
237
  __decorateClass([
147
- (0, import_sequelize_typescript.Column)({
238
+ (0, import_sequelize_typescript2.Column)({
148
239
  field: "start_date",
149
240
  allowNull: true,
150
- type: import_sequelize_typescript.DataType.DATE
241
+ type: import_sequelize_typescript2.DataType.DATE
151
242
  })
152
243
  ], mdNews.prototype, "startDate", 2);
153
244
  __decorateClass([
154
- (0, import_sequelize_typescript.Column)({
245
+ (0, import_sequelize_typescript2.Column)({
155
246
  field: "expire_date",
156
247
  allowNull: true,
157
- type: import_sequelize_typescript.DataType.DATE
248
+ type: import_sequelize_typescript2.DataType.DATE
158
249
  })
159
250
  ], mdNews.prototype, "expireDate", 2);
160
251
  __decorateClass([
161
- (0, import_sequelize_typescript.Column)({
252
+ (0, import_sequelize_typescript2.Column)({
162
253
  field: "created_by",
163
254
  allowNull: true,
164
- type: import_sequelize_typescript.DataType.STRING(60)
255
+ type: import_sequelize_typescript2.DataType.STRING(60)
165
256
  })
166
257
  ], mdNews.prototype, "createdBy", 2);
167
258
  __decorateClass([
168
- (0, import_sequelize_typescript.Column)({
259
+ (0, import_sequelize_typescript2.Column)({
169
260
  field: "created_date",
170
261
  allowNull: true,
171
- type: import_sequelize_typescript.DataType.DATE
262
+ type: import_sequelize_typescript2.DataType.DATE
172
263
  })
173
264
  ], mdNews.prototype, "createdDate", 2);
174
265
  __decorateClass([
175
- (0, import_sequelize_typescript.Column)({
266
+ (0, import_sequelize_typescript2.Column)({
176
267
  field: "updated_by",
177
268
  allowNull: true,
178
- type: import_sequelize_typescript.DataType.STRING(60)
269
+ type: import_sequelize_typescript2.DataType.STRING(60)
179
270
  })
180
271
  ], mdNews.prototype, "updatedBy", 2);
181
272
  __decorateClass([
182
- (0, import_sequelize_typescript.Column)({
273
+ (0, import_sequelize_typescript2.Column)({
183
274
  field: "updated_date",
184
275
  allowNull: true,
185
- type: import_sequelize_typescript.DataType.DATE
276
+ type: import_sequelize_typescript2.DataType.DATE
186
277
  })
187
278
  ], mdNews.prototype, "updatedDate", 2);
279
+ __decorateClass([
280
+ (0, import_sequelize_typescript2.BelongsTo)(() => mdNewsGroup)
281
+ ], mdNews.prototype, "mdNewsGroup", 2);
188
282
  mdNews = __decorateClass([
189
- (0, import_sequelize_typescript.Table)({
283
+ (0, import_sequelize_typescript2.Table)({
190
284
  tableName: "md_news",
191
285
  timestamps: false
192
286
  })
@@ -1,28 +1,2 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface mdNewsGroupAttributes {
4
- id?: number;
5
- uuid?: string;
6
- keyName?: string;
7
- name: string;
8
- description?: string;
9
- status?: number;
10
- createdBy?: string;
11
- createdDate?: Date;
12
- updatedBy?: string;
13
- updatedDate?: Date;
14
- }
15
- declare class mdNewsGroup extends Model<mdNewsGroupAttributes, mdNewsGroupAttributes> implements mdNewsGroupAttributes {
16
- id?: number;
17
- uuid?: string;
18
- keyName?: string;
19
- name: string;
20
- description?: string;
21
- status?: number;
22
- createdBy?: string;
23
- createdDate?: Date;
24
- updatedBy?: string;
25
- updatedDate?: Date;
26
- }
27
-
28
- export { mdNewsGroup, type mdNewsGroupAttributes };
1
+ import 'sequelize-typescript';
2
+ export { c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-CYzk8W_D.js';
@@ -31,8 +31,11 @@ __export(mdNewsGroup_exports, {
31
31
  mdNewsGroup: () => mdNewsGroup
32
32
  });
33
33
  module.exports = __toCommonJS(mdNewsGroup_exports);
34
+ var import_sequelize_typescript2 = require("sequelize-typescript");
35
+
36
+ // src/databases/tables/mdNews.ts
34
37
  var import_sequelize_typescript = require("sequelize-typescript");
35
- var mdNewsGroup = class extends import_sequelize_typescript.Model {
38
+ var mdNews = class extends import_sequelize_typescript.Model {
36
39
  };
37
40
  __decorateClass([
38
41
  (0, import_sequelize_typescript.Column)({
@@ -40,67 +43,244 @@ __decorateClass([
40
43
  autoIncrement: true,
41
44
  type: import_sequelize_typescript.DataType.INTEGER
42
45
  })
43
- ], mdNewsGroup.prototype, "id", 2);
46
+ ], mdNews.prototype, "id", 2);
44
47
  __decorateClass([
45
48
  (0, import_sequelize_typescript.Column)({
46
- allowNull: true,
47
49
  type: import_sequelize_typescript.DataType.STRING(60)
48
50
  })
49
- ], mdNewsGroup.prototype, "uuid", 2);
51
+ ], mdNews.prototype, "uuid", 2);
50
52
  __decorateClass([
51
53
  (0, import_sequelize_typescript.Column)({
52
54
  field: "key_name",
53
55
  allowNull: true,
54
56
  type: import_sequelize_typescript.DataType.STRING(100)
55
57
  })
56
- ], mdNewsGroup.prototype, "keyName", 2);
58
+ ], mdNews.prototype, "keyName", 2);
59
+ __decorateClass([
60
+ (0, import_sequelize_typescript.ForeignKey)(() => mdNewsGroup),
61
+ (0, import_sequelize_typescript.Column)({
62
+ field: "group_id",
63
+ allowNull: true,
64
+ type: import_sequelize_typescript.DataType.INTEGER
65
+ })
66
+ ], mdNews.prototype, "groupId", 2);
67
+ __decorateClass([
68
+ (0, import_sequelize_typescript.Column)({
69
+ field: "user_id",
70
+ type: import_sequelize_typescript.DataType.INTEGER
71
+ })
72
+ ], mdNews.prototype, "userId", 2);
57
73
  __decorateClass([
58
74
  (0, import_sequelize_typescript.Column)({
75
+ allowNull: true,
59
76
  type: import_sequelize_typescript.DataType.STRING(255)
60
77
  })
61
- ], mdNewsGroup.prototype, "name", 2);
78
+ ], mdNews.prototype, "title", 2);
62
79
  __decorateClass([
63
80
  (0, import_sequelize_typescript.Column)({
81
+ allowNull: true,
82
+ type: import_sequelize_typescript.DataType.STRING
83
+ })
84
+ ], mdNews.prototype, "description", 2);
85
+ __decorateClass([
86
+ (0, import_sequelize_typescript.Column)({
87
+ allowNull: true,
88
+ type: import_sequelize_typescript.DataType.STRING
89
+ })
90
+ ], mdNews.prototype, "detail", 2);
91
+ __decorateClass([
92
+ (0, import_sequelize_typescript.Column)({
93
+ field: "meta_title",
64
94
  allowNull: true,
65
95
  type: import_sequelize_typescript.DataType.STRING(255)
66
96
  })
67
- ], mdNewsGroup.prototype, "description", 2);
97
+ ], mdNews.prototype, "metaTitle", 2);
98
+ __decorateClass([
99
+ (0, import_sequelize_typescript.Column)({
100
+ field: "meta_keyword",
101
+ allowNull: true,
102
+ type: import_sequelize_typescript.DataType.STRING(255)
103
+ })
104
+ ], mdNews.prototype, "metaKeyword", 2);
105
+ __decorateClass([
106
+ (0, import_sequelize_typescript.Column)({
107
+ field: "meta_description",
108
+ allowNull: true,
109
+ type: import_sequelize_typescript.DataType.STRING(255)
110
+ })
111
+ ], mdNews.prototype, "metaDescription", 2);
112
+ __decorateClass([
113
+ (0, import_sequelize_typescript.Column)({
114
+ field: "image_cover",
115
+ allowNull: true,
116
+ type: import_sequelize_typescript.DataType.STRING(60)
117
+ })
118
+ ], mdNews.prototype, "imageCover", 2);
119
+ __decorateClass([
120
+ (0, import_sequelize_typescript.Column)({
121
+ field: "image_gallery",
122
+ allowNull: true,
123
+ type: import_sequelize_typescript.DataType.JSON
124
+ })
125
+ ], mdNews.prototype, "imageGallery", 2);
126
+ __decorateClass([
127
+ (0, import_sequelize_typescript.Column)({
128
+ allowNull: true,
129
+ type: import_sequelize_typescript.DataType.JSON
130
+ })
131
+ ], mdNews.prototype, "attachments", 2);
68
132
  __decorateClass([
69
133
  (0, import_sequelize_typescript.Column)({
70
134
  allowNull: true,
71
135
  type: import_sequelize_typescript.DataType.INTEGER
72
136
  })
73
- ], mdNewsGroup.prototype, "status", 2);
137
+ ], mdNews.prototype, "sort", 2);
138
+ __decorateClass([
139
+ (0, import_sequelize_typescript.Column)({
140
+ allowNull: true,
141
+ type: import_sequelize_typescript.DataType.INTEGER
142
+ })
143
+ ], mdNews.prototype, "status", 2);
144
+ __decorateClass([
145
+ (0, import_sequelize_typescript.Column)({
146
+ field: "has_expire",
147
+ type: import_sequelize_typescript.DataType.INTEGER
148
+ })
149
+ ], mdNews.prototype, "hasExpire", 2);
150
+ __decorateClass([
151
+ (0, import_sequelize_typescript.Column)({
152
+ field: "start_date",
153
+ allowNull: true,
154
+ type: import_sequelize_typescript.DataType.DATE
155
+ })
156
+ ], mdNews.prototype, "startDate", 2);
157
+ __decorateClass([
158
+ (0, import_sequelize_typescript.Column)({
159
+ field: "expire_date",
160
+ allowNull: true,
161
+ type: import_sequelize_typescript.DataType.DATE
162
+ })
163
+ ], mdNews.prototype, "expireDate", 2);
74
164
  __decorateClass([
75
165
  (0, import_sequelize_typescript.Column)({
76
166
  field: "created_by",
77
167
  allowNull: true,
78
168
  type: import_sequelize_typescript.DataType.STRING(60)
79
169
  })
80
- ], mdNewsGroup.prototype, "createdBy", 2);
170
+ ], mdNews.prototype, "createdBy", 2);
81
171
  __decorateClass([
82
172
  (0, import_sequelize_typescript.Column)({
83
173
  field: "created_date",
84
174
  allowNull: true,
85
175
  type: import_sequelize_typescript.DataType.DATE
86
176
  })
87
- ], mdNewsGroup.prototype, "createdDate", 2);
177
+ ], mdNews.prototype, "createdDate", 2);
88
178
  __decorateClass([
89
179
  (0, import_sequelize_typescript.Column)({
90
180
  field: "updated_by",
91
181
  allowNull: true,
92
182
  type: import_sequelize_typescript.DataType.STRING(60)
93
183
  })
94
- ], mdNewsGroup.prototype, "updatedBy", 2);
184
+ ], mdNews.prototype, "updatedBy", 2);
95
185
  __decorateClass([
96
186
  (0, import_sequelize_typescript.Column)({
97
187
  field: "updated_date",
98
188
  allowNull: true,
99
189
  type: import_sequelize_typescript.DataType.DATE
100
190
  })
191
+ ], mdNews.prototype, "updatedDate", 2);
192
+ __decorateClass([
193
+ (0, import_sequelize_typescript.BelongsTo)(() => mdNewsGroup)
194
+ ], mdNews.prototype, "mdNewsGroup", 2);
195
+ mdNews = __decorateClass([
196
+ (0, import_sequelize_typescript.Table)({
197
+ tableName: "md_news",
198
+ timestamps: false
199
+ })
200
+ ], mdNews);
201
+
202
+ // src/databases/tables/mdNewsGroup.ts
203
+ var mdNewsGroup = class extends import_sequelize_typescript2.Model {
204
+ };
205
+ __decorateClass([
206
+ (0, import_sequelize_typescript2.Column)({
207
+ primaryKey: true,
208
+ autoIncrement: true,
209
+ type: import_sequelize_typescript2.DataType.INTEGER
210
+ })
211
+ ], mdNewsGroup.prototype, "id", 2);
212
+ __decorateClass([
213
+ (0, import_sequelize_typescript2.Column)({
214
+ allowNull: true,
215
+ type: import_sequelize_typescript2.DataType.STRING(60)
216
+ })
217
+ ], mdNewsGroup.prototype, "uuid", 2);
218
+ __decorateClass([
219
+ (0, import_sequelize_typescript2.Column)({
220
+ field: "key_name",
221
+ allowNull: true,
222
+ type: import_sequelize_typescript2.DataType.STRING(100)
223
+ })
224
+ ], mdNewsGroup.prototype, "keyName", 2);
225
+ __decorateClass([
226
+ (0, import_sequelize_typescript2.Column)({
227
+ field: "user_id",
228
+ allowNull: true,
229
+ type: import_sequelize_typescript2.DataType.INTEGER
230
+ })
231
+ ], mdNewsGroup.prototype, "userId", 2);
232
+ __decorateClass([
233
+ (0, import_sequelize_typescript2.Column)({
234
+ type: import_sequelize_typescript2.DataType.STRING(255)
235
+ })
236
+ ], mdNewsGroup.prototype, "name", 2);
237
+ __decorateClass([
238
+ (0, import_sequelize_typescript2.Column)({
239
+ allowNull: true,
240
+ type: import_sequelize_typescript2.DataType.STRING(255)
241
+ })
242
+ ], mdNewsGroup.prototype, "description", 2);
243
+ __decorateClass([
244
+ (0, import_sequelize_typescript2.Column)({
245
+ allowNull: true,
246
+ type: import_sequelize_typescript2.DataType.INTEGER
247
+ })
248
+ ], mdNewsGroup.prototype, "status", 2);
249
+ __decorateClass([
250
+ (0, import_sequelize_typescript2.Column)({
251
+ field: "created_by",
252
+ allowNull: true,
253
+ type: import_sequelize_typescript2.DataType.STRING(60)
254
+ })
255
+ ], mdNewsGroup.prototype, "createdBy", 2);
256
+ __decorateClass([
257
+ (0, import_sequelize_typescript2.Column)({
258
+ field: "created_date",
259
+ allowNull: true,
260
+ type: import_sequelize_typescript2.DataType.DATE
261
+ })
262
+ ], mdNewsGroup.prototype, "createdDate", 2);
263
+ __decorateClass([
264
+ (0, import_sequelize_typescript2.Column)({
265
+ field: "updated_by",
266
+ allowNull: true,
267
+ type: import_sequelize_typescript2.DataType.STRING(60)
268
+ })
269
+ ], mdNewsGroup.prototype, "updatedBy", 2);
270
+ __decorateClass([
271
+ (0, import_sequelize_typescript2.Column)({
272
+ field: "updated_date",
273
+ allowNull: true,
274
+ type: import_sequelize_typescript2.DataType.DATE
275
+ })
101
276
  ], mdNewsGroup.prototype, "updatedDate", 2);
277
+ __decorateClass([
278
+ (0, import_sequelize_typescript2.HasMany)(() => mdNews, {
279
+ sourceKey: "id"
280
+ })
281
+ ], mdNewsGroup.prototype, "mdNews", 2);
102
282
  mdNewsGroup = __decorateClass([
103
- (0, import_sequelize_typescript.Table)({
283
+ (0, import_sequelize_typescript2.Table)({
104
284
  tableName: "md_news_group",
105
285
  timestamps: false
106
286
  })
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { k as mdQuestionnaire, j as mdQuestionnaireAttributes } from '../../authAssignment-95Z8e5DO.js';
2
+ export { k as mdQuestionnaire, j as mdQuestionnaireAttributes } from '../../authAssignment-WsNQC_sL.js';
@@ -378,7 +378,7 @@ __decorateClass([
378
378
  (0, import_sequelize_typescript5.Column)({
379
379
  field: "image_cover",
380
380
  allowNull: true,
381
- type: import_sequelize_typescript5.DataType.JSON
381
+ type: import_sequelize_typescript5.DataType.STRING(60)
382
382
  })
383
383
  ], mdContent.prototype, "imageCover", 2);
384
384
  __decorateClass([
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { l as users, u as usersAttributes } from '../../authAssignment-95Z8e5DO.js';
2
+ export { l as users, u as usersAttributes } from '../../authAssignment-WsNQC_sL.js';
@@ -375,7 +375,7 @@ __decorateClass([
375
375
  (0, import_sequelize_typescript5.Column)({
376
376
  field: "image_cover",
377
377
  allowNull: true,
378
- type: import_sequelize_typescript5.DataType.JSON
378
+ type: import_sequelize_typescript5.DataType.STRING(60)
379
379
  })
380
380
  ], mdContent.prototype, "imageCover", 2);
381
381
  __decorateClass([
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-95Z8e5DO.js';
2
+ export { o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-WsNQC_sL.js';
@@ -378,7 +378,7 @@ __decorateClass([
378
378
  (0, import_sequelize_typescript5.Column)({
379
379
  field: "image_cover",
380
380
  allowNull: true,
381
- type: import_sequelize_typescript5.DataType.JSON
381
+ type: import_sequelize_typescript5.DataType.STRING(60)
382
382
  })
383
383
  ], mdContent.prototype, "imageCover", 2);
384
384
  __decorateClass([