@admc-go-th/admc-library 1.0.2 → 1.0.4
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/models/authAssignment.d.ts +20 -0
- package/databases/models/authAssignment.js +88 -0
- package/databases/models/authItem.d.ts +28 -0
- package/databases/models/authItem.js +111 -0
- package/databases/models/authItemChild.d.ts +12 -0
- package/databases/models/authItemChild.js +58 -0
- package/databases/models/authRole.d.ts +20 -0
- package/databases/models/authRole.js +87 -0
- package/databases/models/authRoleChild.d.ts +14 -0
- package/databases/models/authRoleChild.js +66 -0
- package/databases/models/index.d.ts +11 -0
- package/databases/models/index.js +733 -0
- package/databases/models/mdContent.d.ts +38 -0
- package/databases/models/mdContent.js +146 -0
- package/databases/models/mdContentGroup.d.ts +22 -0
- package/databases/models/mdContentGroup.js +93 -0
- package/databases/models/menu.d.ts +26 -0
- package/databases/models/menu.js +106 -0
- package/databases/models/msModule.d.ts +20 -0
- package/databases/models/msModule.js +87 -0
- package/databases/models/users.d.ts +50 -0
- package/databases/models/users.js +186 -0
- package/error/app-error.d.ts +6 -0
- package/error/app-error.js +37 -0
- package/middleware/authenticate-token.d.ts +7 -0
- package/middleware/authenticate-token.js +57 -0
- package/middleware/error-handler.d.ts +5 -0
- package/middleware/error-handler.js +40 -0
- package/package.json +6 -1
- package/types/jwt/payload.types.d.ts +11 -0
- package/types/jwt/payload.types.js +18 -0
- package/utils/date.d.ts +3 -0
- package/utils/date.js +43 -0
|
@@ -0,0 +1,733 @@
|
|
|
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/models/index.ts
|
|
29
|
+
var models_exports = {};
|
|
30
|
+
__export(models_exports, {
|
|
31
|
+
authAssignment: () => authAssignment,
|
|
32
|
+
authItem: () => authItem,
|
|
33
|
+
authItemChild: () => authItemChild,
|
|
34
|
+
authRole: () => authRole,
|
|
35
|
+
authRoleChild: () => authRoleChild,
|
|
36
|
+
mdContent: () => mdContent,
|
|
37
|
+
mdContentGroup: () => mdContentGroup,
|
|
38
|
+
menu: () => menu,
|
|
39
|
+
msModule: () => msModule,
|
|
40
|
+
users: () => users
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(models_exports);
|
|
43
|
+
|
|
44
|
+
// src/databases/models/authAssignment.ts
|
|
45
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
46
|
+
var authAssignment = class extends import_sequelize_typescript.Model {
|
|
47
|
+
};
|
|
48
|
+
__decorateClass([
|
|
49
|
+
(0, import_sequelize_typescript.Column)({
|
|
50
|
+
field: "role_id",
|
|
51
|
+
primaryKey: true,
|
|
52
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
53
|
+
})
|
|
54
|
+
], authAssignment.prototype, "roleId", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
(0, import_sequelize_typescript.Column)({
|
|
57
|
+
field: "user_id",
|
|
58
|
+
primaryKey: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
60
|
+
})
|
|
61
|
+
], authAssignment.prototype, "userId", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
field: "created_by",
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
67
|
+
})
|
|
68
|
+
], authAssignment.prototype, "createdBy", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
(0, import_sequelize_typescript.Column)({
|
|
71
|
+
field: "created_date",
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
74
|
+
})
|
|
75
|
+
], authAssignment.prototype, "createdDate", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
(0, import_sequelize_typescript.Column)({
|
|
78
|
+
field: "updated_by",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
81
|
+
})
|
|
82
|
+
], authAssignment.prototype, "updatedBy", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
(0, import_sequelize_typescript.Column)({
|
|
85
|
+
field: "updated_date",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
88
|
+
})
|
|
89
|
+
], authAssignment.prototype, "updatedDate", 2);
|
|
90
|
+
authAssignment = __decorateClass([
|
|
91
|
+
(0, import_sequelize_typescript.Table)({
|
|
92
|
+
tableName: "auth_assignment",
|
|
93
|
+
timestamps: false
|
|
94
|
+
})
|
|
95
|
+
], authAssignment);
|
|
96
|
+
|
|
97
|
+
// src/databases/models/authItem.ts
|
|
98
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
99
|
+
var authItem = class extends import_sequelize_typescript2.Model {
|
|
100
|
+
};
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript2.Column)({
|
|
103
|
+
field: "key_name",
|
|
104
|
+
primaryKey: true,
|
|
105
|
+
type: import_sequelize_typescript2.DataType.STRING(100)
|
|
106
|
+
})
|
|
107
|
+
], authItem.prototype, "keyName", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
(0, import_sequelize_typescript2.Column)({
|
|
110
|
+
type: import_sequelize_typescript2.DataType.SMALLINT
|
|
111
|
+
})
|
|
112
|
+
], authItem.prototype, "type", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
(0, import_sequelize_typescript2.Column)({
|
|
115
|
+
allowNull: true,
|
|
116
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
117
|
+
})
|
|
118
|
+
], authItem.prototype, "display", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
(0, import_sequelize_typescript2.Column)({
|
|
121
|
+
allowNull: true,
|
|
122
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
123
|
+
})
|
|
124
|
+
], authItem.prototype, "description", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
(0, import_sequelize_typescript2.Column)({
|
|
127
|
+
allowNull: true,
|
|
128
|
+
type: import_sequelize_typescript2.DataType.BLOB
|
|
129
|
+
})
|
|
130
|
+
], authItem.prototype, "data", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
(0, import_sequelize_typescript2.Column)({
|
|
133
|
+
allowNull: true,
|
|
134
|
+
type: import_sequelize_typescript2.DataType.INTEGER,
|
|
135
|
+
defaultValue: "1"
|
|
136
|
+
})
|
|
137
|
+
], authItem.prototype, "status", 2);
|
|
138
|
+
__decorateClass([
|
|
139
|
+
(0, import_sequelize_typescript2.Column)({
|
|
140
|
+
field: "created_by",
|
|
141
|
+
allowNull: true,
|
|
142
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
143
|
+
})
|
|
144
|
+
], authItem.prototype, "createdBy", 2);
|
|
145
|
+
__decorateClass([
|
|
146
|
+
(0, import_sequelize_typescript2.Column)({
|
|
147
|
+
field: "created_date",
|
|
148
|
+
allowNull: true,
|
|
149
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
150
|
+
})
|
|
151
|
+
], authItem.prototype, "createdDate", 2);
|
|
152
|
+
__decorateClass([
|
|
153
|
+
(0, import_sequelize_typescript2.Column)({
|
|
154
|
+
field: "updated_by",
|
|
155
|
+
allowNull: true,
|
|
156
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
157
|
+
})
|
|
158
|
+
], authItem.prototype, "updatedBy", 2);
|
|
159
|
+
__decorateClass([
|
|
160
|
+
(0, import_sequelize_typescript2.Column)({
|
|
161
|
+
field: "updated_date",
|
|
162
|
+
allowNull: true,
|
|
163
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
164
|
+
})
|
|
165
|
+
], authItem.prototype, "updatedDate", 2);
|
|
166
|
+
authItem = __decorateClass([
|
|
167
|
+
(0, import_sequelize_typescript2.Table)({
|
|
168
|
+
tableName: "auth_item",
|
|
169
|
+
timestamps: false
|
|
170
|
+
})
|
|
171
|
+
], authItem);
|
|
172
|
+
|
|
173
|
+
// src/databases/models/authItemChild.ts
|
|
174
|
+
var import_sequelize_typescript3 = require("sequelize-typescript");
|
|
175
|
+
var authItemChild = class extends import_sequelize_typescript3.Model {
|
|
176
|
+
};
|
|
177
|
+
__decorateClass([
|
|
178
|
+
(0, import_sequelize_typescript3.Column)({
|
|
179
|
+
primaryKey: true,
|
|
180
|
+
type: import_sequelize_typescript3.DataType.STRING(64)
|
|
181
|
+
})
|
|
182
|
+
], authItemChild.prototype, "parent", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
(0, import_sequelize_typescript3.Column)({
|
|
185
|
+
primaryKey: true,
|
|
186
|
+
type: import_sequelize_typescript3.DataType.STRING(64)
|
|
187
|
+
})
|
|
188
|
+
], authItemChild.prototype, "child", 2);
|
|
189
|
+
authItemChild = __decorateClass([
|
|
190
|
+
(0, import_sequelize_typescript3.Table)({
|
|
191
|
+
tableName: "auth_item_child",
|
|
192
|
+
timestamps: false
|
|
193
|
+
})
|
|
194
|
+
], authItemChild);
|
|
195
|
+
|
|
196
|
+
// src/databases/models/authRole.ts
|
|
197
|
+
var import_sequelize_typescript4 = require("sequelize-typescript");
|
|
198
|
+
var authRole = class extends import_sequelize_typescript4.Model {
|
|
199
|
+
};
|
|
200
|
+
__decorateClass([
|
|
201
|
+
(0, import_sequelize_typescript4.Column)({
|
|
202
|
+
primaryKey: true,
|
|
203
|
+
autoIncrement: true,
|
|
204
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
205
|
+
})
|
|
206
|
+
], authRole.prototype, "id", 2);
|
|
207
|
+
__decorateClass([
|
|
208
|
+
(0, import_sequelize_typescript4.Column)({
|
|
209
|
+
allowNull: true,
|
|
210
|
+
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
211
|
+
})
|
|
212
|
+
], authRole.prototype, "name", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
(0, import_sequelize_typescript4.Column)({
|
|
215
|
+
field: "created_by",
|
|
216
|
+
allowNull: true,
|
|
217
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
218
|
+
})
|
|
219
|
+
], authRole.prototype, "createdBy", 2);
|
|
220
|
+
__decorateClass([
|
|
221
|
+
(0, import_sequelize_typescript4.Column)({
|
|
222
|
+
field: "created_date",
|
|
223
|
+
allowNull: true,
|
|
224
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
225
|
+
})
|
|
226
|
+
], authRole.prototype, "createdDate", 2);
|
|
227
|
+
__decorateClass([
|
|
228
|
+
(0, import_sequelize_typescript4.Column)({
|
|
229
|
+
field: "updated_by",
|
|
230
|
+
allowNull: true,
|
|
231
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
232
|
+
})
|
|
233
|
+
], authRole.prototype, "updatedBy", 2);
|
|
234
|
+
__decorateClass([
|
|
235
|
+
(0, import_sequelize_typescript4.Column)({
|
|
236
|
+
field: "updated_date",
|
|
237
|
+
allowNull: true,
|
|
238
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
239
|
+
})
|
|
240
|
+
], authRole.prototype, "updatedDate", 2);
|
|
241
|
+
authRole = __decorateClass([
|
|
242
|
+
(0, import_sequelize_typescript4.Table)({
|
|
243
|
+
tableName: "auth_role",
|
|
244
|
+
timestamps: false
|
|
245
|
+
})
|
|
246
|
+
], authRole);
|
|
247
|
+
|
|
248
|
+
// src/databases/models/authRoleChild.ts
|
|
249
|
+
var import_sequelize_typescript5 = require("sequelize-typescript");
|
|
250
|
+
var authRoleChild = class extends import_sequelize_typescript5.Model {
|
|
251
|
+
};
|
|
252
|
+
__decorateClass([
|
|
253
|
+
(0, import_sequelize_typescript5.Column)({
|
|
254
|
+
field: "role_id",
|
|
255
|
+
primaryKey: true,
|
|
256
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
257
|
+
})
|
|
258
|
+
], authRoleChild.prototype, "roleId", 2);
|
|
259
|
+
__decorateClass([
|
|
260
|
+
(0, import_sequelize_typescript5.Column)({
|
|
261
|
+
field: "item_name",
|
|
262
|
+
primaryKey: true,
|
|
263
|
+
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
264
|
+
})
|
|
265
|
+
], authRoleChild.prototype, "itemName", 2);
|
|
266
|
+
__decorateClass([
|
|
267
|
+
(0, import_sequelize_typescript5.Column)({
|
|
268
|
+
allowNull: true,
|
|
269
|
+
type: import_sequelize_typescript5.DataType.JSON
|
|
270
|
+
})
|
|
271
|
+
], authRoleChild.prototype, "permission", 2);
|
|
272
|
+
authRoleChild = __decorateClass([
|
|
273
|
+
(0, import_sequelize_typescript5.Table)({
|
|
274
|
+
tableName: "auth_role_child",
|
|
275
|
+
timestamps: false
|
|
276
|
+
})
|
|
277
|
+
], authRoleChild);
|
|
278
|
+
|
|
279
|
+
// src/databases/models/mdContent.ts
|
|
280
|
+
var import_sequelize_typescript6 = require("sequelize-typescript");
|
|
281
|
+
var mdContent = class extends import_sequelize_typescript6.Model {
|
|
282
|
+
};
|
|
283
|
+
__decorateClass([
|
|
284
|
+
(0, import_sequelize_typescript6.Column)({
|
|
285
|
+
primaryKey: true,
|
|
286
|
+
autoIncrement: true,
|
|
287
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
288
|
+
})
|
|
289
|
+
], mdContent.prototype, "id", 2);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
(0, import_sequelize_typescript6.Column)({
|
|
292
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
293
|
+
})
|
|
294
|
+
], mdContent.prototype, "uuid", 2);
|
|
295
|
+
__decorateClass([
|
|
296
|
+
(0, import_sequelize_typescript6.Column)({
|
|
297
|
+
field: "group_id",
|
|
298
|
+
allowNull: true,
|
|
299
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
300
|
+
})
|
|
301
|
+
], mdContent.prototype, "groupId", 2);
|
|
302
|
+
__decorateClass([
|
|
303
|
+
(0, import_sequelize_typescript6.Column)({
|
|
304
|
+
field: "user_id",
|
|
305
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
306
|
+
})
|
|
307
|
+
], mdContent.prototype, "userId", 2);
|
|
308
|
+
__decorateClass([
|
|
309
|
+
(0, import_sequelize_typescript6.Column)({
|
|
310
|
+
allowNull: true,
|
|
311
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
312
|
+
})
|
|
313
|
+
], mdContent.prototype, "title", 2);
|
|
314
|
+
__decorateClass([
|
|
315
|
+
(0, import_sequelize_typescript6.Column)({
|
|
316
|
+
allowNull: true,
|
|
317
|
+
type: import_sequelize_typescript6.DataType.STRING
|
|
318
|
+
})
|
|
319
|
+
], mdContent.prototype, "detail", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
(0, import_sequelize_typescript6.Column)({
|
|
322
|
+
field: "meta_title",
|
|
323
|
+
allowNull: true,
|
|
324
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
325
|
+
})
|
|
326
|
+
], mdContent.prototype, "metaTitle", 2);
|
|
327
|
+
__decorateClass([
|
|
328
|
+
(0, import_sequelize_typescript6.Column)({
|
|
329
|
+
field: "meta_keyword",
|
|
330
|
+
allowNull: true,
|
|
331
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
332
|
+
})
|
|
333
|
+
], mdContent.prototype, "metaKeyword", 2);
|
|
334
|
+
__decorateClass([
|
|
335
|
+
(0, import_sequelize_typescript6.Column)({
|
|
336
|
+
field: "meta_description",
|
|
337
|
+
allowNull: true,
|
|
338
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
339
|
+
})
|
|
340
|
+
], mdContent.prototype, "metaDescription", 2);
|
|
341
|
+
__decorateClass([
|
|
342
|
+
(0, import_sequelize_typescript6.Column)({
|
|
343
|
+
field: "image_cover",
|
|
344
|
+
allowNull: true,
|
|
345
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
346
|
+
})
|
|
347
|
+
], mdContent.prototype, "imageCover", 2);
|
|
348
|
+
__decorateClass([
|
|
349
|
+
(0, import_sequelize_typescript6.Column)({
|
|
350
|
+
field: "image_gallery",
|
|
351
|
+
allowNull: true,
|
|
352
|
+
type: import_sequelize_typescript6.DataType.STRING
|
|
353
|
+
})
|
|
354
|
+
], mdContent.prototype, "imageGallery", 2);
|
|
355
|
+
__decorateClass([
|
|
356
|
+
(0, import_sequelize_typescript6.Column)({
|
|
357
|
+
field: "created_by",
|
|
358
|
+
allowNull: true,
|
|
359
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
360
|
+
})
|
|
361
|
+
], mdContent.prototype, "createdBy", 2);
|
|
362
|
+
__decorateClass([
|
|
363
|
+
(0, import_sequelize_typescript6.Column)({
|
|
364
|
+
field: "created_date",
|
|
365
|
+
allowNull: true,
|
|
366
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
367
|
+
})
|
|
368
|
+
], mdContent.prototype, "createdDate", 2);
|
|
369
|
+
__decorateClass([
|
|
370
|
+
(0, import_sequelize_typescript6.Column)({
|
|
371
|
+
field: "updated_by",
|
|
372
|
+
allowNull: true,
|
|
373
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
374
|
+
})
|
|
375
|
+
], mdContent.prototype, "updatedBy", 2);
|
|
376
|
+
__decorateClass([
|
|
377
|
+
(0, import_sequelize_typescript6.Column)({
|
|
378
|
+
field: "updated_date",
|
|
379
|
+
allowNull: true,
|
|
380
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
381
|
+
})
|
|
382
|
+
], mdContent.prototype, "updatedDate", 2);
|
|
383
|
+
mdContent = __decorateClass([
|
|
384
|
+
(0, import_sequelize_typescript6.Table)({
|
|
385
|
+
tableName: "md_content",
|
|
386
|
+
timestamps: false
|
|
387
|
+
})
|
|
388
|
+
], mdContent);
|
|
389
|
+
|
|
390
|
+
// src/databases/models/mdContentGroup.ts
|
|
391
|
+
var import_sequelize_typescript7 = require("sequelize-typescript");
|
|
392
|
+
var mdContentGroup = class extends import_sequelize_typescript7.Model {
|
|
393
|
+
};
|
|
394
|
+
__decorateClass([
|
|
395
|
+
(0, import_sequelize_typescript7.Column)({
|
|
396
|
+
primaryKey: true,
|
|
397
|
+
autoIncrement: true,
|
|
398
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
399
|
+
})
|
|
400
|
+
], mdContentGroup.prototype, "id", 2);
|
|
401
|
+
__decorateClass([
|
|
402
|
+
(0, import_sequelize_typescript7.Column)({
|
|
403
|
+
allowNull: true,
|
|
404
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
405
|
+
})
|
|
406
|
+
], mdContentGroup.prototype, "name", 2);
|
|
407
|
+
__decorateClass([
|
|
408
|
+
(0, import_sequelize_typescript7.Column)({
|
|
409
|
+
allowNull: true,
|
|
410
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
411
|
+
})
|
|
412
|
+
], mdContentGroup.prototype, "description", 2);
|
|
413
|
+
__decorateClass([
|
|
414
|
+
(0, import_sequelize_typescript7.Column)({
|
|
415
|
+
field: "created_by",
|
|
416
|
+
allowNull: true,
|
|
417
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
418
|
+
})
|
|
419
|
+
], mdContentGroup.prototype, "createdBy", 2);
|
|
420
|
+
__decorateClass([
|
|
421
|
+
(0, import_sequelize_typescript7.Column)({
|
|
422
|
+
field: "created_date",
|
|
423
|
+
allowNull: true,
|
|
424
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
425
|
+
})
|
|
426
|
+
], mdContentGroup.prototype, "createdDate", 2);
|
|
427
|
+
__decorateClass([
|
|
428
|
+
(0, import_sequelize_typescript7.Column)({
|
|
429
|
+
field: "updated_by",
|
|
430
|
+
allowNull: true,
|
|
431
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
432
|
+
})
|
|
433
|
+
], mdContentGroup.prototype, "updatedBy", 2);
|
|
434
|
+
__decorateClass([
|
|
435
|
+
(0, import_sequelize_typescript7.Column)({
|
|
436
|
+
field: "updated_date",
|
|
437
|
+
allowNull: true,
|
|
438
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
439
|
+
})
|
|
440
|
+
], mdContentGroup.prototype, "updatedDate", 2);
|
|
441
|
+
mdContentGroup = __decorateClass([
|
|
442
|
+
(0, import_sequelize_typescript7.Table)({
|
|
443
|
+
tableName: "md_content_group",
|
|
444
|
+
timestamps: false
|
|
445
|
+
})
|
|
446
|
+
], mdContentGroup);
|
|
447
|
+
|
|
448
|
+
// src/databases/models/menu.ts
|
|
449
|
+
var import_sequelize_typescript8 = require("sequelize-typescript");
|
|
450
|
+
var menu = class extends import_sequelize_typescript8.Model {
|
|
451
|
+
};
|
|
452
|
+
__decorateClass([
|
|
453
|
+
(0, import_sequelize_typescript8.Column)({
|
|
454
|
+
primaryKey: true,
|
|
455
|
+
autoIncrement: true,
|
|
456
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
457
|
+
})
|
|
458
|
+
], menu.prototype, "id", 2);
|
|
459
|
+
__decorateClass([
|
|
460
|
+
(0, import_sequelize_typescript8.Column)({
|
|
461
|
+
allowNull: true
|
|
462
|
+
})
|
|
463
|
+
], menu.prototype, "uuid", 2);
|
|
464
|
+
__decorateClass([
|
|
465
|
+
(0, import_sequelize_typescript8.Column)({
|
|
466
|
+
field: "item_name",
|
|
467
|
+
allowNull: true,
|
|
468
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
469
|
+
})
|
|
470
|
+
], menu.prototype, "itemName", 2);
|
|
471
|
+
__decorateClass([
|
|
472
|
+
(0, import_sequelize_typescript8.Column)({
|
|
473
|
+
allowNull: true,
|
|
474
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
475
|
+
})
|
|
476
|
+
], menu.prototype, "display", 2);
|
|
477
|
+
__decorateClass([
|
|
478
|
+
(0, import_sequelize_typescript8.Column)({
|
|
479
|
+
field: "module_id",
|
|
480
|
+
allowNull: true,
|
|
481
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
482
|
+
})
|
|
483
|
+
], menu.prototype, "moduleId", 2);
|
|
484
|
+
__decorateClass([
|
|
485
|
+
(0, import_sequelize_typescript8.Column)({
|
|
486
|
+
field: "created_by",
|
|
487
|
+
allowNull: true,
|
|
488
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
489
|
+
})
|
|
490
|
+
], menu.prototype, "createdBy", 2);
|
|
491
|
+
__decorateClass([
|
|
492
|
+
(0, import_sequelize_typescript8.Column)({
|
|
493
|
+
field: "created_date",
|
|
494
|
+
allowNull: true,
|
|
495
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
496
|
+
})
|
|
497
|
+
], menu.prototype, "createdDate", 2);
|
|
498
|
+
__decorateClass([
|
|
499
|
+
(0, import_sequelize_typescript8.Column)({
|
|
500
|
+
field: "updated_by",
|
|
501
|
+
allowNull: true,
|
|
502
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
503
|
+
})
|
|
504
|
+
], menu.prototype, "updatedBy", 2);
|
|
505
|
+
__decorateClass([
|
|
506
|
+
(0, import_sequelize_typescript8.Column)({
|
|
507
|
+
field: "updated_date",
|
|
508
|
+
allowNull: true,
|
|
509
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
510
|
+
})
|
|
511
|
+
], menu.prototype, "updatedDate", 2);
|
|
512
|
+
menu = __decorateClass([
|
|
513
|
+
(0, import_sequelize_typescript8.Table)({
|
|
514
|
+
tableName: "menu",
|
|
515
|
+
timestamps: false
|
|
516
|
+
})
|
|
517
|
+
], menu);
|
|
518
|
+
|
|
519
|
+
// src/databases/models/msModule.ts
|
|
520
|
+
var import_sequelize_typescript9 = require("sequelize-typescript");
|
|
521
|
+
var msModule = class extends import_sequelize_typescript9.Model {
|
|
522
|
+
};
|
|
523
|
+
__decorateClass([
|
|
524
|
+
(0, import_sequelize_typescript9.Column)({
|
|
525
|
+
primaryKey: true,
|
|
526
|
+
autoIncrement: true,
|
|
527
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
528
|
+
})
|
|
529
|
+
], msModule.prototype, "id", 2);
|
|
530
|
+
__decorateClass([
|
|
531
|
+
(0, import_sequelize_typescript9.Column)({
|
|
532
|
+
allowNull: true,
|
|
533
|
+
type: import_sequelize_typescript9.DataType.STRING(100)
|
|
534
|
+
})
|
|
535
|
+
], msModule.prototype, "name", 2);
|
|
536
|
+
__decorateClass([
|
|
537
|
+
(0, import_sequelize_typescript9.Column)({
|
|
538
|
+
field: "created_by",
|
|
539
|
+
allowNull: true,
|
|
540
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
541
|
+
})
|
|
542
|
+
], msModule.prototype, "createdBy", 2);
|
|
543
|
+
__decorateClass([
|
|
544
|
+
(0, import_sequelize_typescript9.Column)({
|
|
545
|
+
field: "created_date",
|
|
546
|
+
allowNull: true,
|
|
547
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
548
|
+
})
|
|
549
|
+
], msModule.prototype, "createdDate", 2);
|
|
550
|
+
__decorateClass([
|
|
551
|
+
(0, import_sequelize_typescript9.Column)({
|
|
552
|
+
field: "updated_by",
|
|
553
|
+
allowNull: true,
|
|
554
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
555
|
+
})
|
|
556
|
+
], msModule.prototype, "updatedBy", 2);
|
|
557
|
+
__decorateClass([
|
|
558
|
+
(0, import_sequelize_typescript9.Column)({
|
|
559
|
+
field: "updated_date",
|
|
560
|
+
allowNull: true,
|
|
561
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
562
|
+
})
|
|
563
|
+
], msModule.prototype, "updatedDate", 2);
|
|
564
|
+
msModule = __decorateClass([
|
|
565
|
+
(0, import_sequelize_typescript9.Table)({
|
|
566
|
+
tableName: "ms_module",
|
|
567
|
+
timestamps: false
|
|
568
|
+
})
|
|
569
|
+
], msModule);
|
|
570
|
+
|
|
571
|
+
// src/databases/models/users.ts
|
|
572
|
+
var import_sequelize_typescript10 = require("sequelize-typescript");
|
|
573
|
+
var users = class extends import_sequelize_typescript10.Model {
|
|
574
|
+
};
|
|
575
|
+
__decorateClass([
|
|
576
|
+
(0, import_sequelize_typescript10.Column)({
|
|
577
|
+
primaryKey: true,
|
|
578
|
+
autoIncrement: true,
|
|
579
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
580
|
+
})
|
|
581
|
+
], users.prototype, "id", 2);
|
|
582
|
+
__decorateClass([
|
|
583
|
+
(0, import_sequelize_typescript10.Column)({
|
|
584
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
585
|
+
})
|
|
586
|
+
], users.prototype, "uuid", 2);
|
|
587
|
+
__decorateClass([
|
|
588
|
+
(0, import_sequelize_typescript10.Column)({
|
|
589
|
+
allowNull: true,
|
|
590
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
591
|
+
})
|
|
592
|
+
], users.prototype, "username", 2);
|
|
593
|
+
__decorateClass([
|
|
594
|
+
(0, import_sequelize_typescript10.Column)({
|
|
595
|
+
field: "password_hash",
|
|
596
|
+
allowNull: true,
|
|
597
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
598
|
+
})
|
|
599
|
+
], users.prototype, "passwordHash", 2);
|
|
600
|
+
__decorateClass([
|
|
601
|
+
(0, import_sequelize_typescript10.Column)({
|
|
602
|
+
field: "password_reset_token",
|
|
603
|
+
allowNull: true,
|
|
604
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
605
|
+
})
|
|
606
|
+
], users.prototype, "passwordResetToken", 2);
|
|
607
|
+
__decorateClass([
|
|
608
|
+
(0, import_sequelize_typescript10.Column)({
|
|
609
|
+
field: "verification_token",
|
|
610
|
+
allowNull: true,
|
|
611
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
612
|
+
})
|
|
613
|
+
], users.prototype, "verificationToken", 2);
|
|
614
|
+
__decorateClass([
|
|
615
|
+
(0, import_sequelize_typescript10.Column)({
|
|
616
|
+
allowNull: true,
|
|
617
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
618
|
+
})
|
|
619
|
+
], users.prototype, "email", 2);
|
|
620
|
+
__decorateClass([
|
|
621
|
+
(0, import_sequelize_typescript10.Column)({
|
|
622
|
+
field: "auth_key",
|
|
623
|
+
allowNull: true,
|
|
624
|
+
type: import_sequelize_typescript10.DataType.STRING(32)
|
|
625
|
+
})
|
|
626
|
+
], users.prototype, "authKey", 2);
|
|
627
|
+
__decorateClass([
|
|
628
|
+
(0, import_sequelize_typescript10.Column)({
|
|
629
|
+
field: "access_token",
|
|
630
|
+
allowNull: true,
|
|
631
|
+
type: import_sequelize_typescript10.DataType.STRING
|
|
632
|
+
})
|
|
633
|
+
], users.prototype, "accessToken", 2);
|
|
634
|
+
__decorateClass([
|
|
635
|
+
(0, import_sequelize_typescript10.Column)({
|
|
636
|
+
field: "user_level",
|
|
637
|
+
allowNull: true,
|
|
638
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
639
|
+
})
|
|
640
|
+
], users.prototype, "userLevel", 2);
|
|
641
|
+
__decorateClass([
|
|
642
|
+
(0, import_sequelize_typescript10.Column)({
|
|
643
|
+
field: "user_authen",
|
|
644
|
+
allowNull: true,
|
|
645
|
+
type: import_sequelize_typescript10.DataType.STRING(64)
|
|
646
|
+
})
|
|
647
|
+
], users.prototype, "userAuthen", 2);
|
|
648
|
+
__decorateClass([
|
|
649
|
+
(0, import_sequelize_typescript10.Column)({
|
|
650
|
+
field: "user_type",
|
|
651
|
+
allowNull: true,
|
|
652
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
653
|
+
})
|
|
654
|
+
], users.prototype, "userType", 2);
|
|
655
|
+
__decorateClass([
|
|
656
|
+
(0, import_sequelize_typescript10.Column)({
|
|
657
|
+
allowNull: true,
|
|
658
|
+
type: import_sequelize_typescript10.DataType.STRING(10)
|
|
659
|
+
})
|
|
660
|
+
], users.prototype, "prefix", 2);
|
|
661
|
+
__decorateClass([
|
|
662
|
+
(0, import_sequelize_typescript10.Column)({
|
|
663
|
+
field: "first_name",
|
|
664
|
+
allowNull: true,
|
|
665
|
+
type: import_sequelize_typescript10.DataType.STRING(100)
|
|
666
|
+
})
|
|
667
|
+
], users.prototype, "firstName", 2);
|
|
668
|
+
__decorateClass([
|
|
669
|
+
(0, import_sequelize_typescript10.Column)({
|
|
670
|
+
field: "last_name",
|
|
671
|
+
allowNull: true,
|
|
672
|
+
type: import_sequelize_typescript10.DataType.STRING(100)
|
|
673
|
+
})
|
|
674
|
+
], users.prototype, "lastName", 2);
|
|
675
|
+
__decorateClass([
|
|
676
|
+
(0, import_sequelize_typescript10.Column)({
|
|
677
|
+
allowNull: true,
|
|
678
|
+
type: import_sequelize_typescript10.DataType.STRING(20)
|
|
679
|
+
})
|
|
680
|
+
], users.prototype, "phone", 2);
|
|
681
|
+
__decorateClass([
|
|
682
|
+
(0, import_sequelize_typescript10.Column)({
|
|
683
|
+
allowNull: true,
|
|
684
|
+
type: import_sequelize_typescript10.DataType.SMALLINT
|
|
685
|
+
})
|
|
686
|
+
], users.prototype, "status", 2);
|
|
687
|
+
__decorateClass([
|
|
688
|
+
(0, import_sequelize_typescript10.Column)({
|
|
689
|
+
field: "created_by",
|
|
690
|
+
allowNull: true,
|
|
691
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
692
|
+
})
|
|
693
|
+
], users.prototype, "createdBy", 2);
|
|
694
|
+
__decorateClass([
|
|
695
|
+
(0, import_sequelize_typescript10.Column)({
|
|
696
|
+
field: "created_date",
|
|
697
|
+
allowNull: true,
|
|
698
|
+
type: import_sequelize_typescript10.DataType.DATE
|
|
699
|
+
})
|
|
700
|
+
], users.prototype, "createdDate", 2);
|
|
701
|
+
__decorateClass([
|
|
702
|
+
(0, import_sequelize_typescript10.Column)({
|
|
703
|
+
field: "updated_by",
|
|
704
|
+
allowNull: true,
|
|
705
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
706
|
+
})
|
|
707
|
+
], users.prototype, "updatedBy", 2);
|
|
708
|
+
__decorateClass([
|
|
709
|
+
(0, import_sequelize_typescript10.Column)({
|
|
710
|
+
field: "updated_date",
|
|
711
|
+
allowNull: true,
|
|
712
|
+
type: import_sequelize_typescript10.DataType.DATE
|
|
713
|
+
})
|
|
714
|
+
], users.prototype, "updatedDate", 2);
|
|
715
|
+
users = __decorateClass([
|
|
716
|
+
(0, import_sequelize_typescript10.Table)({
|
|
717
|
+
tableName: "users",
|
|
718
|
+
timestamps: false
|
|
719
|
+
})
|
|
720
|
+
], users);
|
|
721
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
722
|
+
0 && (module.exports = {
|
|
723
|
+
authAssignment,
|
|
724
|
+
authItem,
|
|
725
|
+
authItemChild,
|
|
726
|
+
authRole,
|
|
727
|
+
authRoleChild,
|
|
728
|
+
mdContent,
|
|
729
|
+
mdContentGroup,
|
|
730
|
+
menu,
|
|
731
|
+
msModule,
|
|
732
|
+
users
|
|
733
|
+
});
|