@admc-go-th/admc-library 1.0.102 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/databases/schema/files.ts +15 -8
- package/databases/tables/files.d.ts +1 -1
- package/databases/tables/files.js +13 -7
- package/databases/tables/index.d.ts +1 -1
- package/databases/tables/index.js +13 -7
- package/databases/tables/mdBanner.d.ts +1 -1
- package/databases/tables/mdBanner.js +13 -7
- package/{files-C1bgSUjy.d.ts → files-PYO6UeA0.d.ts} +4 -2
- package/package.json +1 -1
|
@@ -14,11 +14,12 @@ export interface filesAttributes {
|
|
|
14
14
|
fileSize?: number;
|
|
15
15
|
path?: string;
|
|
16
16
|
status?: number;
|
|
17
|
+
view?: number;
|
|
18
|
+
download?: number;
|
|
17
19
|
createdBy?: string;
|
|
18
20
|
createdDate?: Date;
|
|
19
21
|
updatedBy?: string;
|
|
20
22
|
updatedDate?: Date;
|
|
21
|
-
view?: number;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
@Table({
|
|
@@ -91,6 +92,19 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
|
|
|
91
92
|
})
|
|
92
93
|
declare status?: number;
|
|
93
94
|
|
|
95
|
+
@Column({
|
|
96
|
+
allowNull: true,
|
|
97
|
+
type: DataType.INTEGER,
|
|
98
|
+
defaultValue: "0"
|
|
99
|
+
})
|
|
100
|
+
declare view?: number;
|
|
101
|
+
|
|
102
|
+
@Column({
|
|
103
|
+
allowNull: true,
|
|
104
|
+
type: DataType.INTEGER
|
|
105
|
+
})
|
|
106
|
+
declare download?: number;
|
|
107
|
+
|
|
94
108
|
@Column({
|
|
95
109
|
field: "created_by",
|
|
96
110
|
allowNull: true,
|
|
@@ -119,13 +133,6 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
|
|
|
119
133
|
})
|
|
120
134
|
declare updatedDate?: Date;
|
|
121
135
|
|
|
122
|
-
@Column({
|
|
123
|
-
allowNull: true,
|
|
124
|
-
type: DataType.INTEGER,
|
|
125
|
-
defaultValue: "0"
|
|
126
|
-
})
|
|
127
|
-
declare view?: number;
|
|
128
|
-
|
|
129
136
|
@HasOne(() => mdBanner, {
|
|
130
137
|
sourceKey: "uuid"
|
|
131
138
|
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { a as files, f as filesAttributes } from '../../files-
|
|
2
|
+
export { a as files, f as filesAttributes } from '../../files-PYO6UeA0.js';
|
|
@@ -233,6 +233,19 @@ __decorateClass([
|
|
|
233
233
|
type: import_sequelize_typescript2.DataType.INTEGER
|
|
234
234
|
})
|
|
235
235
|
], files.prototype, "status", 2);
|
|
236
|
+
__decorateClass([
|
|
237
|
+
(0, import_sequelize_typescript2.Column)({
|
|
238
|
+
allowNull: true,
|
|
239
|
+
type: import_sequelize_typescript2.DataType.INTEGER,
|
|
240
|
+
defaultValue: "0"
|
|
241
|
+
})
|
|
242
|
+
], files.prototype, "view", 2);
|
|
243
|
+
__decorateClass([
|
|
244
|
+
(0, import_sequelize_typescript2.Column)({
|
|
245
|
+
allowNull: true,
|
|
246
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
247
|
+
})
|
|
248
|
+
], files.prototype, "download", 2);
|
|
236
249
|
__decorateClass([
|
|
237
250
|
(0, import_sequelize_typescript2.Column)({
|
|
238
251
|
field: "created_by",
|
|
@@ -261,13 +274,6 @@ __decorateClass([
|
|
|
261
274
|
type: import_sequelize_typescript2.DataType.DATE
|
|
262
275
|
})
|
|
263
276
|
], files.prototype, "updatedDate", 2);
|
|
264
|
-
__decorateClass([
|
|
265
|
-
(0, import_sequelize_typescript2.Column)({
|
|
266
|
-
allowNull: true,
|
|
267
|
-
type: import_sequelize_typescript2.DataType.INTEGER,
|
|
268
|
-
defaultValue: "0"
|
|
269
|
-
})
|
|
270
|
-
], files.prototype, "view", 2);
|
|
271
277
|
__decorateClass([
|
|
272
278
|
(0, import_sequelize_typescript2.HasOne)(() => mdBanner, {
|
|
273
279
|
sourceKey: "uuid"
|
|
@@ -6,7 +6,7 @@ export { b as appReportCorruption, a as appReportCorruptionAttributes, d as appR
|
|
|
6
6
|
export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-CcMPKnNv.js';
|
|
7
7
|
export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes, e as menu, m as menuAttributes, g as msModule, f as msModuleAttributes } from '../../authItem-DBSkCaSi.js';
|
|
8
8
|
export { contactUs, contactUsAttributes } from './contactUs.js';
|
|
9
|
-
export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-
|
|
9
|
+
export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-PYO6UeA0.js';
|
|
10
10
|
export { helper, helperAttributes } from './helper.js';
|
|
11
11
|
export { logs, logsAttributes } from './logs.js';
|
|
12
12
|
export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
|
|
@@ -2433,6 +2433,19 @@ __decorateClass([
|
|
|
2433
2433
|
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2434
2434
|
})
|
|
2435
2435
|
], files.prototype, "status", 2);
|
|
2436
|
+
__decorateClass([
|
|
2437
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2438
|
+
allowNull: true,
|
|
2439
|
+
type: import_sequelize_typescript22.DataType.INTEGER,
|
|
2440
|
+
defaultValue: "0"
|
|
2441
|
+
})
|
|
2442
|
+
], files.prototype, "view", 2);
|
|
2443
|
+
__decorateClass([
|
|
2444
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2445
|
+
allowNull: true,
|
|
2446
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2447
|
+
})
|
|
2448
|
+
], files.prototype, "download", 2);
|
|
2436
2449
|
__decorateClass([
|
|
2437
2450
|
(0, import_sequelize_typescript22.Column)({
|
|
2438
2451
|
field: "created_by",
|
|
@@ -2461,13 +2474,6 @@ __decorateClass([
|
|
|
2461
2474
|
type: import_sequelize_typescript22.DataType.DATE
|
|
2462
2475
|
})
|
|
2463
2476
|
], files.prototype, "updatedDate", 2);
|
|
2464
|
-
__decorateClass([
|
|
2465
|
-
(0, import_sequelize_typescript22.Column)({
|
|
2466
|
-
allowNull: true,
|
|
2467
|
-
type: import_sequelize_typescript22.DataType.INTEGER,
|
|
2468
|
-
defaultValue: "0"
|
|
2469
|
-
})
|
|
2470
|
-
], files.prototype, "view", 2);
|
|
2471
2477
|
__decorateClass([
|
|
2472
2478
|
(0, import_sequelize_typescript22.HasOne)(() => mdBanner, {
|
|
2473
2479
|
sourceKey: "uuid"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { b as mdBanner, m as mdBannerAttributes } from '../../files-
|
|
2
|
+
export { b as mdBanner, m as mdBannerAttributes } from '../../files-PYO6UeA0.js';
|
|
@@ -101,6 +101,19 @@ __decorateClass([
|
|
|
101
101
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
102
102
|
})
|
|
103
103
|
], files.prototype, "status", 2);
|
|
104
|
+
__decorateClass([
|
|
105
|
+
(0, import_sequelize_typescript.Column)({
|
|
106
|
+
allowNull: true,
|
|
107
|
+
type: import_sequelize_typescript.DataType.INTEGER,
|
|
108
|
+
defaultValue: "0"
|
|
109
|
+
})
|
|
110
|
+
], files.prototype, "view", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
(0, import_sequelize_typescript.Column)({
|
|
113
|
+
allowNull: true,
|
|
114
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
115
|
+
})
|
|
116
|
+
], files.prototype, "download", 2);
|
|
104
117
|
__decorateClass([
|
|
105
118
|
(0, import_sequelize_typescript.Column)({
|
|
106
119
|
field: "created_by",
|
|
@@ -129,13 +142,6 @@ __decorateClass([
|
|
|
129
142
|
type: import_sequelize_typescript.DataType.DATE
|
|
130
143
|
})
|
|
131
144
|
], files.prototype, "updatedDate", 2);
|
|
132
|
-
__decorateClass([
|
|
133
|
-
(0, import_sequelize_typescript.Column)({
|
|
134
|
-
allowNull: true,
|
|
135
|
-
type: import_sequelize_typescript.DataType.INTEGER,
|
|
136
|
-
defaultValue: "0"
|
|
137
|
-
})
|
|
138
|
-
], files.prototype, "view", 2);
|
|
139
145
|
__decorateClass([
|
|
140
146
|
(0, import_sequelize_typescript.HasOne)(() => mdBanner, {
|
|
141
147
|
sourceKey: "uuid"
|
|
@@ -53,11 +53,12 @@ interface filesAttributes {
|
|
|
53
53
|
fileSize?: number;
|
|
54
54
|
path?: string;
|
|
55
55
|
status?: number;
|
|
56
|
+
view?: number;
|
|
57
|
+
download?: number;
|
|
56
58
|
createdBy?: string;
|
|
57
59
|
createdDate?: Date;
|
|
58
60
|
updatedBy?: string;
|
|
59
61
|
updatedDate?: Date;
|
|
60
|
-
view?: number;
|
|
61
62
|
}
|
|
62
63
|
declare class files extends Model<filesAttributes, filesAttributes> implements filesAttributes {
|
|
63
64
|
id?: number;
|
|
@@ -70,11 +71,12 @@ declare class files extends Model<filesAttributes, filesAttributes> implements f
|
|
|
70
71
|
fileSize?: number;
|
|
71
72
|
path?: string;
|
|
72
73
|
status?: number;
|
|
74
|
+
view?: number;
|
|
75
|
+
download?: number;
|
|
73
76
|
createdBy?: string;
|
|
74
77
|
createdDate?: Date;
|
|
75
78
|
updatedBy?: string;
|
|
76
79
|
updatedDate?: Date;
|
|
77
|
-
view?: number;
|
|
78
80
|
mdBanner?: mdBanner;
|
|
79
81
|
}
|
|
80
82
|
|