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