@admc-go-th/admc-library 1.0.13 → 1.0.14
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/authAssignment-B6rhOsb-.d.ts +146 -0
- package/authItem-23raYvdO.d.ts +39 -0
- package/databases/models/authAssignment.d.ts +2 -20
- package/databases/models/authAssignment.js +422 -11
- package/databases/models/authItem.d.ts +3 -26
- package/databases/models/authItem.js +194 -19
- package/databases/models/authItemChild.d.ts +3 -12
- package/databases/models/authItemChild.js +228 -5
- package/databases/models/authRole.d.ts +2 -20
- package/databases/models/authRole.js +422 -7
- package/databases/models/index.d.ts +3 -9
- package/databases/models/index.js +413 -341
- package/databases/models/mdContent.d.ts +2 -38
- package/databases/models/mdContent.js +383 -30
- package/databases/models/mdContentGroup.d.ts +2 -22
- package/databases/models/mdContentGroup.js +422 -13
- package/databases/models/menu.d.ts +2 -26
- package/databases/models/menu.js +81 -17
- package/databases/models/msModule.d.ts +2 -20
- package/databases/models/msModule.js +91 -7
- package/databases/models/users.d.ts +2 -50
- package/databases/models/users.js +355 -41
- package/databases/schema/authAssignment.ts +72 -0
- package/databases/schema/authItem.ts +93 -0
- package/databases/schema/authItemChild.ts +34 -0
- package/databases/schema/authRole.ts +66 -0
- package/databases/schema/authRoleChild.ts +37 -0
- package/databases/schema/index.ts +10 -0
- package/databases/schema/mdContent.ts +139 -0
- package/databases/schema/mdContentGroup.ts +73 -0
- package/databases/schema/menu.ts +93 -0
- package/databases/schema/msModule.ts +66 -0
- package/databases/schema/users.ts +186 -0
- package/menu-7H-HhIig.d.ts +45 -0
- package/package.json +4 -2
|
@@ -31,8 +31,20 @@ __export(authRole_exports, {
|
|
|
31
31
|
authRole: () => authRole
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(authRole_exports);
|
|
34
|
+
var import_sequelize_typescript5 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/models/authAssignment.ts
|
|
37
|
+
var import_sequelize_typescript4 = require("sequelize-typescript");
|
|
38
|
+
|
|
39
|
+
// src/databases/models/users.ts
|
|
40
|
+
var import_sequelize_typescript3 = require("sequelize-typescript");
|
|
41
|
+
|
|
42
|
+
// src/databases/models/mdContent.ts
|
|
43
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
44
|
+
|
|
45
|
+
// src/databases/models/mdContentGroup.ts
|
|
34
46
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
47
|
+
var mdContentGroup = class extends import_sequelize_typescript.Model {
|
|
36
48
|
};
|
|
37
49
|
__decorateClass([
|
|
38
50
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -40,42 +52,445 @@ __decorateClass([
|
|
|
40
52
|
autoIncrement: true,
|
|
41
53
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
54
|
})
|
|
43
|
-
],
|
|
55
|
+
], mdContentGroup.prototype, "id", 2);
|
|
44
56
|
__decorateClass([
|
|
45
57
|
(0, import_sequelize_typescript.Column)({
|
|
46
58
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
47
59
|
})
|
|
48
|
-
],
|
|
60
|
+
], mdContentGroup.prototype, "name", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
(0, import_sequelize_typescript.Column)({
|
|
63
|
+
allowNull: true,
|
|
64
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
65
|
+
})
|
|
66
|
+
], mdContentGroup.prototype, "description", 2);
|
|
49
67
|
__decorateClass([
|
|
50
68
|
(0, import_sequelize_typescript.Column)({
|
|
51
69
|
field: "created_by",
|
|
52
70
|
allowNull: true,
|
|
53
71
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
54
72
|
})
|
|
55
|
-
],
|
|
73
|
+
], mdContentGroup.prototype, "createdBy", 2);
|
|
56
74
|
__decorateClass([
|
|
57
75
|
(0, import_sequelize_typescript.Column)({
|
|
58
76
|
field: "created_date",
|
|
59
77
|
allowNull: true,
|
|
60
78
|
type: import_sequelize_typescript.DataType.DATE
|
|
61
79
|
})
|
|
62
|
-
],
|
|
80
|
+
], mdContentGroup.prototype, "createdDate", 2);
|
|
63
81
|
__decorateClass([
|
|
64
82
|
(0, import_sequelize_typescript.Column)({
|
|
65
83
|
field: "updated_by",
|
|
66
84
|
allowNull: true,
|
|
67
85
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
68
86
|
})
|
|
69
|
-
],
|
|
87
|
+
], mdContentGroup.prototype, "updatedBy", 2);
|
|
70
88
|
__decorateClass([
|
|
71
89
|
(0, import_sequelize_typescript.Column)({
|
|
72
90
|
field: "updated_date",
|
|
73
91
|
allowNull: true,
|
|
74
92
|
type: import_sequelize_typescript.DataType.DATE
|
|
75
93
|
})
|
|
94
|
+
], mdContentGroup.prototype, "updatedDate", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
(0, import_sequelize_typescript.HasMany)(() => mdContent, {
|
|
97
|
+
sourceKey: "id"
|
|
98
|
+
})
|
|
99
|
+
], mdContentGroup.prototype, "mdContents", 2);
|
|
100
|
+
mdContentGroup = __decorateClass([
|
|
101
|
+
(0, import_sequelize_typescript.Table)({
|
|
102
|
+
tableName: "md_content_group",
|
|
103
|
+
timestamps: false
|
|
104
|
+
})
|
|
105
|
+
], mdContentGroup);
|
|
106
|
+
|
|
107
|
+
// src/databases/models/mdContent.ts
|
|
108
|
+
var mdContent = class extends import_sequelize_typescript2.Model {
|
|
109
|
+
};
|
|
110
|
+
__decorateClass([
|
|
111
|
+
(0, import_sequelize_typescript2.Column)({
|
|
112
|
+
primaryKey: true,
|
|
113
|
+
autoIncrement: true,
|
|
114
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
115
|
+
})
|
|
116
|
+
], mdContent.prototype, "id", 2);
|
|
117
|
+
__decorateClass([
|
|
118
|
+
(0, import_sequelize_typescript2.Column)({
|
|
119
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
120
|
+
})
|
|
121
|
+
], mdContent.prototype, "uuid", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
(0, import_sequelize_typescript2.ForeignKey)(() => mdContentGroup),
|
|
124
|
+
(0, import_sequelize_typescript2.Column)({
|
|
125
|
+
field: "group_id",
|
|
126
|
+
allowNull: true,
|
|
127
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
128
|
+
})
|
|
129
|
+
], mdContent.prototype, "groupId", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
(0, import_sequelize_typescript2.ForeignKey)(() => users),
|
|
132
|
+
(0, import_sequelize_typescript2.Column)({
|
|
133
|
+
field: "user_id",
|
|
134
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
135
|
+
})
|
|
136
|
+
], mdContent.prototype, "userId", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
(0, import_sequelize_typescript2.Column)({
|
|
139
|
+
allowNull: true,
|
|
140
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
141
|
+
})
|
|
142
|
+
], mdContent.prototype, "title", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
(0, import_sequelize_typescript2.Column)({
|
|
145
|
+
allowNull: true,
|
|
146
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
147
|
+
})
|
|
148
|
+
], mdContent.prototype, "detail", 2);
|
|
149
|
+
__decorateClass([
|
|
150
|
+
(0, import_sequelize_typescript2.Column)({
|
|
151
|
+
field: "meta_title",
|
|
152
|
+
allowNull: true,
|
|
153
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
154
|
+
})
|
|
155
|
+
], mdContent.prototype, "metaTitle", 2);
|
|
156
|
+
__decorateClass([
|
|
157
|
+
(0, import_sequelize_typescript2.Column)({
|
|
158
|
+
field: "meta_keyword",
|
|
159
|
+
allowNull: true,
|
|
160
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
161
|
+
})
|
|
162
|
+
], mdContent.prototype, "metaKeyword", 2);
|
|
163
|
+
__decorateClass([
|
|
164
|
+
(0, import_sequelize_typescript2.Column)({
|
|
165
|
+
field: "meta_description",
|
|
166
|
+
allowNull: true,
|
|
167
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
168
|
+
})
|
|
169
|
+
], mdContent.prototype, "metaDescription", 2);
|
|
170
|
+
__decorateClass([
|
|
171
|
+
(0, import_sequelize_typescript2.Column)({
|
|
172
|
+
field: "image_cover",
|
|
173
|
+
allowNull: true,
|
|
174
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
175
|
+
})
|
|
176
|
+
], mdContent.prototype, "imageCover", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
(0, import_sequelize_typescript2.Column)({
|
|
179
|
+
field: "image_gallery",
|
|
180
|
+
allowNull: true,
|
|
181
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
182
|
+
})
|
|
183
|
+
], mdContent.prototype, "imageGallery", 2);
|
|
184
|
+
__decorateClass([
|
|
185
|
+
(0, import_sequelize_typescript2.Column)({
|
|
186
|
+
field: "created_by",
|
|
187
|
+
allowNull: true,
|
|
188
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
189
|
+
})
|
|
190
|
+
], mdContent.prototype, "createdBy", 2);
|
|
191
|
+
__decorateClass([
|
|
192
|
+
(0, import_sequelize_typescript2.Column)({
|
|
193
|
+
field: "created_date",
|
|
194
|
+
allowNull: true,
|
|
195
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
196
|
+
})
|
|
197
|
+
], mdContent.prototype, "createdDate", 2);
|
|
198
|
+
__decorateClass([
|
|
199
|
+
(0, import_sequelize_typescript2.Column)({
|
|
200
|
+
field: "updated_by",
|
|
201
|
+
allowNull: true,
|
|
202
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
203
|
+
})
|
|
204
|
+
], mdContent.prototype, "updatedBy", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
(0, import_sequelize_typescript2.Column)({
|
|
207
|
+
field: "updated_date",
|
|
208
|
+
allowNull: true,
|
|
209
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
210
|
+
})
|
|
211
|
+
], mdContent.prototype, "updatedDate", 2);
|
|
212
|
+
__decorateClass([
|
|
213
|
+
(0, import_sequelize_typescript2.BelongsTo)(() => users)
|
|
214
|
+
], mdContent.prototype, "user", 2);
|
|
215
|
+
__decorateClass([
|
|
216
|
+
(0, import_sequelize_typescript2.BelongsTo)(() => mdContentGroup)
|
|
217
|
+
], mdContent.prototype, "mdContentGroup", 2);
|
|
218
|
+
mdContent = __decorateClass([
|
|
219
|
+
(0, import_sequelize_typescript2.Table)({
|
|
220
|
+
tableName: "md_content",
|
|
221
|
+
timestamps: false
|
|
222
|
+
})
|
|
223
|
+
], mdContent);
|
|
224
|
+
|
|
225
|
+
// src/databases/models/users.ts
|
|
226
|
+
var users = class extends import_sequelize_typescript3.Model {
|
|
227
|
+
};
|
|
228
|
+
__decorateClass([
|
|
229
|
+
(0, import_sequelize_typescript3.Column)({
|
|
230
|
+
primaryKey: true,
|
|
231
|
+
autoIncrement: true,
|
|
232
|
+
type: import_sequelize_typescript3.DataType.INTEGER
|
|
233
|
+
})
|
|
234
|
+
], users.prototype, "id", 2);
|
|
235
|
+
__decorateClass([
|
|
236
|
+
(0, import_sequelize_typescript3.Column)({
|
|
237
|
+
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
238
|
+
})
|
|
239
|
+
], users.prototype, "uuid", 2);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
(0, import_sequelize_typescript3.Column)({
|
|
242
|
+
type: import_sequelize_typescript3.DataType.STRING(100)
|
|
243
|
+
})
|
|
244
|
+
], users.prototype, "username", 2);
|
|
245
|
+
__decorateClass([
|
|
246
|
+
(0, import_sequelize_typescript3.Column)({
|
|
247
|
+
field: "password_hash",
|
|
248
|
+
allowNull: true,
|
|
249
|
+
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
250
|
+
})
|
|
251
|
+
], users.prototype, "passwordHash", 2);
|
|
252
|
+
__decorateClass([
|
|
253
|
+
(0, import_sequelize_typescript3.Column)({
|
|
254
|
+
field: "password_reset_token",
|
|
255
|
+
allowNull: true,
|
|
256
|
+
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
257
|
+
})
|
|
258
|
+
], users.prototype, "passwordResetToken", 2);
|
|
259
|
+
__decorateClass([
|
|
260
|
+
(0, import_sequelize_typescript3.Column)({
|
|
261
|
+
field: "verification_token",
|
|
262
|
+
allowNull: true,
|
|
263
|
+
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
264
|
+
})
|
|
265
|
+
], users.prototype, "verificationToken", 2);
|
|
266
|
+
__decorateClass([
|
|
267
|
+
(0, import_sequelize_typescript3.Column)({
|
|
268
|
+
allowNull: true,
|
|
269
|
+
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
270
|
+
})
|
|
271
|
+
], users.prototype, "email", 2);
|
|
272
|
+
__decorateClass([
|
|
273
|
+
(0, import_sequelize_typescript3.Column)({
|
|
274
|
+
field: "auth_key",
|
|
275
|
+
allowNull: true,
|
|
276
|
+
type: import_sequelize_typescript3.DataType.STRING(32)
|
|
277
|
+
})
|
|
278
|
+
], users.prototype, "authKey", 2);
|
|
279
|
+
__decorateClass([
|
|
280
|
+
(0, import_sequelize_typescript3.Column)({
|
|
281
|
+
field: "access_token",
|
|
282
|
+
allowNull: true,
|
|
283
|
+
type: import_sequelize_typescript3.DataType.STRING
|
|
284
|
+
})
|
|
285
|
+
], users.prototype, "accessToken", 2);
|
|
286
|
+
__decorateClass([
|
|
287
|
+
(0, import_sequelize_typescript3.Column)({
|
|
288
|
+
field: "user_level",
|
|
289
|
+
allowNull: true,
|
|
290
|
+
type: import_sequelize_typescript3.DataType.INTEGER
|
|
291
|
+
})
|
|
292
|
+
], users.prototype, "userLevel", 2);
|
|
293
|
+
__decorateClass([
|
|
294
|
+
(0, import_sequelize_typescript3.Column)({
|
|
295
|
+
field: "user_authen",
|
|
296
|
+
allowNull: true,
|
|
297
|
+
type: import_sequelize_typescript3.DataType.STRING(64)
|
|
298
|
+
})
|
|
299
|
+
], users.prototype, "userAuthen", 2);
|
|
300
|
+
__decorateClass([
|
|
301
|
+
(0, import_sequelize_typescript3.Column)({
|
|
302
|
+
field: "user_type",
|
|
303
|
+
allowNull: true,
|
|
304
|
+
type: import_sequelize_typescript3.DataType.INTEGER
|
|
305
|
+
})
|
|
306
|
+
], users.prototype, "userType", 2);
|
|
307
|
+
__decorateClass([
|
|
308
|
+
(0, import_sequelize_typescript3.Column)({
|
|
309
|
+
allowNull: true,
|
|
310
|
+
type: import_sequelize_typescript3.DataType.STRING(10)
|
|
311
|
+
})
|
|
312
|
+
], users.prototype, "prefix", 2);
|
|
313
|
+
__decorateClass([
|
|
314
|
+
(0, import_sequelize_typescript3.Column)({
|
|
315
|
+
field: "first_name",
|
|
316
|
+
allowNull: true,
|
|
317
|
+
type: import_sequelize_typescript3.DataType.STRING(100)
|
|
318
|
+
})
|
|
319
|
+
], users.prototype, "firstName", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
(0, import_sequelize_typescript3.Column)({
|
|
322
|
+
field: "last_name",
|
|
323
|
+
allowNull: true,
|
|
324
|
+
type: import_sequelize_typescript3.DataType.STRING(100)
|
|
325
|
+
})
|
|
326
|
+
], users.prototype, "lastName", 2);
|
|
327
|
+
__decorateClass([
|
|
328
|
+
(0, import_sequelize_typescript3.Column)({
|
|
329
|
+
allowNull: true,
|
|
330
|
+
type: import_sequelize_typescript3.DataType.STRING(20)
|
|
331
|
+
})
|
|
332
|
+
], users.prototype, "phone", 2);
|
|
333
|
+
__decorateClass([
|
|
334
|
+
(0, import_sequelize_typescript3.Column)({
|
|
335
|
+
allowNull: true,
|
|
336
|
+
type: import_sequelize_typescript3.DataType.SMALLINT
|
|
337
|
+
})
|
|
338
|
+
], users.prototype, "status", 2);
|
|
339
|
+
__decorateClass([
|
|
340
|
+
(0, import_sequelize_typescript3.Column)({
|
|
341
|
+
field: "created_by",
|
|
342
|
+
allowNull: true,
|
|
343
|
+
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
344
|
+
})
|
|
345
|
+
], users.prototype, "createdBy", 2);
|
|
346
|
+
__decorateClass([
|
|
347
|
+
(0, import_sequelize_typescript3.Column)({
|
|
348
|
+
field: "created_date",
|
|
349
|
+
allowNull: true,
|
|
350
|
+
type: import_sequelize_typescript3.DataType.DATE
|
|
351
|
+
})
|
|
352
|
+
], users.prototype, "createdDate", 2);
|
|
353
|
+
__decorateClass([
|
|
354
|
+
(0, import_sequelize_typescript3.Column)({
|
|
355
|
+
field: "updated_by",
|
|
356
|
+
allowNull: true,
|
|
357
|
+
type: import_sequelize_typescript3.DataType.STRING(60)
|
|
358
|
+
})
|
|
359
|
+
], users.prototype, "updatedBy", 2);
|
|
360
|
+
__decorateClass([
|
|
361
|
+
(0, import_sequelize_typescript3.Column)({
|
|
362
|
+
field: "updated_date",
|
|
363
|
+
allowNull: true,
|
|
364
|
+
type: import_sequelize_typescript3.DataType.DATE
|
|
365
|
+
})
|
|
366
|
+
], users.prototype, "updatedDate", 2);
|
|
367
|
+
__decorateClass([
|
|
368
|
+
(0, import_sequelize_typescript3.HasMany)(() => authAssignment, {
|
|
369
|
+
sourceKey: "id"
|
|
370
|
+
})
|
|
371
|
+
], users.prototype, "authAssignments", 2);
|
|
372
|
+
__decorateClass([
|
|
373
|
+
(0, import_sequelize_typescript3.HasMany)(() => mdContent, {
|
|
374
|
+
sourceKey: "id"
|
|
375
|
+
})
|
|
376
|
+
], users.prototype, "mdContents", 2);
|
|
377
|
+
users = __decorateClass([
|
|
378
|
+
(0, import_sequelize_typescript3.Table)({
|
|
379
|
+
tableName: "users",
|
|
380
|
+
timestamps: false
|
|
381
|
+
})
|
|
382
|
+
], users);
|
|
383
|
+
|
|
384
|
+
// src/databases/models/authAssignment.ts
|
|
385
|
+
var authAssignment = class extends import_sequelize_typescript4.Model {
|
|
386
|
+
};
|
|
387
|
+
__decorateClass([
|
|
388
|
+
(0, import_sequelize_typescript4.ForeignKey)(() => authRole),
|
|
389
|
+
(0, import_sequelize_typescript4.Column)({
|
|
390
|
+
field: "role_id",
|
|
391
|
+
primaryKey: true,
|
|
392
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
393
|
+
})
|
|
394
|
+
], authAssignment.prototype, "roleId", 2);
|
|
395
|
+
__decorateClass([
|
|
396
|
+
(0, import_sequelize_typescript4.ForeignKey)(() => users),
|
|
397
|
+
(0, import_sequelize_typescript4.Column)({
|
|
398
|
+
field: "user_id",
|
|
399
|
+
primaryKey: true,
|
|
400
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
401
|
+
})
|
|
402
|
+
], authAssignment.prototype, "userId", 2);
|
|
403
|
+
__decorateClass([
|
|
404
|
+
(0, import_sequelize_typescript4.Column)({
|
|
405
|
+
field: "created_by",
|
|
406
|
+
allowNull: true,
|
|
407
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
408
|
+
})
|
|
409
|
+
], authAssignment.prototype, "createdBy", 2);
|
|
410
|
+
__decorateClass([
|
|
411
|
+
(0, import_sequelize_typescript4.Column)({
|
|
412
|
+
field: "created_date",
|
|
413
|
+
allowNull: true,
|
|
414
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
415
|
+
})
|
|
416
|
+
], authAssignment.prototype, "createdDate", 2);
|
|
417
|
+
__decorateClass([
|
|
418
|
+
(0, import_sequelize_typescript4.Column)({
|
|
419
|
+
field: "updated_by",
|
|
420
|
+
allowNull: true,
|
|
421
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
422
|
+
})
|
|
423
|
+
], authAssignment.prototype, "updatedBy", 2);
|
|
424
|
+
__decorateClass([
|
|
425
|
+
(0, import_sequelize_typescript4.Column)({
|
|
426
|
+
field: "updated_date",
|
|
427
|
+
allowNull: true,
|
|
428
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
429
|
+
})
|
|
430
|
+
], authAssignment.prototype, "updatedDate", 2);
|
|
431
|
+
__decorateClass([
|
|
432
|
+
(0, import_sequelize_typescript4.BelongsTo)(() => users)
|
|
433
|
+
], authAssignment.prototype, "user", 2);
|
|
434
|
+
__decorateClass([
|
|
435
|
+
(0, import_sequelize_typescript4.BelongsTo)(() => authRole)
|
|
436
|
+
], authAssignment.prototype, "authRole", 2);
|
|
437
|
+
authAssignment = __decorateClass([
|
|
438
|
+
(0, import_sequelize_typescript4.Table)({
|
|
439
|
+
tableName: "auth_assignment",
|
|
440
|
+
timestamps: false
|
|
441
|
+
})
|
|
442
|
+
], authAssignment);
|
|
443
|
+
|
|
444
|
+
// src/databases/models/authRole.ts
|
|
445
|
+
var authRole = class extends import_sequelize_typescript5.Model {
|
|
446
|
+
};
|
|
447
|
+
__decorateClass([
|
|
448
|
+
(0, import_sequelize_typescript5.Column)({
|
|
449
|
+
primaryKey: true,
|
|
450
|
+
autoIncrement: true,
|
|
451
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
452
|
+
})
|
|
453
|
+
], authRole.prototype, "id", 2);
|
|
454
|
+
__decorateClass([
|
|
455
|
+
(0, import_sequelize_typescript5.Column)({
|
|
456
|
+
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
457
|
+
})
|
|
458
|
+
], authRole.prototype, "name", 2);
|
|
459
|
+
__decorateClass([
|
|
460
|
+
(0, import_sequelize_typescript5.Column)({
|
|
461
|
+
field: "created_by",
|
|
462
|
+
allowNull: true,
|
|
463
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
464
|
+
})
|
|
465
|
+
], authRole.prototype, "createdBy", 2);
|
|
466
|
+
__decorateClass([
|
|
467
|
+
(0, import_sequelize_typescript5.Column)({
|
|
468
|
+
field: "created_date",
|
|
469
|
+
allowNull: true,
|
|
470
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
471
|
+
})
|
|
472
|
+
], authRole.prototype, "createdDate", 2);
|
|
473
|
+
__decorateClass([
|
|
474
|
+
(0, import_sequelize_typescript5.Column)({
|
|
475
|
+
field: "updated_by",
|
|
476
|
+
allowNull: true,
|
|
477
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
478
|
+
})
|
|
479
|
+
], authRole.prototype, "updatedBy", 2);
|
|
480
|
+
__decorateClass([
|
|
481
|
+
(0, import_sequelize_typescript5.Column)({
|
|
482
|
+
field: "updated_date",
|
|
483
|
+
allowNull: true,
|
|
484
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
485
|
+
})
|
|
76
486
|
], authRole.prototype, "updatedDate", 2);
|
|
487
|
+
__decorateClass([
|
|
488
|
+
(0, import_sequelize_typescript5.HasMany)(() => authAssignment, {
|
|
489
|
+
sourceKey: "id"
|
|
490
|
+
})
|
|
491
|
+
], authRole.prototype, "authAssignments", 2);
|
|
77
492
|
authRole = __decorateClass([
|
|
78
|
-
(0,
|
|
493
|
+
(0, import_sequelize_typescript5.Table)({
|
|
79
494
|
tableName: "auth_role",
|
|
80
495
|
timestamps: false
|
|
81
496
|
})
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
export { authAssignment, authAssignmentAttributes } from '
|
|
2
|
-
export { authItem, authItemAttributes } from '
|
|
3
|
-
export { authItemChild, authItemChildAttributes } from './authItemChild.js';
|
|
4
|
-
export { authRole, authRoleAttributes } from './authRole.js';
|
|
1
|
+
export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, e as mdContent, m as mdContentAttributes, g as mdContentGroup, f as mdContentGroupAttributes, h as users, u as usersAttributes } from '../../authAssignment-B6rhOsb-.js';
|
|
2
|
+
export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes } from '../../authItem-23raYvdO.js';
|
|
5
3
|
export { authRoleChild, authRoleChildAttributes } from './authRoleChild.js';
|
|
6
|
-
export {
|
|
7
|
-
export { mdContentGroup, mdContentGroupAttributes } from './mdContentGroup.js';
|
|
8
|
-
export { menu, menuAttributes } from './menu.js';
|
|
9
|
-
export { msModule, msModuleAttributes } from './msModule.js';
|
|
10
|
-
export { users, usersAttributes } from './users.js';
|
|
4
|
+
export { a as menu, m as menuAttributes, c as msModule, b as msModuleAttributes } from '../../menu-7H-HhIig.js';
|
|
11
5
|
import 'sequelize-typescript';
|