@admc-go-th/admc-library 1.0.26 → 1.0.28
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-C26INzWS.d.ts → authAssignment-BUrX9fXX.d.ts} +14 -5
- package/{authItem-Da_KN9rn.d.ts → authItem-CLwL7pX_.d.ts} +3 -1
- package/databases/schema/authItem.ts +92 -92
- package/databases/schema/authItemChild.ts +33 -33
- package/databases/schema/files.ts +18 -2
- package/databases/schema/index.ts +22 -17
- package/databases/schema/mdBanner.ts +104 -0
- package/databases/schema/mdContent.ts +21 -6
- package/databases/schema/mdContentGroup.ts +22 -0
- package/databases/schema/mdDocumentPdf.ts +112 -0
- package/databases/schema/mdDownload.ts +112 -0
- package/databases/schema/mdFaq.ts +104 -0
- package/databases/schema/mdFaqGroup.ts +89 -0
- package/databases/schema/mdSetting.ts +97 -0
- package/databases/schema/menu.ts +120 -120
- package/databases/schema/msModule.ts +79 -72
- package/databases/schema/users.ts +214 -217
- package/databases/schema/usersRoleV.ts +1 -1
- package/databases/tables/authAssignment.d.ts +1 -1
- package/databases/tables/authAssignment.js +34 -4
- package/databases/tables/authItem.d.ts +1 -1
- package/databases/tables/authItem.js +8 -2
- package/databases/tables/authItemChild.d.ts +1 -1
- package/databases/tables/authItemChild.js +8 -2
- package/databases/tables/authRole.d.ts +1 -1
- package/databases/tables/authRole.js +34 -4
- package/databases/tables/files.d.ts +6 -2
- package/databases/tables/files.js +14 -0
- package/databases/tables/index.d.ts +8 -3
- package/databases/tables/index.js +734 -185
- package/databases/tables/mdBanner.d.ts +32 -0
- package/databases/tables/mdBanner.js +124 -0
- package/databases/tables/mdContent.d.ts +1 -1
- package/databases/tables/mdContent.js +34 -4
- package/databases/tables/mdContentGroup.d.ts +1 -1
- package/databases/tables/mdContentGroup.js +34 -4
- package/databases/tables/mdDocumentPdf.d.ts +34 -0
- package/databases/tables/mdDocumentPdf.js +131 -0
- package/databases/tables/mdDownload.d.ts +34 -0
- package/databases/tables/mdDownload.js +131 -0
- package/databases/tables/mdFaq.d.ts +32 -0
- package/databases/tables/mdFaq.js +124 -0
- package/databases/tables/mdFaqGroup.d.ts +28 -0
- package/databases/tables/mdFaqGroup.js +111 -0
- package/databases/tables/mdSetting.d.ts +30 -0
- package/databases/tables/mdSetting.js +118 -0
- package/databases/tables/menu.d.ts +1 -1
- package/databases/tables/menu.js +8 -2
- package/databases/tables/msModule.d.ts +1 -1
- package/databases/tables/msModule.js +8 -2
- package/databases/tables/users.d.ts +1 -1
- package/databases/tables/users.js +34 -4
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface mdBannerAttributes {
|
|
4
|
+
id: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
fileUuid?: string;
|
|
10
|
+
sort?: number;
|
|
11
|
+
status?: number;
|
|
12
|
+
createdBy?: string;
|
|
13
|
+
createdDate?: Date;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
updatedDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
declare class mdBanner extends Model<mdBannerAttributes, mdBannerAttributes> implements mdBannerAttributes {
|
|
18
|
+
id: number;
|
|
19
|
+
uuid?: string;
|
|
20
|
+
keyName?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
fileUuid?: string;
|
|
24
|
+
sort?: number;
|
|
25
|
+
status?: number;
|
|
26
|
+
createdBy?: string;
|
|
27
|
+
createdDate?: Date;
|
|
28
|
+
updatedBy?: string;
|
|
29
|
+
updatedDate?: Date;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { mdBanner, type mdBannerAttributes };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/mdBanner.ts
|
|
29
|
+
var mdBanner_exports = {};
|
|
30
|
+
__export(mdBanner_exports, {
|
|
31
|
+
mdBanner: () => mdBanner
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(mdBanner_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var mdBanner = class extends import_sequelize_typescript.Model {
|
|
36
|
+
};
|
|
37
|
+
__decorateClass([
|
|
38
|
+
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
41
|
+
})
|
|
42
|
+
], mdBanner.prototype, "id", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
(0, import_sequelize_typescript.Column)({
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
47
|
+
})
|
|
48
|
+
], mdBanner.prototype, "uuid", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
(0, import_sequelize_typescript.Column)({
|
|
51
|
+
field: "key_name",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
54
|
+
})
|
|
55
|
+
], mdBanner.prototype, "keyName", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
], mdBanner.prototype, "name", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
66
|
+
})
|
|
67
|
+
], mdBanner.prototype, "description", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
field: "file_uuid",
|
|
71
|
+
allowNull: true,
|
|
72
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
73
|
+
})
|
|
74
|
+
], mdBanner.prototype, "fileUuid", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
(0, import_sequelize_typescript.Column)({
|
|
77
|
+
allowNull: true,
|
|
78
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
79
|
+
})
|
|
80
|
+
], mdBanner.prototype, "sort", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
(0, import_sequelize_typescript.Column)({
|
|
83
|
+
allowNull: true,
|
|
84
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
85
|
+
})
|
|
86
|
+
], mdBanner.prototype, "status", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
(0, import_sequelize_typescript.Column)({
|
|
89
|
+
field: "created_by",
|
|
90
|
+
allowNull: true,
|
|
91
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
92
|
+
})
|
|
93
|
+
], mdBanner.prototype, "createdBy", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
(0, import_sequelize_typescript.Column)({
|
|
96
|
+
field: "created_date",
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
99
|
+
})
|
|
100
|
+
], mdBanner.prototype, "createdDate", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript.Column)({
|
|
103
|
+
field: "updated_by",
|
|
104
|
+
allowNull: true,
|
|
105
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
106
|
+
})
|
|
107
|
+
], mdBanner.prototype, "updatedBy", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
(0, import_sequelize_typescript.Column)({
|
|
110
|
+
field: "updated_date",
|
|
111
|
+
allowNull: true,
|
|
112
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
113
|
+
})
|
|
114
|
+
], mdBanner.prototype, "updatedDate", 2);
|
|
115
|
+
mdBanner = __decorateClass([
|
|
116
|
+
(0, import_sequelize_typescript.Table)({
|
|
117
|
+
tableName: "md_banner",
|
|
118
|
+
timestamps: false
|
|
119
|
+
})
|
|
120
|
+
], mdBanner);
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
mdBanner
|
|
124
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { e as mdContent, m as mdContentAttributes } from '../../authAssignment-
|
|
2
|
+
export { e as mdContent, m as mdContentAttributes } from '../../authAssignment-BUrX9fXX.js';
|
|
@@ -329,14 +329,12 @@ __decorateClass([
|
|
|
329
329
|
], users.prototype, "updatedDate", 2);
|
|
330
330
|
__decorateClass([
|
|
331
331
|
(0, import_sequelize_typescript3.Column)({
|
|
332
|
-
field: "address",
|
|
333
332
|
allowNull: true,
|
|
334
333
|
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
335
334
|
})
|
|
336
335
|
], users.prototype, "address", 2);
|
|
337
336
|
__decorateClass([
|
|
338
337
|
(0, import_sequelize_typescript3.Column)({
|
|
339
|
-
field: "other",
|
|
340
338
|
allowNull: true,
|
|
341
339
|
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
342
340
|
})
|
|
@@ -369,6 +367,19 @@ __decorateClass([
|
|
|
369
367
|
type: import_sequelize_typescript4.DataType.INTEGER
|
|
370
368
|
})
|
|
371
369
|
], mdContentGroup.prototype, "id", 2);
|
|
370
|
+
__decorateClass([
|
|
371
|
+
(0, import_sequelize_typescript4.Column)({
|
|
372
|
+
allowNull: true,
|
|
373
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
374
|
+
})
|
|
375
|
+
], mdContentGroup.prototype, "uuid", 2);
|
|
376
|
+
__decorateClass([
|
|
377
|
+
(0, import_sequelize_typescript4.Column)({
|
|
378
|
+
field: "key_name",
|
|
379
|
+
allowNull: true,
|
|
380
|
+
type: import_sequelize_typescript4.DataType.STRING(100)
|
|
381
|
+
})
|
|
382
|
+
], mdContentGroup.prototype, "keyName", 2);
|
|
372
383
|
__decorateClass([
|
|
373
384
|
(0, import_sequelize_typescript4.Column)({
|
|
374
385
|
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
@@ -380,6 +391,12 @@ __decorateClass([
|
|
|
380
391
|
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
381
392
|
})
|
|
382
393
|
], mdContentGroup.prototype, "description", 2);
|
|
394
|
+
__decorateClass([
|
|
395
|
+
(0, import_sequelize_typescript4.Column)({
|
|
396
|
+
allowNull: true,
|
|
397
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
398
|
+
})
|
|
399
|
+
], mdContentGroup.prototype, "status", 2);
|
|
383
400
|
__decorateClass([
|
|
384
401
|
(0, import_sequelize_typescript4.Column)({
|
|
385
402
|
field: "created_by",
|
|
@@ -432,9 +449,16 @@ __decorateClass([
|
|
|
432
449
|
], mdContent.prototype, "id", 2);
|
|
433
450
|
__decorateClass([
|
|
434
451
|
(0, import_sequelize_typescript5.Column)({
|
|
435
|
-
type: import_sequelize_typescript5.DataType.
|
|
452
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
436
453
|
})
|
|
437
454
|
], mdContent.prototype, "uuid", 2);
|
|
455
|
+
__decorateClass([
|
|
456
|
+
(0, import_sequelize_typescript5.Column)({
|
|
457
|
+
field: "key_name",
|
|
458
|
+
allowNull: true,
|
|
459
|
+
type: import_sequelize_typescript5.DataType.STRING(100)
|
|
460
|
+
})
|
|
461
|
+
], mdContent.prototype, "keyName", 2);
|
|
438
462
|
__decorateClass([
|
|
439
463
|
(0, import_sequelize_typescript5.ForeignKey)(() => mdContentGroup),
|
|
440
464
|
(0, import_sequelize_typescript5.Column)({
|
|
@@ -487,7 +511,7 @@ __decorateClass([
|
|
|
487
511
|
(0, import_sequelize_typescript5.Column)({
|
|
488
512
|
field: "image_cover",
|
|
489
513
|
allowNull: true,
|
|
490
|
-
type: import_sequelize_typescript5.DataType.
|
|
514
|
+
type: import_sequelize_typescript5.DataType.JSON
|
|
491
515
|
})
|
|
492
516
|
], mdContent.prototype, "imageCover", 2);
|
|
493
517
|
__decorateClass([
|
|
@@ -497,6 +521,12 @@ __decorateClass([
|
|
|
497
521
|
type: import_sequelize_typescript5.DataType.JSON
|
|
498
522
|
})
|
|
499
523
|
], mdContent.prototype, "imageGallery", 2);
|
|
524
|
+
__decorateClass([
|
|
525
|
+
(0, import_sequelize_typescript5.Column)({
|
|
526
|
+
allowNull: true,
|
|
527
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
528
|
+
})
|
|
529
|
+
], mdContent.prototype, "sort", 2);
|
|
500
530
|
__decorateClass([
|
|
501
531
|
(0, import_sequelize_typescript5.Column)({
|
|
502
532
|
allowNull: true,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { g as mdContentGroup, f as mdContentGroupAttributes } from '../../authAssignment-
|
|
2
|
+
export { g as mdContentGroup, f as mdContentGroupAttributes } from '../../authAssignment-BUrX9fXX.js';
|
|
@@ -332,14 +332,12 @@ __decorateClass([
|
|
|
332
332
|
], users.prototype, "updatedDate", 2);
|
|
333
333
|
__decorateClass([
|
|
334
334
|
(0, import_sequelize_typescript3.Column)({
|
|
335
|
-
field: "address",
|
|
336
335
|
allowNull: true,
|
|
337
336
|
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
338
337
|
})
|
|
339
338
|
], users.prototype, "address", 2);
|
|
340
339
|
__decorateClass([
|
|
341
340
|
(0, import_sequelize_typescript3.Column)({
|
|
342
|
-
field: "other",
|
|
343
341
|
allowNull: true,
|
|
344
342
|
type: import_sequelize_typescript3.DataType.STRING(255)
|
|
345
343
|
})
|
|
@@ -373,9 +371,16 @@ __decorateClass([
|
|
|
373
371
|
], mdContent.prototype, "id", 2);
|
|
374
372
|
__decorateClass([
|
|
375
373
|
(0, import_sequelize_typescript4.Column)({
|
|
376
|
-
type: import_sequelize_typescript4.DataType.
|
|
374
|
+
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
377
375
|
})
|
|
378
376
|
], mdContent.prototype, "uuid", 2);
|
|
377
|
+
__decorateClass([
|
|
378
|
+
(0, import_sequelize_typescript4.Column)({
|
|
379
|
+
field: "key_name",
|
|
380
|
+
allowNull: true,
|
|
381
|
+
type: import_sequelize_typescript4.DataType.STRING(100)
|
|
382
|
+
})
|
|
383
|
+
], mdContent.prototype, "keyName", 2);
|
|
379
384
|
__decorateClass([
|
|
380
385
|
(0, import_sequelize_typescript4.ForeignKey)(() => mdContentGroup),
|
|
381
386
|
(0, import_sequelize_typescript4.Column)({
|
|
@@ -428,7 +433,7 @@ __decorateClass([
|
|
|
428
433
|
(0, import_sequelize_typescript4.Column)({
|
|
429
434
|
field: "image_cover",
|
|
430
435
|
allowNull: true,
|
|
431
|
-
type: import_sequelize_typescript4.DataType.
|
|
436
|
+
type: import_sequelize_typescript4.DataType.JSON
|
|
432
437
|
})
|
|
433
438
|
], mdContent.prototype, "imageCover", 2);
|
|
434
439
|
__decorateClass([
|
|
@@ -438,6 +443,12 @@ __decorateClass([
|
|
|
438
443
|
type: import_sequelize_typescript4.DataType.JSON
|
|
439
444
|
})
|
|
440
445
|
], mdContent.prototype, "imageGallery", 2);
|
|
446
|
+
__decorateClass([
|
|
447
|
+
(0, import_sequelize_typescript4.Column)({
|
|
448
|
+
allowNull: true,
|
|
449
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
450
|
+
})
|
|
451
|
+
], mdContent.prototype, "sort", 2);
|
|
441
452
|
__decorateClass([
|
|
442
453
|
(0, import_sequelize_typescript4.Column)({
|
|
443
454
|
allowNull: true,
|
|
@@ -495,6 +506,19 @@ __decorateClass([
|
|
|
495
506
|
type: import_sequelize_typescript5.DataType.INTEGER
|
|
496
507
|
})
|
|
497
508
|
], mdContentGroup.prototype, "id", 2);
|
|
509
|
+
__decorateClass([
|
|
510
|
+
(0, import_sequelize_typescript5.Column)({
|
|
511
|
+
allowNull: true,
|
|
512
|
+
type: import_sequelize_typescript5.DataType.STRING(60)
|
|
513
|
+
})
|
|
514
|
+
], mdContentGroup.prototype, "uuid", 2);
|
|
515
|
+
__decorateClass([
|
|
516
|
+
(0, import_sequelize_typescript5.Column)({
|
|
517
|
+
field: "key_name",
|
|
518
|
+
allowNull: true,
|
|
519
|
+
type: import_sequelize_typescript5.DataType.STRING(100)
|
|
520
|
+
})
|
|
521
|
+
], mdContentGroup.prototype, "keyName", 2);
|
|
498
522
|
__decorateClass([
|
|
499
523
|
(0, import_sequelize_typescript5.Column)({
|
|
500
524
|
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
@@ -506,6 +530,12 @@ __decorateClass([
|
|
|
506
530
|
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
507
531
|
})
|
|
508
532
|
], mdContentGroup.prototype, "description", 2);
|
|
533
|
+
__decorateClass([
|
|
534
|
+
(0, import_sequelize_typescript5.Column)({
|
|
535
|
+
allowNull: true,
|
|
536
|
+
type: import_sequelize_typescript5.DataType.INTEGER
|
|
537
|
+
})
|
|
538
|
+
], mdContentGroup.prototype, "status", 2);
|
|
509
539
|
__decorateClass([
|
|
510
540
|
(0, import_sequelize_typescript5.Column)({
|
|
511
541
|
field: "created_by",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface mdDocumentPdfAttributes {
|
|
4
|
+
id: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
fileUuid?: string;
|
|
10
|
+
totalDownload?: number;
|
|
11
|
+
sort?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdDate?: Date;
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
updatedDate?: Date;
|
|
17
|
+
}
|
|
18
|
+
declare class mdDocumentPdf extends Model<mdDocumentPdfAttributes, mdDocumentPdfAttributes> implements mdDocumentPdfAttributes {
|
|
19
|
+
id: number;
|
|
20
|
+
uuid?: string;
|
|
21
|
+
keyName?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
fileUuid?: string;
|
|
25
|
+
totalDownload?: number;
|
|
26
|
+
sort?: number;
|
|
27
|
+
status?: number;
|
|
28
|
+
createdBy?: string;
|
|
29
|
+
createdDate?: Date;
|
|
30
|
+
updatedBy?: string;
|
|
31
|
+
updatedDate?: Date;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { mdDocumentPdf, type mdDocumentPdfAttributes };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/mdDocumentPdf.ts
|
|
29
|
+
var mdDocumentPdf_exports = {};
|
|
30
|
+
__export(mdDocumentPdf_exports, {
|
|
31
|
+
mdDocumentPdf: () => mdDocumentPdf
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(mdDocumentPdf_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var mdDocumentPdf = class extends import_sequelize_typescript.Model {
|
|
36
|
+
};
|
|
37
|
+
__decorateClass([
|
|
38
|
+
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
41
|
+
})
|
|
42
|
+
], mdDocumentPdf.prototype, "id", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
(0, import_sequelize_typescript.Column)({
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
47
|
+
})
|
|
48
|
+
], mdDocumentPdf.prototype, "uuid", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
(0, import_sequelize_typescript.Column)({
|
|
51
|
+
field: "key_name",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
54
|
+
})
|
|
55
|
+
], mdDocumentPdf.prototype, "keyName", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
], mdDocumentPdf.prototype, "name", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
66
|
+
})
|
|
67
|
+
], mdDocumentPdf.prototype, "description", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
field: "file_uuid",
|
|
71
|
+
allowNull: true,
|
|
72
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
73
|
+
})
|
|
74
|
+
], mdDocumentPdf.prototype, "fileUuid", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
(0, import_sequelize_typescript.Column)({
|
|
77
|
+
field: "total_download",
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
80
|
+
})
|
|
81
|
+
], mdDocumentPdf.prototype, "totalDownload", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
(0, import_sequelize_typescript.Column)({
|
|
84
|
+
allowNull: true,
|
|
85
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
86
|
+
})
|
|
87
|
+
], mdDocumentPdf.prototype, "sort", 2);
|
|
88
|
+
__decorateClass([
|
|
89
|
+
(0, import_sequelize_typescript.Column)({
|
|
90
|
+
allowNull: true,
|
|
91
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
92
|
+
})
|
|
93
|
+
], mdDocumentPdf.prototype, "status", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
(0, import_sequelize_typescript.Column)({
|
|
96
|
+
field: "created_by",
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
99
|
+
})
|
|
100
|
+
], mdDocumentPdf.prototype, "createdBy", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript.Column)({
|
|
103
|
+
field: "created_date",
|
|
104
|
+
allowNull: true,
|
|
105
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
106
|
+
})
|
|
107
|
+
], mdDocumentPdf.prototype, "createdDate", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
(0, import_sequelize_typescript.Column)({
|
|
110
|
+
field: "updated_by",
|
|
111
|
+
allowNull: true,
|
|
112
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
113
|
+
})
|
|
114
|
+
], mdDocumentPdf.prototype, "updatedBy", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
(0, import_sequelize_typescript.Column)({
|
|
117
|
+
field: "updated_date",
|
|
118
|
+
allowNull: true,
|
|
119
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
120
|
+
})
|
|
121
|
+
], mdDocumentPdf.prototype, "updatedDate", 2);
|
|
122
|
+
mdDocumentPdf = __decorateClass([
|
|
123
|
+
(0, import_sequelize_typescript.Table)({
|
|
124
|
+
tableName: "md_document_pdf",
|
|
125
|
+
timestamps: false
|
|
126
|
+
})
|
|
127
|
+
], mdDocumentPdf);
|
|
128
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
+
0 && (module.exports = {
|
|
130
|
+
mdDocumentPdf
|
|
131
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface mdDownloadAttributes {
|
|
4
|
+
id: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
fileUuid?: string;
|
|
10
|
+
totalDownload?: number;
|
|
11
|
+
sort?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdDate?: Date;
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
updatedDate?: Date;
|
|
17
|
+
}
|
|
18
|
+
declare class mdDownload extends Model<mdDownloadAttributes, mdDownloadAttributes> implements mdDownloadAttributes {
|
|
19
|
+
id: number;
|
|
20
|
+
uuid?: string;
|
|
21
|
+
keyName?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
fileUuid?: string;
|
|
25
|
+
totalDownload?: number;
|
|
26
|
+
sort?: number;
|
|
27
|
+
status?: number;
|
|
28
|
+
createdBy?: string;
|
|
29
|
+
createdDate?: Date;
|
|
30
|
+
updatedBy?: string;
|
|
31
|
+
updatedDate?: Date;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { mdDownload, type mdDownloadAttributes };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/mdDownload.ts
|
|
29
|
+
var mdDownload_exports = {};
|
|
30
|
+
__export(mdDownload_exports, {
|
|
31
|
+
mdDownload: () => mdDownload
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(mdDownload_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var mdDownload = class extends import_sequelize_typescript.Model {
|
|
36
|
+
};
|
|
37
|
+
__decorateClass([
|
|
38
|
+
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
41
|
+
})
|
|
42
|
+
], mdDownload.prototype, "id", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
(0, import_sequelize_typescript.Column)({
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
47
|
+
})
|
|
48
|
+
], mdDownload.prototype, "uuid", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
(0, import_sequelize_typescript.Column)({
|
|
51
|
+
field: "key_name",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
54
|
+
})
|
|
55
|
+
], mdDownload.prototype, "keyName", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
], mdDownload.prototype, "name", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
66
|
+
})
|
|
67
|
+
], mdDownload.prototype, "description", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
field: "file_uuid",
|
|
71
|
+
allowNull: true,
|
|
72
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
73
|
+
})
|
|
74
|
+
], mdDownload.prototype, "fileUuid", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
(0, import_sequelize_typescript.Column)({
|
|
77
|
+
field: "total_download",
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
80
|
+
})
|
|
81
|
+
], mdDownload.prototype, "totalDownload", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
(0, import_sequelize_typescript.Column)({
|
|
84
|
+
allowNull: true,
|
|
85
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
86
|
+
})
|
|
87
|
+
], mdDownload.prototype, "sort", 2);
|
|
88
|
+
__decorateClass([
|
|
89
|
+
(0, import_sequelize_typescript.Column)({
|
|
90
|
+
allowNull: true,
|
|
91
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
92
|
+
})
|
|
93
|
+
], mdDownload.prototype, "status", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
(0, import_sequelize_typescript.Column)({
|
|
96
|
+
field: "created_by",
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
99
|
+
})
|
|
100
|
+
], mdDownload.prototype, "createdBy", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript.Column)({
|
|
103
|
+
field: "created_date",
|
|
104
|
+
allowNull: true,
|
|
105
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
106
|
+
})
|
|
107
|
+
], mdDownload.prototype, "createdDate", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
(0, import_sequelize_typescript.Column)({
|
|
110
|
+
field: "updated_by",
|
|
111
|
+
allowNull: true,
|
|
112
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
113
|
+
})
|
|
114
|
+
], mdDownload.prototype, "updatedBy", 2);
|
|
115
|
+
__decorateClass([
|
|
116
|
+
(0, import_sequelize_typescript.Column)({
|
|
117
|
+
field: "updated_date",
|
|
118
|
+
allowNull: true,
|
|
119
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
120
|
+
})
|
|
121
|
+
], mdDownload.prototype, "updatedDate", 2);
|
|
122
|
+
mdDownload = __decorateClass([
|
|
123
|
+
(0, import_sequelize_typescript.Table)({
|
|
124
|
+
tableName: "md_download",
|
|
125
|
+
timestamps: false
|
|
126
|
+
})
|
|
127
|
+
], mdDownload);
|
|
128
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
129
|
+
0 && (module.exports = {
|
|
130
|
+
mdDownload
|
|
131
|
+
});
|