@admc-go-th/admc-library 1.0.124 → 1.0.126
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/{appReportCorruption-4BY0wm49.d.ts → appReportCorruption-BsdsQQ1q.d.ts} +2 -0
- package/{authAssignment-BSZ2AlIE.d.ts → authAssignment-Te_XO-S8.d.ts} +28 -1
- package/databases/schema/appQueue.ts +15 -0
- package/databases/schema/appQueueTour.ts +7 -0
- package/databases/schema/appReportCorruption.ts +9 -1
- package/databases/schema/index.ts +5 -0
- package/databases/schema/mdQuestionnaire.ts +7 -1
- package/databases/schema/mdQuestionnaireData.ts +97 -0
- package/databases/schema/msConsultSiteChannel.ts +77 -0
- package/databases/schema/msConsultSiteHoliday.ts +99 -0
- package/databases/schema/msConsultSiteStaff.ts +76 -0
- package/databases/schema/msVariable.ts +68 -0
- package/databases/tables/appQueue.d.ts +4 -0
- package/databases/tables/appQueue.js +13 -0
- package/databases/tables/appQueueTour.d.ts +2 -0
- package/databases/tables/appQueueTour.js +6 -0
- package/databases/tables/appReportCorruption.d.ts +1 -1
- package/databases/tables/appReportCorruption.js +8 -1
- package/databases/tables/appReportCorruptionTransaction.d.ts +1 -1
- package/databases/tables/appReportCorruptionTransaction.js +8 -1
- package/databases/tables/authAssignment.d.ts +1 -1
- package/databases/tables/authAssignment.js +262 -172
- package/databases/tables/authRole.d.ts +1 -1
- package/databases/tables/authRole.js +262 -172
- package/databases/tables/authRoleChild.d.ts +1 -1
- package/databases/tables/authRoleChild.js +262 -172
- package/databases/tables/index.d.ts +6 -2
- package/databases/tables/index.js +2510 -2110
- package/databases/tables/mdContent.d.ts +1 -1
- package/databases/tables/mdContent.js +292 -202
- package/databases/tables/mdContentGroup.d.ts +1 -1
- package/databases/tables/mdContentGroup.js +292 -202
- package/databases/tables/mdQuestionnaire.d.ts +1 -1
- package/databases/tables/mdQuestionnaire.js +129 -41
- package/databases/tables/mdQuestionnaireData.d.ts +2 -0
- package/databases/tables/mdQuestionnaireData.js +992 -0
- package/databases/tables/msConsultSiteChannel.d.ts +24 -0
- package/databases/tables/msConsultSiteChannel.js +101 -0
- package/databases/tables/msConsultSiteHoliday.d.ts +30 -0
- package/databases/tables/msConsultSiteHoliday.js +120 -0
- package/databases/tables/msConsultSiteStaff.d.ts +24 -0
- package/databases/tables/msConsultSiteStaff.js +100 -0
- package/databases/tables/msVariable.d.ts +22 -0
- package/databases/tables/msVariable.js +93 -0
- package/databases/tables/users.d.ts +1 -1
- package/databases/tables/users.js +209 -119
- package/databases/tables/usersVerify.d.ts +1 -1
- package/databases/tables/usersVerify.js +209 -119
- package/package.json +1 -1
|
@@ -31,13 +31,13 @@ __export(mdContentGroup_exports, {
|
|
|
31
31
|
mdContentGroup: () => mdContentGroup
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(mdContentGroup_exports);
|
|
34
|
-
var
|
|
34
|
+
var import_sequelize_typescript9 = require("sequelize-typescript");
|
|
35
35
|
|
|
36
36
|
// src/databases/tables/mdContent.ts
|
|
37
|
-
var
|
|
37
|
+
var import_sequelize_typescript8 = require("sequelize-typescript");
|
|
38
38
|
|
|
39
39
|
// src/databases/tables/users.ts
|
|
40
|
-
var
|
|
40
|
+
var import_sequelize_typescript7 = require("sequelize-typescript");
|
|
41
41
|
|
|
42
42
|
// src/databases/tables/authAssignment.ts
|
|
43
43
|
var import_sequelize_typescript3 = require("sequelize-typescript");
|
|
@@ -218,8 +218,11 @@ authAssignment = __decorateClass([
|
|
|
218
218
|
], authAssignment);
|
|
219
219
|
|
|
220
220
|
// src/databases/tables/mdQuestionnaire.ts
|
|
221
|
+
var import_sequelize_typescript5 = require("sequelize-typescript");
|
|
222
|
+
|
|
223
|
+
// src/databases/tables/mdQuestionnaireData.ts
|
|
221
224
|
var import_sequelize_typescript4 = require("sequelize-typescript");
|
|
222
|
-
var
|
|
225
|
+
var mdQuestionnaireData = class extends import_sequelize_typescript4.Model {
|
|
223
226
|
};
|
|
224
227
|
__decorateClass([
|
|
225
228
|
(0, import_sequelize_typescript4.Column)({
|
|
@@ -227,671 +230,758 @@ __decorateClass([
|
|
|
227
230
|
autoIncrement: true,
|
|
228
231
|
type: import_sequelize_typescript4.DataType.INTEGER
|
|
229
232
|
})
|
|
230
|
-
],
|
|
233
|
+
], mdQuestionnaireData.prototype, "id", 2);
|
|
231
234
|
__decorateClass([
|
|
232
235
|
(0, import_sequelize_typescript4.Column)({
|
|
233
236
|
allowNull: true,
|
|
234
237
|
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
235
238
|
})
|
|
236
|
-
],
|
|
239
|
+
], mdQuestionnaireData.prototype, "uuid", 2);
|
|
237
240
|
__decorateClass([
|
|
241
|
+
(0, import_sequelize_typescript4.ForeignKey)(() => mdQuestionnaire),
|
|
238
242
|
(0, import_sequelize_typescript4.Column)({
|
|
239
|
-
field: "
|
|
243
|
+
field: "questionnaire_id",
|
|
240
244
|
allowNull: true,
|
|
241
|
-
type: import_sequelize_typescript4.DataType.
|
|
245
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
242
246
|
})
|
|
243
|
-
],
|
|
247
|
+
], mdQuestionnaireData.prototype, "questionnaireId", 2);
|
|
248
|
+
__decorateClass([
|
|
249
|
+
(0, import_sequelize_typescript4.Column)({
|
|
250
|
+
field: "data_info",
|
|
251
|
+
allowNull: true,
|
|
252
|
+
type: import_sequelize_typescript4.DataType.JSON
|
|
253
|
+
})
|
|
254
|
+
], mdQuestionnaireData.prototype, "dataInfo", 2);
|
|
244
255
|
__decorateClass([
|
|
245
|
-
(0, import_sequelize_typescript4.ForeignKey)(() => users),
|
|
246
256
|
(0, import_sequelize_typescript4.Column)({
|
|
247
|
-
field: "user_id",
|
|
248
257
|
allowNull: true,
|
|
249
258
|
type: import_sequelize_typescript4.DataType.INTEGER
|
|
250
259
|
})
|
|
251
|
-
],
|
|
260
|
+
], mdQuestionnaireData.prototype, "status", 2);
|
|
252
261
|
__decorateClass([
|
|
253
262
|
(0, import_sequelize_typescript4.Column)({
|
|
263
|
+
field: "ip_address",
|
|
254
264
|
allowNull: true,
|
|
255
265
|
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
256
266
|
})
|
|
257
|
-
],
|
|
267
|
+
], mdQuestionnaireData.prototype, "ipAddress", 2);
|
|
258
268
|
__decorateClass([
|
|
259
269
|
(0, import_sequelize_typescript4.Column)({
|
|
270
|
+
field: "created_by",
|
|
260
271
|
allowNull: true,
|
|
261
|
-
type: import_sequelize_typescript4.DataType.STRING
|
|
272
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
262
273
|
})
|
|
263
|
-
],
|
|
274
|
+
], mdQuestionnaireData.prototype, "createdBy", 2);
|
|
264
275
|
__decorateClass([
|
|
265
276
|
(0, import_sequelize_typescript4.Column)({
|
|
277
|
+
field: "created_date",
|
|
266
278
|
allowNull: true,
|
|
267
|
-
type: import_sequelize_typescript4.DataType.
|
|
279
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
268
280
|
})
|
|
269
|
-
],
|
|
281
|
+
], mdQuestionnaireData.prototype, "createdDate", 2);
|
|
282
|
+
__decorateClass([
|
|
283
|
+
(0, import_sequelize_typescript4.Column)({
|
|
284
|
+
field: "updated_by",
|
|
285
|
+
allowNull: true,
|
|
286
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
287
|
+
})
|
|
288
|
+
], mdQuestionnaireData.prototype, "updatedBy", 2);
|
|
270
289
|
__decorateClass([
|
|
271
290
|
(0, import_sequelize_typescript4.Column)({
|
|
291
|
+
field: "updated_date",
|
|
292
|
+
allowNull: true,
|
|
293
|
+
type: import_sequelize_typescript4.DataType.DATE
|
|
294
|
+
})
|
|
295
|
+
], mdQuestionnaireData.prototype, "updatedDate", 2);
|
|
296
|
+
__decorateClass([
|
|
297
|
+
(0, import_sequelize_typescript4.BelongsTo)(() => mdQuestionnaire)
|
|
298
|
+
], mdQuestionnaireData.prototype, "mdQuestionnaire", 2);
|
|
299
|
+
mdQuestionnaireData = __decorateClass([
|
|
300
|
+
(0, import_sequelize_typescript4.Table)({
|
|
301
|
+
tableName: "md_questionnaire_data",
|
|
302
|
+
timestamps: false
|
|
303
|
+
})
|
|
304
|
+
], mdQuestionnaireData);
|
|
305
|
+
|
|
306
|
+
// src/databases/tables/mdQuestionnaire.ts
|
|
307
|
+
var mdQuestionnaire = class extends import_sequelize_typescript5.Model {
|
|
308
|
+
};
|
|
309
|
+
__decorateClass([
|
|
310
|
+
(0, import_sequelize_typescript5.Column)({
|
|
311
|
+
primaryKey: true,
|
|
312
|
+
autoIncrement: true,
|
|
313
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
314
|
+
})
|
|
315
|
+
], mdQuestionnaire.prototype, "id", 2);
|
|
316
|
+
__decorateClass([
|
|
317
|
+
(0, import_sequelize_typescript5.Column)({
|
|
318
|
+
allowNull: true,
|
|
319
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
320
|
+
})
|
|
321
|
+
], mdQuestionnaire.prototype, "uuid", 2);
|
|
322
|
+
__decorateClass([
|
|
323
|
+
(0, import_sequelize_typescript5.Column)({
|
|
324
|
+
field: "key_name",
|
|
325
|
+
allowNull: true,
|
|
326
|
+
type: import_sequelize_typescript5.DataType.STRING(100)
|
|
327
|
+
})
|
|
328
|
+
], mdQuestionnaire.prototype, "keyName", 2);
|
|
329
|
+
__decorateClass([
|
|
330
|
+
(0, import_sequelize_typescript5.ForeignKey)(() => users),
|
|
331
|
+
(0, import_sequelize_typescript5.Column)({
|
|
332
|
+
field: "user_id",
|
|
333
|
+
allowNull: true,
|
|
334
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
335
|
+
})
|
|
336
|
+
], mdQuestionnaire.prototype, "userId", 2);
|
|
337
|
+
__decorateClass([
|
|
338
|
+
(0, import_sequelize_typescript5.Column)({
|
|
339
|
+
allowNull: true,
|
|
340
|
+
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
341
|
+
})
|
|
342
|
+
], mdQuestionnaire.prototype, "title", 2);
|
|
343
|
+
__decorateClass([
|
|
344
|
+
(0, import_sequelize_typescript5.Column)({
|
|
345
|
+
allowNull: true,
|
|
346
|
+
type: import_sequelize_typescript5.DataType.STRING
|
|
347
|
+
})
|
|
348
|
+
], mdQuestionnaire.prototype, "description", 2);
|
|
349
|
+
__decorateClass([
|
|
350
|
+
(0, import_sequelize_typescript5.Column)({
|
|
351
|
+
allowNull: true,
|
|
352
|
+
type: import_sequelize_typescript5.DataType.JSON
|
|
353
|
+
})
|
|
354
|
+
], mdQuestionnaire.prototype, "forms", 2);
|
|
355
|
+
__decorateClass([
|
|
356
|
+
(0, import_sequelize_typescript5.Column)({
|
|
272
357
|
field: "confirm_message",
|
|
273
358
|
allowNull: true,
|
|
274
|
-
type:
|
|
359
|
+
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
275
360
|
})
|
|
276
361
|
], mdQuestionnaire.prototype, "confirmMessage", 2);
|
|
277
362
|
__decorateClass([
|
|
278
|
-
(0,
|
|
363
|
+
(0, import_sequelize_typescript5.Column)({
|
|
279
364
|
allowNull: true,
|
|
280
|
-
type:
|
|
365
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
281
366
|
})
|
|
282
367
|
], mdQuestionnaire.prototype, "submitter", 2);
|
|
283
368
|
__decorateClass([
|
|
284
|
-
(0,
|
|
369
|
+
(0, import_sequelize_typescript5.Column)({
|
|
285
370
|
allowNull: true,
|
|
286
|
-
type:
|
|
371
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
287
372
|
})
|
|
288
373
|
], mdQuestionnaire.prototype, "sort", 2);
|
|
289
374
|
__decorateClass([
|
|
290
|
-
(0,
|
|
375
|
+
(0, import_sequelize_typescript5.Column)({
|
|
291
376
|
allowNull: true,
|
|
292
|
-
type:
|
|
377
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
293
378
|
})
|
|
294
379
|
], mdQuestionnaire.prototype, "status", 2);
|
|
295
380
|
__decorateClass([
|
|
296
|
-
(0,
|
|
381
|
+
(0, import_sequelize_typescript5.Column)({
|
|
297
382
|
allowNull: true,
|
|
298
|
-
type:
|
|
383
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
299
384
|
})
|
|
300
385
|
], mdQuestionnaire.prototype, "views", 2);
|
|
301
386
|
__decorateClass([
|
|
302
|
-
(0,
|
|
387
|
+
(0, import_sequelize_typescript5.Column)({
|
|
303
388
|
field: "has_expire",
|
|
304
389
|
allowNull: true,
|
|
305
|
-
type:
|
|
390
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
306
391
|
})
|
|
307
392
|
], mdQuestionnaire.prototype, "hasExpire", 2);
|
|
308
393
|
__decorateClass([
|
|
309
|
-
(0,
|
|
394
|
+
(0, import_sequelize_typescript5.Column)({
|
|
310
395
|
field: "start_date",
|
|
311
396
|
allowNull: true,
|
|
312
|
-
type:
|
|
397
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
313
398
|
})
|
|
314
399
|
], mdQuestionnaire.prototype, "startDate", 2);
|
|
315
400
|
__decorateClass([
|
|
316
|
-
(0,
|
|
401
|
+
(0, import_sequelize_typescript5.Column)({
|
|
317
402
|
field: "expire_date",
|
|
318
403
|
allowNull: true,
|
|
319
|
-
type:
|
|
404
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
320
405
|
})
|
|
321
406
|
], mdQuestionnaire.prototype, "expireDate", 2);
|
|
322
407
|
__decorateClass([
|
|
323
|
-
(0,
|
|
408
|
+
(0, import_sequelize_typescript5.Column)({
|
|
324
409
|
field: "created_by",
|
|
325
410
|
allowNull: true,
|
|
326
|
-
type:
|
|
411
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
327
412
|
})
|
|
328
413
|
], mdQuestionnaire.prototype, "createdBy", 2);
|
|
329
414
|
__decorateClass([
|
|
330
|
-
(0,
|
|
415
|
+
(0, import_sequelize_typescript5.Column)({
|
|
331
416
|
field: "created_date",
|
|
332
417
|
allowNull: true,
|
|
333
|
-
type:
|
|
418
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
334
419
|
})
|
|
335
420
|
], mdQuestionnaire.prototype, "createdDate", 2);
|
|
336
421
|
__decorateClass([
|
|
337
|
-
(0,
|
|
422
|
+
(0, import_sequelize_typescript5.Column)({
|
|
338
423
|
field: "updated_by",
|
|
339
424
|
allowNull: true,
|
|
340
|
-
type:
|
|
425
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
341
426
|
})
|
|
342
427
|
], mdQuestionnaire.prototype, "updatedBy", 2);
|
|
343
428
|
__decorateClass([
|
|
344
|
-
(0,
|
|
429
|
+
(0, import_sequelize_typescript5.Column)({
|
|
345
430
|
field: "updated_date",
|
|
346
431
|
allowNull: true,
|
|
347
|
-
type:
|
|
432
|
+
type: import_sequelize_typescript5.DataType.DATE
|
|
348
433
|
})
|
|
349
434
|
], mdQuestionnaire.prototype, "updatedDate", 2);
|
|
350
435
|
__decorateClass([
|
|
351
|
-
(0,
|
|
436
|
+
(0, import_sequelize_typescript5.BelongsTo)(() => users)
|
|
352
437
|
], mdQuestionnaire.prototype, "user", 2);
|
|
438
|
+
__decorateClass([
|
|
439
|
+
(0, import_sequelize_typescript5.HasMany)(() => mdQuestionnaireData, {
|
|
440
|
+
sourceKey: "id"
|
|
441
|
+
})
|
|
442
|
+
], mdQuestionnaire.prototype, "mdQuestionnaireData", 2);
|
|
353
443
|
mdQuestionnaire = __decorateClass([
|
|
354
|
-
(0,
|
|
444
|
+
(0, import_sequelize_typescript5.Table)({
|
|
355
445
|
tableName: "md_questionnaire",
|
|
356
446
|
timestamps: false
|
|
357
447
|
})
|
|
358
448
|
], mdQuestionnaire);
|
|
359
449
|
|
|
360
450
|
// src/databases/tables/usersVerify.ts
|
|
361
|
-
var
|
|
362
|
-
var usersVerify = class extends
|
|
451
|
+
var import_sequelize_typescript6 = require("sequelize-typescript");
|
|
452
|
+
var usersVerify = class extends import_sequelize_typescript6.Model {
|
|
363
453
|
};
|
|
364
454
|
__decorateClass([
|
|
365
|
-
(0,
|
|
455
|
+
(0, import_sequelize_typescript6.Column)({
|
|
366
456
|
primaryKey: true,
|
|
367
457
|
autoIncrement: true,
|
|
368
|
-
type:
|
|
458
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
369
459
|
})
|
|
370
460
|
], usersVerify.prototype, "id", 2);
|
|
371
461
|
__decorateClass([
|
|
372
|
-
(0,
|
|
373
|
-
(0,
|
|
462
|
+
(0, import_sequelize_typescript6.ForeignKey)(() => users),
|
|
463
|
+
(0, import_sequelize_typescript6.Column)({
|
|
374
464
|
field: "user_id",
|
|
375
465
|
allowNull: true,
|
|
376
|
-
type:
|
|
466
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
377
467
|
})
|
|
378
468
|
], usersVerify.prototype, "userId", 2);
|
|
379
469
|
__decorateClass([
|
|
380
|
-
(0,
|
|
470
|
+
(0, import_sequelize_typescript6.Column)({
|
|
381
471
|
allowNull: true,
|
|
382
|
-
type:
|
|
472
|
+
type: import_sequelize_typescript6.DataType.INTEGER,
|
|
383
473
|
comment: "0 = email",
|
|
384
474
|
defaultValue: "0"
|
|
385
475
|
})
|
|
386
476
|
], usersVerify.prototype, "type", 2);
|
|
387
477
|
__decorateClass([
|
|
388
|
-
(0,
|
|
478
|
+
(0, import_sequelize_typescript6.Column)({
|
|
389
479
|
allowNull: true,
|
|
390
|
-
type:
|
|
480
|
+
type: import_sequelize_typescript6.DataType.STRING(50)
|
|
391
481
|
})
|
|
392
482
|
], usersVerify.prototype, "code", 2);
|
|
393
483
|
__decorateClass([
|
|
394
|
-
(0,
|
|
484
|
+
(0, import_sequelize_typescript6.Column)({
|
|
395
485
|
allowNull: true,
|
|
396
|
-
type:
|
|
486
|
+
type: import_sequelize_typescript6.DataType.STRING(50)
|
|
397
487
|
})
|
|
398
488
|
], usersVerify.prototype, "reference", 2);
|
|
399
489
|
__decorateClass([
|
|
400
|
-
(0,
|
|
490
|
+
(0, import_sequelize_typescript6.Column)({
|
|
401
491
|
allowNull: true,
|
|
402
|
-
type:
|
|
492
|
+
type: import_sequelize_typescript6.DataType.INTEGER,
|
|
403
493
|
comment: "0 = wait, 1 = verified",
|
|
404
494
|
defaultValue: "0"
|
|
405
495
|
})
|
|
406
496
|
], usersVerify.prototype, "status", 2);
|
|
407
497
|
__decorateClass([
|
|
408
|
-
(0,
|
|
498
|
+
(0, import_sequelize_typescript6.Column)({
|
|
409
499
|
field: "created_date",
|
|
410
500
|
allowNull: true,
|
|
411
|
-
type:
|
|
501
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
412
502
|
})
|
|
413
503
|
], usersVerify.prototype, "createdDate", 2);
|
|
414
504
|
__decorateClass([
|
|
415
|
-
(0,
|
|
505
|
+
(0, import_sequelize_typescript6.BelongsTo)(() => users)
|
|
416
506
|
], usersVerify.prototype, "user", 2);
|
|
417
507
|
usersVerify = __decorateClass([
|
|
418
|
-
(0,
|
|
508
|
+
(0, import_sequelize_typescript6.Table)({
|
|
419
509
|
tableName: "users_verify",
|
|
420
510
|
timestamps: false
|
|
421
511
|
})
|
|
422
512
|
], usersVerify);
|
|
423
513
|
|
|
424
514
|
// src/databases/tables/users.ts
|
|
425
|
-
var users = class extends
|
|
515
|
+
var users = class extends import_sequelize_typescript7.Model {
|
|
426
516
|
};
|
|
427
517
|
__decorateClass([
|
|
428
|
-
(0,
|
|
518
|
+
(0, import_sequelize_typescript7.Column)({
|
|
429
519
|
primaryKey: true,
|
|
430
520
|
autoIncrement: true,
|
|
431
|
-
type:
|
|
521
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
432
522
|
})
|
|
433
523
|
], users.prototype, "id", 2);
|
|
434
524
|
__decorateClass([
|
|
435
|
-
(0,
|
|
436
|
-
type:
|
|
525
|
+
(0, import_sequelize_typescript7.Column)({
|
|
526
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
437
527
|
})
|
|
438
528
|
], users.prototype, "uuid", 2);
|
|
439
529
|
__decorateClass([
|
|
440
|
-
(0,
|
|
441
|
-
type:
|
|
530
|
+
(0, import_sequelize_typescript7.Column)({
|
|
531
|
+
type: import_sequelize_typescript7.DataType.STRING(100)
|
|
442
532
|
})
|
|
443
533
|
], users.prototype, "username", 2);
|
|
444
534
|
__decorateClass([
|
|
445
|
-
(0,
|
|
535
|
+
(0, import_sequelize_typescript7.Column)({
|
|
446
536
|
field: "password_hash",
|
|
447
537
|
allowNull: true,
|
|
448
|
-
type:
|
|
538
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
449
539
|
})
|
|
450
540
|
], users.prototype, "passwordHash", 2);
|
|
451
541
|
__decorateClass([
|
|
452
|
-
(0,
|
|
542
|
+
(0, import_sequelize_typescript7.Column)({
|
|
453
543
|
field: "password_reset_token",
|
|
454
544
|
allowNull: true,
|
|
455
|
-
type:
|
|
545
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
456
546
|
})
|
|
457
547
|
], users.prototype, "passwordResetToken", 2);
|
|
458
548
|
__decorateClass([
|
|
459
|
-
(0,
|
|
549
|
+
(0, import_sequelize_typescript7.Column)({
|
|
460
550
|
field: "verification_token",
|
|
461
551
|
allowNull: true,
|
|
462
|
-
type:
|
|
552
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
463
553
|
})
|
|
464
554
|
], users.prototype, "verificationToken", 2);
|
|
465
555
|
__decorateClass([
|
|
466
|
-
(0,
|
|
556
|
+
(0, import_sequelize_typescript7.Column)({
|
|
467
557
|
allowNull: true,
|
|
468
|
-
type:
|
|
558
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
469
559
|
})
|
|
470
560
|
], users.prototype, "email", 2);
|
|
471
561
|
__decorateClass([
|
|
472
|
-
(0,
|
|
562
|
+
(0, import_sequelize_typescript7.Column)({
|
|
473
563
|
field: "auth_key",
|
|
474
564
|
allowNull: true,
|
|
475
|
-
type:
|
|
565
|
+
type: import_sequelize_typescript7.DataType.STRING(32)
|
|
476
566
|
})
|
|
477
567
|
], users.prototype, "authKey", 2);
|
|
478
568
|
__decorateClass([
|
|
479
|
-
(0,
|
|
569
|
+
(0, import_sequelize_typescript7.Column)({
|
|
480
570
|
field: "secret_key",
|
|
481
571
|
allowNull: true,
|
|
482
|
-
type:
|
|
572
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
483
573
|
})
|
|
484
574
|
], users.prototype, "secretKey", 2);
|
|
485
575
|
__decorateClass([
|
|
486
|
-
(0,
|
|
576
|
+
(0, import_sequelize_typescript7.Column)({
|
|
487
577
|
field: "access_token",
|
|
488
578
|
allowNull: true,
|
|
489
|
-
type:
|
|
579
|
+
type: import_sequelize_typescript7.DataType.STRING
|
|
490
580
|
})
|
|
491
581
|
], users.prototype, "accessToken", 2);
|
|
492
582
|
__decorateClass([
|
|
493
|
-
(0,
|
|
583
|
+
(0, import_sequelize_typescript7.Column)({
|
|
494
584
|
field: "user_level",
|
|
495
585
|
allowNull: true,
|
|
496
|
-
type:
|
|
586
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
497
587
|
})
|
|
498
588
|
], users.prototype, "userLevel", 2);
|
|
499
589
|
__decorateClass([
|
|
500
|
-
(0,
|
|
590
|
+
(0, import_sequelize_typescript7.Column)({
|
|
501
591
|
field: "user_authen",
|
|
502
592
|
allowNull: true,
|
|
503
|
-
type:
|
|
593
|
+
type: import_sequelize_typescript7.DataType.STRING(64)
|
|
504
594
|
})
|
|
505
595
|
], users.prototype, "userAuthen", 2);
|
|
506
596
|
__decorateClass([
|
|
507
|
-
(0,
|
|
597
|
+
(0, import_sequelize_typescript7.Column)({
|
|
508
598
|
field: "user_type",
|
|
509
599
|
allowNull: true,
|
|
510
|
-
type:
|
|
600
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
511
601
|
})
|
|
512
602
|
], users.prototype, "userType", 2);
|
|
513
603
|
__decorateClass([
|
|
514
|
-
(0,
|
|
604
|
+
(0, import_sequelize_typescript7.Column)({
|
|
515
605
|
allowNull: true,
|
|
516
|
-
type:
|
|
606
|
+
type: import_sequelize_typescript7.DataType.STRING(10)
|
|
517
607
|
})
|
|
518
608
|
], users.prototype, "prefix", 2);
|
|
519
609
|
__decorateClass([
|
|
520
|
-
(0,
|
|
610
|
+
(0, import_sequelize_typescript7.Column)({
|
|
521
611
|
field: "first_name",
|
|
522
612
|
allowNull: true,
|
|
523
|
-
type:
|
|
613
|
+
type: import_sequelize_typescript7.DataType.STRING(100)
|
|
524
614
|
})
|
|
525
615
|
], users.prototype, "firstName", 2);
|
|
526
616
|
__decorateClass([
|
|
527
|
-
(0,
|
|
617
|
+
(0, import_sequelize_typescript7.Column)({
|
|
528
618
|
field: "last_name",
|
|
529
619
|
allowNull: true,
|
|
530
|
-
type:
|
|
620
|
+
type: import_sequelize_typescript7.DataType.STRING(100)
|
|
531
621
|
})
|
|
532
622
|
], users.prototype, "lastName", 2);
|
|
533
623
|
__decorateClass([
|
|
534
|
-
(0,
|
|
624
|
+
(0, import_sequelize_typescript7.Column)({
|
|
535
625
|
allowNull: true,
|
|
536
|
-
type:
|
|
626
|
+
type: import_sequelize_typescript7.DataType.STRING(20)
|
|
537
627
|
})
|
|
538
628
|
], users.prototype, "phone", 2);
|
|
539
629
|
__decorateClass([
|
|
540
|
-
(0,
|
|
630
|
+
(0, import_sequelize_typescript7.Column)({
|
|
541
631
|
allowNull: true,
|
|
542
|
-
type:
|
|
632
|
+
type: import_sequelize_typescript7.DataType.SMALLINT
|
|
543
633
|
})
|
|
544
634
|
], users.prototype, "status", 2);
|
|
545
635
|
__decorateClass([
|
|
546
|
-
(0,
|
|
636
|
+
(0, import_sequelize_typescript7.Column)({
|
|
547
637
|
allowNull: true,
|
|
548
|
-
type:
|
|
638
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
549
639
|
})
|
|
550
640
|
], users.prototype, "is_2fa", 2);
|
|
551
641
|
__decorateClass([
|
|
552
|
-
(0,
|
|
642
|
+
(0, import_sequelize_typescript7.Column)({
|
|
553
643
|
field: "created_by",
|
|
554
644
|
allowNull: true,
|
|
555
|
-
type:
|
|
645
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
556
646
|
})
|
|
557
647
|
], users.prototype, "createdBy", 2);
|
|
558
648
|
__decorateClass([
|
|
559
|
-
(0,
|
|
649
|
+
(0, import_sequelize_typescript7.Column)({
|
|
560
650
|
field: "created_date",
|
|
561
651
|
allowNull: true,
|
|
562
|
-
type:
|
|
652
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
563
653
|
})
|
|
564
654
|
], users.prototype, "createdDate", 2);
|
|
565
655
|
__decorateClass([
|
|
566
|
-
(0,
|
|
656
|
+
(0, import_sequelize_typescript7.Column)({
|
|
567
657
|
field: "updated_by",
|
|
568
658
|
allowNull: true,
|
|
569
|
-
type:
|
|
659
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
570
660
|
})
|
|
571
661
|
], users.prototype, "updatedBy", 2);
|
|
572
662
|
__decorateClass([
|
|
573
|
-
(0,
|
|
663
|
+
(0, import_sequelize_typescript7.Column)({
|
|
574
664
|
field: "updated_date",
|
|
575
665
|
allowNull: true,
|
|
576
|
-
type:
|
|
666
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
577
667
|
})
|
|
578
668
|
], users.prototype, "updatedDate", 2);
|
|
579
669
|
__decorateClass([
|
|
580
|
-
(0,
|
|
670
|
+
(0, import_sequelize_typescript7.Column)({
|
|
581
671
|
allowNull: true,
|
|
582
|
-
type:
|
|
672
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
583
673
|
})
|
|
584
674
|
], users.prototype, "address", 2);
|
|
585
675
|
__decorateClass([
|
|
586
|
-
(0,
|
|
676
|
+
(0, import_sequelize_typescript7.Column)({
|
|
587
677
|
allowNull: true,
|
|
588
|
-
type:
|
|
678
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
589
679
|
})
|
|
590
680
|
], users.prototype, "other", 2);
|
|
591
681
|
__decorateClass([
|
|
592
|
-
(0,
|
|
682
|
+
(0, import_sequelize_typescript7.Column)({
|
|
593
683
|
field: "is_email_verified",
|
|
594
684
|
allowNull: true,
|
|
595
|
-
type:
|
|
685
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
596
686
|
})
|
|
597
687
|
], users.prototype, "isEmailVerified", 2);
|
|
598
688
|
__decorateClass([
|
|
599
|
-
(0,
|
|
689
|
+
(0, import_sequelize_typescript7.Column)({
|
|
600
690
|
field: "photo_uuid",
|
|
601
691
|
allowNull: true,
|
|
602
|
-
type:
|
|
692
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
603
693
|
})
|
|
604
694
|
], users.prototype, "photoUuid", 2);
|
|
605
695
|
__decorateClass([
|
|
606
|
-
(0,
|
|
696
|
+
(0, import_sequelize_typescript7.HasMany)(() => authAssignment, {
|
|
607
697
|
sourceKey: "id"
|
|
608
698
|
})
|
|
609
699
|
], users.prototype, "authAssignments", 2);
|
|
610
700
|
__decorateClass([
|
|
611
|
-
(0,
|
|
701
|
+
(0, import_sequelize_typescript7.HasMany)(() => mdContent, {
|
|
612
702
|
sourceKey: "id"
|
|
613
703
|
})
|
|
614
704
|
], users.prototype, "mdContents", 2);
|
|
615
705
|
__decorateClass([
|
|
616
|
-
(0,
|
|
706
|
+
(0, import_sequelize_typescript7.HasMany)(() => mdQuestionnaire, {
|
|
617
707
|
sourceKey: "id"
|
|
618
708
|
})
|
|
619
709
|
], users.prototype, "mdQuestionnaires", 2);
|
|
620
710
|
__decorateClass([
|
|
621
|
-
(0,
|
|
711
|
+
(0, import_sequelize_typescript7.HasMany)(() => usersVerify, {
|
|
622
712
|
sourceKey: "id"
|
|
623
713
|
})
|
|
624
714
|
], users.prototype, "usersVerifies", 2);
|
|
625
715
|
users = __decorateClass([
|
|
626
|
-
(0,
|
|
716
|
+
(0, import_sequelize_typescript7.Table)({
|
|
627
717
|
tableName: "users",
|
|
628
718
|
timestamps: false
|
|
629
719
|
})
|
|
630
720
|
], users);
|
|
631
721
|
|
|
632
722
|
// src/databases/tables/mdContent.ts
|
|
633
|
-
var mdContent = class extends
|
|
723
|
+
var mdContent = class extends import_sequelize_typescript8.Model {
|
|
634
724
|
};
|
|
635
725
|
__decorateClass([
|
|
636
|
-
(0,
|
|
726
|
+
(0, import_sequelize_typescript8.Column)({
|
|
637
727
|
primaryKey: true,
|
|
638
728
|
autoIncrement: true,
|
|
639
|
-
type:
|
|
729
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
640
730
|
})
|
|
641
731
|
], mdContent.prototype, "id", 2);
|
|
642
732
|
__decorateClass([
|
|
643
|
-
(0,
|
|
644
|
-
type:
|
|
733
|
+
(0, import_sequelize_typescript8.Column)({
|
|
734
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
645
735
|
})
|
|
646
736
|
], mdContent.prototype, "uuid", 2);
|
|
647
737
|
__decorateClass([
|
|
648
|
-
(0,
|
|
738
|
+
(0, import_sequelize_typescript8.Column)({
|
|
649
739
|
field: "key_name",
|
|
650
740
|
allowNull: true,
|
|
651
|
-
type:
|
|
741
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
652
742
|
})
|
|
653
743
|
], mdContent.prototype, "keyName", 2);
|
|
654
744
|
__decorateClass([
|
|
655
|
-
(0,
|
|
656
|
-
(0,
|
|
745
|
+
(0, import_sequelize_typescript8.ForeignKey)(() => mdContentGroup),
|
|
746
|
+
(0, import_sequelize_typescript8.Column)({
|
|
657
747
|
field: "group_id",
|
|
658
748
|
allowNull: true,
|
|
659
|
-
type:
|
|
749
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
660
750
|
})
|
|
661
751
|
], mdContent.prototype, "groupId", 2);
|
|
662
752
|
__decorateClass([
|
|
663
|
-
(0,
|
|
664
|
-
(0,
|
|
753
|
+
(0, import_sequelize_typescript8.ForeignKey)(() => users),
|
|
754
|
+
(0, import_sequelize_typescript8.Column)({
|
|
665
755
|
field: "user_id",
|
|
666
|
-
type:
|
|
756
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
667
757
|
})
|
|
668
758
|
], mdContent.prototype, "userId", 2);
|
|
669
759
|
__decorateClass([
|
|
670
|
-
(0,
|
|
760
|
+
(0, import_sequelize_typescript8.Column)({
|
|
671
761
|
allowNull: true,
|
|
672
|
-
type:
|
|
762
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
673
763
|
})
|
|
674
764
|
], mdContent.prototype, "title", 2);
|
|
675
765
|
__decorateClass([
|
|
676
|
-
(0,
|
|
766
|
+
(0, import_sequelize_typescript8.Column)({
|
|
677
767
|
allowNull: true,
|
|
678
|
-
type:
|
|
768
|
+
type: import_sequelize_typescript8.DataType.STRING
|
|
679
769
|
})
|
|
680
770
|
], mdContent.prototype, "description", 2);
|
|
681
771
|
__decorateClass([
|
|
682
|
-
(0,
|
|
772
|
+
(0, import_sequelize_typescript8.Column)({
|
|
683
773
|
allowNull: true,
|
|
684
|
-
type:
|
|
774
|
+
type: import_sequelize_typescript8.DataType.STRING
|
|
685
775
|
})
|
|
686
776
|
], mdContent.prototype, "detail", 2);
|
|
687
777
|
__decorateClass([
|
|
688
|
-
(0,
|
|
778
|
+
(0, import_sequelize_typescript8.Column)({
|
|
689
779
|
field: "meta_title",
|
|
690
780
|
allowNull: true,
|
|
691
|
-
type:
|
|
781
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
692
782
|
})
|
|
693
783
|
], mdContent.prototype, "metaTitle", 2);
|
|
694
784
|
__decorateClass([
|
|
695
|
-
(0,
|
|
785
|
+
(0, import_sequelize_typescript8.Column)({
|
|
696
786
|
field: "meta_keyword",
|
|
697
787
|
allowNull: true,
|
|
698
|
-
type:
|
|
788
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
699
789
|
})
|
|
700
790
|
], mdContent.prototype, "metaKeyword", 2);
|
|
701
791
|
__decorateClass([
|
|
702
|
-
(0,
|
|
792
|
+
(0, import_sequelize_typescript8.Column)({
|
|
703
793
|
field: "meta_description",
|
|
704
794
|
allowNull: true,
|
|
705
|
-
type:
|
|
795
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
706
796
|
})
|
|
707
797
|
], mdContent.prototype, "metaDescription", 2);
|
|
708
798
|
__decorateClass([
|
|
709
|
-
(0,
|
|
799
|
+
(0, import_sequelize_typescript8.Column)({
|
|
710
800
|
field: "image_cover",
|
|
711
801
|
allowNull: true,
|
|
712
|
-
type:
|
|
802
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
713
803
|
})
|
|
714
804
|
], mdContent.prototype, "imageCover", 2);
|
|
715
805
|
__decorateClass([
|
|
716
|
-
(0,
|
|
806
|
+
(0, import_sequelize_typescript8.Column)({
|
|
717
807
|
allowNull: true,
|
|
718
|
-
type:
|
|
808
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
719
809
|
})
|
|
720
810
|
], mdContent.prototype, "video", 2);
|
|
721
811
|
__decorateClass([
|
|
722
|
-
(0,
|
|
812
|
+
(0, import_sequelize_typescript8.Column)({
|
|
723
813
|
field: "image_gallery",
|
|
724
814
|
allowNull: true,
|
|
725
|
-
type:
|
|
815
|
+
type: import_sequelize_typescript8.DataType.JSON
|
|
726
816
|
})
|
|
727
817
|
], mdContent.prototype, "imageGallery", 2);
|
|
728
818
|
__decorateClass([
|
|
729
|
-
(0,
|
|
819
|
+
(0, import_sequelize_typescript8.Column)({
|
|
730
820
|
allowNull: true,
|
|
731
|
-
type:
|
|
821
|
+
type: import_sequelize_typescript8.DataType.JSON
|
|
732
822
|
})
|
|
733
823
|
], mdContent.prototype, "attachments", 2);
|
|
734
824
|
__decorateClass([
|
|
735
|
-
(0,
|
|
825
|
+
(0, import_sequelize_typescript8.Column)({
|
|
736
826
|
allowNull: true,
|
|
737
|
-
type:
|
|
827
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
738
828
|
})
|
|
739
829
|
], mdContent.prototype, "sort", 2);
|
|
740
830
|
__decorateClass([
|
|
741
|
-
(0,
|
|
831
|
+
(0, import_sequelize_typescript8.Column)({
|
|
742
832
|
allowNull: true,
|
|
743
|
-
type:
|
|
833
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
744
834
|
})
|
|
745
835
|
], mdContent.prototype, "publish", 2);
|
|
746
836
|
__decorateClass([
|
|
747
|
-
(0,
|
|
837
|
+
(0, import_sequelize_typescript8.Column)({
|
|
748
838
|
allowNull: true,
|
|
749
|
-
type:
|
|
839
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
750
840
|
})
|
|
751
841
|
], mdContent.prototype, "status", 2);
|
|
752
842
|
__decorateClass([
|
|
753
|
-
(0,
|
|
843
|
+
(0, import_sequelize_typescript8.Column)({
|
|
754
844
|
allowNull: true,
|
|
755
|
-
type:
|
|
845
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
756
846
|
})
|
|
757
847
|
], mdContent.prototype, "view", 2);
|
|
758
848
|
__decorateClass([
|
|
759
|
-
(0,
|
|
849
|
+
(0, import_sequelize_typescript8.Column)({
|
|
760
850
|
field: "has_expire",
|
|
761
851
|
allowNull: true,
|
|
762
|
-
type:
|
|
852
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
763
853
|
})
|
|
764
854
|
], mdContent.prototype, "hasExpire", 2);
|
|
765
855
|
__decorateClass([
|
|
766
|
-
(0,
|
|
856
|
+
(0, import_sequelize_typescript8.Column)({
|
|
767
857
|
field: "start_date",
|
|
768
858
|
allowNull: true,
|
|
769
|
-
type:
|
|
859
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
770
860
|
})
|
|
771
861
|
], mdContent.prototype, "startDate", 2);
|
|
772
862
|
__decorateClass([
|
|
773
|
-
(0,
|
|
863
|
+
(0, import_sequelize_typescript8.Column)({
|
|
774
864
|
field: "expire_date",
|
|
775
865
|
allowNull: true,
|
|
776
|
-
type:
|
|
866
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
777
867
|
})
|
|
778
868
|
], mdContent.prototype, "expireDate", 2);
|
|
779
869
|
__decorateClass([
|
|
780
|
-
(0,
|
|
870
|
+
(0, import_sequelize_typescript8.Column)({
|
|
781
871
|
field: "created_by",
|
|
782
872
|
allowNull: true,
|
|
783
|
-
type:
|
|
873
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
784
874
|
})
|
|
785
875
|
], mdContent.prototype, "createdBy", 2);
|
|
786
876
|
__decorateClass([
|
|
787
|
-
(0,
|
|
877
|
+
(0, import_sequelize_typescript8.Column)({
|
|
788
878
|
field: "created_date",
|
|
789
879
|
allowNull: true,
|
|
790
|
-
type:
|
|
880
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
791
881
|
})
|
|
792
882
|
], mdContent.prototype, "createdDate", 2);
|
|
793
883
|
__decorateClass([
|
|
794
|
-
(0,
|
|
884
|
+
(0, import_sequelize_typescript8.Column)({
|
|
795
885
|
field: "updated_by",
|
|
796
886
|
allowNull: true,
|
|
797
|
-
type:
|
|
887
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
798
888
|
})
|
|
799
889
|
], mdContent.prototype, "updatedBy", 2);
|
|
800
890
|
__decorateClass([
|
|
801
|
-
(0,
|
|
891
|
+
(0, import_sequelize_typescript8.Column)({
|
|
802
892
|
field: "updated_date",
|
|
803
893
|
allowNull: true,
|
|
804
|
-
type:
|
|
894
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
805
895
|
})
|
|
806
896
|
], mdContent.prototype, "updatedDate", 2);
|
|
807
897
|
__decorateClass([
|
|
808
|
-
(0,
|
|
898
|
+
(0, import_sequelize_typescript8.BelongsTo)(() => users)
|
|
809
899
|
], mdContent.prototype, "user", 2);
|
|
810
900
|
__decorateClass([
|
|
811
|
-
(0,
|
|
901
|
+
(0, import_sequelize_typescript8.BelongsTo)(() => mdContentGroup)
|
|
812
902
|
], mdContent.prototype, "mdContentGroup", 2);
|
|
813
903
|
mdContent = __decorateClass([
|
|
814
|
-
(0,
|
|
904
|
+
(0, import_sequelize_typescript8.Table)({
|
|
815
905
|
tableName: "md_content",
|
|
816
906
|
timestamps: false
|
|
817
907
|
})
|
|
818
908
|
], mdContent);
|
|
819
909
|
|
|
820
910
|
// src/databases/tables/mdContentGroup.ts
|
|
821
|
-
var mdContentGroup = class extends
|
|
911
|
+
var mdContentGroup = class extends import_sequelize_typescript9.Model {
|
|
822
912
|
};
|
|
823
913
|
__decorateClass([
|
|
824
|
-
(0,
|
|
914
|
+
(0, import_sequelize_typescript9.Column)({
|
|
825
915
|
primaryKey: true,
|
|
826
916
|
autoIncrement: true,
|
|
827
|
-
type:
|
|
917
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
828
918
|
})
|
|
829
919
|
], mdContentGroup.prototype, "id", 2);
|
|
830
920
|
__decorateClass([
|
|
831
|
-
(0,
|
|
921
|
+
(0, import_sequelize_typescript9.Column)({
|
|
832
922
|
allowNull: true,
|
|
833
|
-
type:
|
|
923
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
834
924
|
})
|
|
835
925
|
], mdContentGroup.prototype, "uuid", 2);
|
|
836
926
|
__decorateClass([
|
|
837
|
-
(0,
|
|
927
|
+
(0, import_sequelize_typescript9.Column)({
|
|
838
928
|
field: "key_name",
|
|
839
929
|
allowNull: true,
|
|
840
|
-
type:
|
|
930
|
+
type: import_sequelize_typescript9.DataType.STRING(100)
|
|
841
931
|
})
|
|
842
932
|
], mdContentGroup.prototype, "keyName", 2);
|
|
843
933
|
__decorateClass([
|
|
844
|
-
(0,
|
|
845
|
-
type:
|
|
934
|
+
(0, import_sequelize_typescript9.Column)({
|
|
935
|
+
type: import_sequelize_typescript9.DataType.STRING(255)
|
|
846
936
|
})
|
|
847
937
|
], mdContentGroup.prototype, "name", 2);
|
|
848
938
|
__decorateClass([
|
|
849
|
-
(0,
|
|
939
|
+
(0, import_sequelize_typescript9.Column)({
|
|
850
940
|
allowNull: true,
|
|
851
|
-
type:
|
|
941
|
+
type: import_sequelize_typescript9.DataType.STRING(255)
|
|
852
942
|
})
|
|
853
943
|
], mdContentGroup.prototype, "description", 2);
|
|
854
944
|
__decorateClass([
|
|
855
|
-
(0,
|
|
945
|
+
(0, import_sequelize_typescript9.Column)({
|
|
856
946
|
allowNull: true,
|
|
857
|
-
type:
|
|
947
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
858
948
|
})
|
|
859
949
|
], mdContentGroup.prototype, "status", 2);
|
|
860
950
|
__decorateClass([
|
|
861
|
-
(0,
|
|
951
|
+
(0, import_sequelize_typescript9.Column)({
|
|
862
952
|
field: "created_by",
|
|
863
953
|
allowNull: true,
|
|
864
|
-
type:
|
|
954
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
865
955
|
})
|
|
866
956
|
], mdContentGroup.prototype, "createdBy", 2);
|
|
867
957
|
__decorateClass([
|
|
868
|
-
(0,
|
|
958
|
+
(0, import_sequelize_typescript9.Column)({
|
|
869
959
|
field: "created_date",
|
|
870
960
|
allowNull: true,
|
|
871
|
-
type:
|
|
961
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
872
962
|
})
|
|
873
963
|
], mdContentGroup.prototype, "createdDate", 2);
|
|
874
964
|
__decorateClass([
|
|
875
|
-
(0,
|
|
965
|
+
(0, import_sequelize_typescript9.Column)({
|
|
876
966
|
field: "updated_by",
|
|
877
967
|
allowNull: true,
|
|
878
|
-
type:
|
|
968
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
879
969
|
})
|
|
880
970
|
], mdContentGroup.prototype, "updatedBy", 2);
|
|
881
971
|
__decorateClass([
|
|
882
|
-
(0,
|
|
972
|
+
(0, import_sequelize_typescript9.Column)({
|
|
883
973
|
field: "updated_date",
|
|
884
974
|
allowNull: true,
|
|
885
|
-
type:
|
|
975
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
886
976
|
})
|
|
887
977
|
], mdContentGroup.prototype, "updatedDate", 2);
|
|
888
978
|
__decorateClass([
|
|
889
|
-
(0,
|
|
979
|
+
(0, import_sequelize_typescript9.HasMany)(() => mdContent, {
|
|
890
980
|
sourceKey: "id"
|
|
891
981
|
})
|
|
892
982
|
], mdContentGroup.prototype, "mdContents", 2);
|
|
893
983
|
mdContentGroup = __decorateClass([
|
|
894
|
-
(0,
|
|
984
|
+
(0, import_sequelize_typescript9.Table)({
|
|
895
985
|
tableName: "md_content_group",
|
|
896
986
|
timestamps: false
|
|
897
987
|
})
|