@admc-go-th/admc-library 1.0.39 → 1.0.41
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-95Z8e5DO.d.ts → authAssignment-WsNQC_sL.d.ts} +2 -2
- package/databases/schema/mdContent.ts +3 -3
- package/databases/schema/mdNews.ts +6 -1
- package/databases/schema/mdNewsGroup.ts +15 -1
- package/databases/tables/authAssignment.d.ts +1 -1
- package/databases/tables/authAssignment.js +1 -1
- package/databases/tables/authRole.d.ts +1 -1
- package/databases/tables/authRole.js +1 -1
- package/databases/tables/authRoleChild.d.ts +1 -1
- package/databases/tables/authRoleChild.js +1 -1
- package/databases/tables/index.d.ts +2 -3
- package/databases/tables/index.js +122 -104
- package/databases/tables/mdContent.d.ts +1 -1
- package/databases/tables/mdContent.js +1 -1
- package/databases/tables/mdContentGroup.d.ts +1 -1
- package/databases/tables/mdContentGroup.js +1 -1
- package/databases/tables/mdNews.d.ts +2 -54
- package/databases/tables/mdNews.js +138 -44
- package/databases/tables/mdNewsGroup.d.ts +2 -28
- package/databases/tables/mdNewsGroup.js +192 -12
- package/databases/tables/mdQuestionnaire.d.ts +1 -1
- package/databases/tables/mdQuestionnaire.js +1 -1
- package/databases/tables/users.d.ts +1 -1
- package/databases/tables/users.js +1 -1
- package/databases/tables/usersVerify.d.ts +1 -1
- package/databases/tables/usersVerify.js +1 -1
- package/mdNews-CYzk8W_D.d.ts +83 -0
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ interface mdContentAttributes {
|
|
|
38
38
|
metaTitle?: string;
|
|
39
39
|
metaKeyword?: string;
|
|
40
40
|
metaDescription?: string;
|
|
41
|
-
imageCover?:
|
|
41
|
+
imageCover?: string;
|
|
42
42
|
imageGallery?: object;
|
|
43
43
|
attachments?: object;
|
|
44
44
|
sort?: number;
|
|
@@ -63,7 +63,7 @@ declare class mdContent extends Model<mdContentAttributes, mdContentAttributes>
|
|
|
63
63
|
metaTitle?: string;
|
|
64
64
|
metaKeyword?: string;
|
|
65
65
|
metaDescription?: string;
|
|
66
|
-
imageCover?:
|
|
66
|
+
imageCover?: string;
|
|
67
67
|
imageGallery?: object;
|
|
68
68
|
attachments?: object;
|
|
69
69
|
sort?: number;
|
|
@@ -16,7 +16,7 @@ export interface mdContentAttributes {
|
|
|
16
16
|
metaTitle?: string;
|
|
17
17
|
metaKeyword?: string;
|
|
18
18
|
metaDescription?: string;
|
|
19
|
-
imageCover?:
|
|
19
|
+
imageCover?: string;
|
|
20
20
|
imageGallery?: object;
|
|
21
21
|
attachments?: object;
|
|
22
22
|
sort?: number;
|
|
@@ -112,9 +112,9 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
|
|
|
112
112
|
@Column({
|
|
113
113
|
field: "image_cover",
|
|
114
114
|
allowNull: true,
|
|
115
|
-
type: DataType.
|
|
115
|
+
type: DataType.STRING(60)
|
|
116
116
|
})
|
|
117
|
-
declare imageCover?:
|
|
117
|
+
declare imageCover?: string;
|
|
118
118
|
|
|
119
119
|
@Column({
|
|
120
120
|
field: "image_gallery",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { mdNewsGroup } from "./mdNewsGroup";
|
|
4
5
|
|
|
5
6
|
export interface mdNewsAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -53,6 +54,7 @@ export class mdNews extends Model<mdNewsAttributes, mdNewsAttributes> implements
|
|
|
53
54
|
})
|
|
54
55
|
declare keyName?: string;
|
|
55
56
|
|
|
57
|
+
@ForeignKey(() => mdNewsGroup)
|
|
56
58
|
@Column({
|
|
57
59
|
field: "group_id",
|
|
58
60
|
allowNull: true,
|
|
@@ -185,4 +187,7 @@ export class mdNews extends Model<mdNewsAttributes, mdNewsAttributes> implements
|
|
|
185
187
|
})
|
|
186
188
|
declare updatedDate?: Date;
|
|
187
189
|
|
|
190
|
+
@BelongsTo(() => mdNewsGroup)
|
|
191
|
+
declare mdNewsGroup?: mdNewsGroup;
|
|
192
|
+
|
|
188
193
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { mdNews } from "./mdNews";
|
|
4
5
|
|
|
5
6
|
export interface mdNewsGroupAttributes {
|
|
6
7
|
id?: number;
|
|
7
8
|
uuid?: string;
|
|
8
9
|
keyName?: string;
|
|
10
|
+
userId?: number;
|
|
9
11
|
name: string;
|
|
10
12
|
description?: string;
|
|
11
13
|
status?: number;
|
|
@@ -41,6 +43,13 @@ export class mdNewsGroup extends Model<mdNewsGroupAttributes, mdNewsGroupAttribu
|
|
|
41
43
|
})
|
|
42
44
|
declare keyName?: string;
|
|
43
45
|
|
|
46
|
+
@Column({
|
|
47
|
+
field: "user_id",
|
|
48
|
+
allowNull: true,
|
|
49
|
+
type: DataType.INTEGER
|
|
50
|
+
})
|
|
51
|
+
declare userId?: number;
|
|
52
|
+
|
|
44
53
|
@Column({
|
|
45
54
|
type: DataType.STRING(255)
|
|
46
55
|
})
|
|
@@ -86,4 +95,9 @@ export class mdNewsGroup extends Model<mdNewsGroupAttributes, mdNewsGroupAttribu
|
|
|
86
95
|
})
|
|
87
96
|
declare updatedDate?: Date;
|
|
88
97
|
|
|
98
|
+
@HasMany(() => mdNews, {
|
|
99
|
+
sourceKey: "id"
|
|
100
|
+
})
|
|
101
|
+
declare mdNews?: mdNews[];
|
|
102
|
+
|
|
89
103
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-
|
|
2
|
+
export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-WsNQC_sL.js';
|
|
@@ -200,7 +200,7 @@ __decorateClass([
|
|
|
200
200
|
(0, import_sequelize_typescript2.Column)({
|
|
201
201
|
field: "image_cover",
|
|
202
202
|
allowNull: true,
|
|
203
|
-
type: import_sequelize_typescript2.DataType.
|
|
203
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
204
204
|
})
|
|
205
205
|
], mdContent.prototype, "imageCover", 2);
|
|
206
206
|
__decorateClass([
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { d as authRole, c as authRoleAttributes } from '../../authAssignment-
|
|
2
|
+
export { d as authRole, c as authRoleAttributes } from '../../authAssignment-WsNQC_sL.js';
|
|
@@ -203,7 +203,7 @@ __decorateClass([
|
|
|
203
203
|
(0, import_sequelize_typescript2.Column)({
|
|
204
204
|
field: "image_cover",
|
|
205
205
|
allowNull: true,
|
|
206
|
-
type: import_sequelize_typescript2.DataType.
|
|
206
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
207
207
|
})
|
|
208
208
|
], mdContent.prototype, "imageCover", 2);
|
|
209
209
|
__decorateClass([
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { f as authRoleChild, e as authRoleChildAttributes } from '../../authAssignment-
|
|
2
|
+
export { f as authRoleChild, e as authRoleChildAttributes } from '../../authAssignment-WsNQC_sL.js';
|
|
@@ -206,7 +206,7 @@ __decorateClass([
|
|
|
206
206
|
(0, import_sequelize_typescript2.Column)({
|
|
207
207
|
field: "image_cover",
|
|
208
208
|
allowNull: true,
|
|
209
|
-
type: import_sequelize_typescript2.DataType.
|
|
209
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
210
210
|
})
|
|
211
211
|
], mdContent.prototype, "imageCover", 2);
|
|
212
212
|
__decorateClass([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-WsNQC_sL.js';
|
|
2
2
|
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-CLwL7pX_.js';
|
|
3
3
|
export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-D-yguFRL.js';
|
|
4
4
|
export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
|
|
@@ -6,8 +6,7 @@ export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';
|
|
|
6
6
|
export { mdDownload, mdDownloadAttributes } from './mdDownload.js';
|
|
7
7
|
export { a as mdFaq, m as mdFaqAttributes, c as mdFaqGroup, b as mdFaqGroupAttributes } from '../../mdFaq-1c4X_DI2.js';
|
|
8
8
|
export { mdLink, mdLinkAttributes } from './mdLink.js';
|
|
9
|
-
export { mdNews, mdNewsAttributes } from '
|
|
10
|
-
export { mdNewsGroup, mdNewsGroupAttributes } from './mdNewsGroup.js';
|
|
9
|
+
export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-CYzk8W_D.js';
|
|
11
10
|
export { mdSetting, mdSettingAttributes } from './mdSetting.js';
|
|
12
11
|
export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
|
|
13
12
|
export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshToken.js';
|
|
@@ -228,7 +228,7 @@ __decorateClass([
|
|
|
228
228
|
(0, import_sequelize_typescript2.Column)({
|
|
229
229
|
field: "image_cover",
|
|
230
230
|
allowNull: true,
|
|
231
|
-
type: import_sequelize_typescript2.DataType.
|
|
231
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
232
232
|
})
|
|
233
233
|
], mdContent.prototype, "imageCover", 2);
|
|
234
234
|
__decorateClass([
|
|
@@ -2153,8 +2153,11 @@ mdLink = __decorateClass([
|
|
|
2153
2153
|
], mdLink);
|
|
2154
2154
|
|
|
2155
2155
|
// src/databases/tables/mdNews.ts
|
|
2156
|
+
var import_sequelize_typescript22 = require("sequelize-typescript");
|
|
2157
|
+
|
|
2158
|
+
// src/databases/tables/mdNewsGroup.ts
|
|
2156
2159
|
var import_sequelize_typescript21 = require("sequelize-typescript");
|
|
2157
|
-
var
|
|
2160
|
+
var mdNewsGroup = class extends import_sequelize_typescript21.Model {
|
|
2158
2161
|
};
|
|
2159
2162
|
__decorateClass([
|
|
2160
2163
|
(0, import_sequelize_typescript21.Column)({
|
|
@@ -2162,233 +2165,248 @@ __decorateClass([
|
|
|
2162
2165
|
autoIncrement: true,
|
|
2163
2166
|
type: import_sequelize_typescript21.DataType.INTEGER
|
|
2164
2167
|
})
|
|
2165
|
-
],
|
|
2168
|
+
], mdNewsGroup.prototype, "id", 2);
|
|
2166
2169
|
__decorateClass([
|
|
2167
2170
|
(0, import_sequelize_typescript21.Column)({
|
|
2171
|
+
allowNull: true,
|
|
2168
2172
|
type: import_sequelize_typescript21.DataType.STRING(60)
|
|
2169
2173
|
})
|
|
2170
|
-
],
|
|
2174
|
+
], mdNewsGroup.prototype, "uuid", 2);
|
|
2171
2175
|
__decorateClass([
|
|
2172
2176
|
(0, import_sequelize_typescript21.Column)({
|
|
2173
2177
|
field: "key_name",
|
|
2174
2178
|
allowNull: true,
|
|
2175
2179
|
type: import_sequelize_typescript21.DataType.STRING(100)
|
|
2176
2180
|
})
|
|
2177
|
-
],
|
|
2181
|
+
], mdNewsGroup.prototype, "keyName", 2);
|
|
2178
2182
|
__decorateClass([
|
|
2179
2183
|
(0, import_sequelize_typescript21.Column)({
|
|
2180
|
-
field: "
|
|
2184
|
+
field: "user_id",
|
|
2181
2185
|
allowNull: true,
|
|
2182
2186
|
type: import_sequelize_typescript21.DataType.INTEGER
|
|
2183
2187
|
})
|
|
2184
|
-
],
|
|
2188
|
+
], mdNewsGroup.prototype, "userId", 2);
|
|
2185
2189
|
__decorateClass([
|
|
2186
2190
|
(0, import_sequelize_typescript21.Column)({
|
|
2187
|
-
|
|
2188
|
-
type: import_sequelize_typescript21.DataType.INTEGER
|
|
2191
|
+
type: import_sequelize_typescript21.DataType.STRING(255)
|
|
2189
2192
|
})
|
|
2190
|
-
],
|
|
2193
|
+
], mdNewsGroup.prototype, "name", 2);
|
|
2191
2194
|
__decorateClass([
|
|
2192
2195
|
(0, import_sequelize_typescript21.Column)({
|
|
2193
2196
|
allowNull: true,
|
|
2194
2197
|
type: import_sequelize_typescript21.DataType.STRING(255)
|
|
2195
2198
|
})
|
|
2196
|
-
],
|
|
2199
|
+
], mdNewsGroup.prototype, "description", 2);
|
|
2197
2200
|
__decorateClass([
|
|
2198
2201
|
(0, import_sequelize_typescript21.Column)({
|
|
2199
2202
|
allowNull: true,
|
|
2200
|
-
type: import_sequelize_typescript21.DataType.
|
|
2203
|
+
type: import_sequelize_typescript21.DataType.INTEGER
|
|
2201
2204
|
})
|
|
2202
|
-
],
|
|
2205
|
+
], mdNewsGroup.prototype, "status", 2);
|
|
2203
2206
|
__decorateClass([
|
|
2204
2207
|
(0, import_sequelize_typescript21.Column)({
|
|
2208
|
+
field: "created_by",
|
|
2205
2209
|
allowNull: true,
|
|
2206
|
-
type: import_sequelize_typescript21.DataType.STRING
|
|
2210
|
+
type: import_sequelize_typescript21.DataType.STRING(60)
|
|
2207
2211
|
})
|
|
2208
|
-
],
|
|
2212
|
+
], mdNewsGroup.prototype, "createdBy", 2);
|
|
2209
2213
|
__decorateClass([
|
|
2210
2214
|
(0, import_sequelize_typescript21.Column)({
|
|
2211
|
-
field: "
|
|
2215
|
+
field: "created_date",
|
|
2212
2216
|
allowNull: true,
|
|
2213
|
-
type: import_sequelize_typescript21.DataType.
|
|
2217
|
+
type: import_sequelize_typescript21.DataType.DATE
|
|
2214
2218
|
})
|
|
2215
|
-
],
|
|
2219
|
+
], mdNewsGroup.prototype, "createdDate", 2);
|
|
2216
2220
|
__decorateClass([
|
|
2217
2221
|
(0, import_sequelize_typescript21.Column)({
|
|
2218
|
-
field: "
|
|
2222
|
+
field: "updated_by",
|
|
2219
2223
|
allowNull: true,
|
|
2220
|
-
type: import_sequelize_typescript21.DataType.STRING(
|
|
2224
|
+
type: import_sequelize_typescript21.DataType.STRING(60)
|
|
2221
2225
|
})
|
|
2222
|
-
],
|
|
2226
|
+
], mdNewsGroup.prototype, "updatedBy", 2);
|
|
2223
2227
|
__decorateClass([
|
|
2224
2228
|
(0, import_sequelize_typescript21.Column)({
|
|
2225
|
-
field: "
|
|
2229
|
+
field: "updated_date",
|
|
2226
2230
|
allowNull: true,
|
|
2227
|
-
type: import_sequelize_typescript21.DataType.
|
|
2231
|
+
type: import_sequelize_typescript21.DataType.DATE
|
|
2228
2232
|
})
|
|
2229
|
-
],
|
|
2233
|
+
], mdNewsGroup.prototype, "updatedDate", 2);
|
|
2230
2234
|
__decorateClass([
|
|
2231
|
-
(0, import_sequelize_typescript21.
|
|
2232
|
-
|
|
2233
|
-
allowNull: true,
|
|
2234
|
-
type: import_sequelize_typescript21.DataType.STRING(60)
|
|
2235
|
+
(0, import_sequelize_typescript21.HasMany)(() => mdNews, {
|
|
2236
|
+
sourceKey: "id"
|
|
2235
2237
|
})
|
|
2236
|
-
],
|
|
2238
|
+
], mdNewsGroup.prototype, "mdNews", 2);
|
|
2239
|
+
mdNewsGroup = __decorateClass([
|
|
2240
|
+
(0, import_sequelize_typescript21.Table)({
|
|
2241
|
+
tableName: "md_news_group",
|
|
2242
|
+
timestamps: false
|
|
2243
|
+
})
|
|
2244
|
+
], mdNewsGroup);
|
|
2245
|
+
|
|
2246
|
+
// src/databases/tables/mdNews.ts
|
|
2247
|
+
var mdNews = class extends import_sequelize_typescript22.Model {
|
|
2248
|
+
};
|
|
2237
2249
|
__decorateClass([
|
|
2238
|
-
(0,
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
type:
|
|
2250
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2251
|
+
primaryKey: true,
|
|
2252
|
+
autoIncrement: true,
|
|
2253
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2242
2254
|
})
|
|
2243
|
-
], mdNews.prototype, "
|
|
2255
|
+
], mdNews.prototype, "id", 2);
|
|
2244
2256
|
__decorateClass([
|
|
2245
|
-
(0,
|
|
2246
|
-
|
|
2247
|
-
type: import_sequelize_typescript21.DataType.JSON
|
|
2257
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2258
|
+
type: import_sequelize_typescript22.DataType.STRING(60)
|
|
2248
2259
|
})
|
|
2249
|
-
], mdNews.prototype, "
|
|
2260
|
+
], mdNews.prototype, "uuid", 2);
|
|
2250
2261
|
__decorateClass([
|
|
2251
|
-
(0,
|
|
2262
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2263
|
+
field: "key_name",
|
|
2252
2264
|
allowNull: true,
|
|
2253
|
-
type:
|
|
2265
|
+
type: import_sequelize_typescript22.DataType.STRING(100)
|
|
2254
2266
|
})
|
|
2255
|
-
], mdNews.prototype, "
|
|
2267
|
+
], mdNews.prototype, "keyName", 2);
|
|
2256
2268
|
__decorateClass([
|
|
2257
|
-
(0,
|
|
2269
|
+
(0, import_sequelize_typescript22.ForeignKey)(() => mdNewsGroup),
|
|
2270
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2271
|
+
field: "group_id",
|
|
2258
2272
|
allowNull: true,
|
|
2259
|
-
type:
|
|
2273
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2260
2274
|
})
|
|
2261
|
-
], mdNews.prototype, "
|
|
2275
|
+
], mdNews.prototype, "groupId", 2);
|
|
2262
2276
|
__decorateClass([
|
|
2263
|
-
(0,
|
|
2264
|
-
field: "
|
|
2265
|
-
type:
|
|
2277
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2278
|
+
field: "user_id",
|
|
2279
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2266
2280
|
})
|
|
2267
|
-
], mdNews.prototype, "
|
|
2281
|
+
], mdNews.prototype, "userId", 2);
|
|
2268
2282
|
__decorateClass([
|
|
2269
|
-
(0,
|
|
2270
|
-
field: "start_date",
|
|
2283
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2271
2284
|
allowNull: true,
|
|
2272
|
-
type:
|
|
2285
|
+
type: import_sequelize_typescript22.DataType.STRING(255)
|
|
2273
2286
|
})
|
|
2274
|
-
], mdNews.prototype, "
|
|
2287
|
+
], mdNews.prototype, "title", 2);
|
|
2275
2288
|
__decorateClass([
|
|
2276
|
-
(0,
|
|
2277
|
-
field: "expire_date",
|
|
2289
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2278
2290
|
allowNull: true,
|
|
2279
|
-
type:
|
|
2291
|
+
type: import_sequelize_typescript22.DataType.STRING
|
|
2280
2292
|
})
|
|
2281
|
-
], mdNews.prototype, "
|
|
2293
|
+
], mdNews.prototype, "description", 2);
|
|
2282
2294
|
__decorateClass([
|
|
2283
|
-
(0,
|
|
2284
|
-
field: "created_by",
|
|
2295
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2285
2296
|
allowNull: true,
|
|
2286
|
-
type:
|
|
2297
|
+
type: import_sequelize_typescript22.DataType.STRING
|
|
2287
2298
|
})
|
|
2288
|
-
], mdNews.prototype, "
|
|
2299
|
+
], mdNews.prototype, "detail", 2);
|
|
2289
2300
|
__decorateClass([
|
|
2290
|
-
(0,
|
|
2291
|
-
field: "
|
|
2301
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2302
|
+
field: "meta_title",
|
|
2292
2303
|
allowNull: true,
|
|
2293
|
-
type:
|
|
2304
|
+
type: import_sequelize_typescript22.DataType.STRING(255)
|
|
2294
2305
|
})
|
|
2295
|
-
], mdNews.prototype, "
|
|
2306
|
+
], mdNews.prototype, "metaTitle", 2);
|
|
2296
2307
|
__decorateClass([
|
|
2297
|
-
(0,
|
|
2298
|
-
field: "
|
|
2308
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2309
|
+
field: "meta_keyword",
|
|
2299
2310
|
allowNull: true,
|
|
2300
|
-
type:
|
|
2311
|
+
type: import_sequelize_typescript22.DataType.STRING(255)
|
|
2301
2312
|
})
|
|
2302
|
-
], mdNews.prototype, "
|
|
2313
|
+
], mdNews.prototype, "metaKeyword", 2);
|
|
2303
2314
|
__decorateClass([
|
|
2304
|
-
(0,
|
|
2305
|
-
field: "
|
|
2315
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2316
|
+
field: "meta_description",
|
|
2306
2317
|
allowNull: true,
|
|
2307
|
-
type:
|
|
2318
|
+
type: import_sequelize_typescript22.DataType.STRING(255)
|
|
2308
2319
|
})
|
|
2309
|
-
], mdNews.prototype, "
|
|
2310
|
-
|
|
2311
|
-
(0,
|
|
2312
|
-
|
|
2313
|
-
|
|
2320
|
+
], mdNews.prototype, "metaDescription", 2);
|
|
2321
|
+
__decorateClass([
|
|
2322
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2323
|
+
field: "image_cover",
|
|
2324
|
+
allowNull: true,
|
|
2325
|
+
type: import_sequelize_typescript22.DataType.STRING(60)
|
|
2314
2326
|
})
|
|
2315
|
-
], mdNews);
|
|
2316
|
-
|
|
2317
|
-
// src/databases/tables/mdNewsGroup.ts
|
|
2318
|
-
var import_sequelize_typescript22 = require("sequelize-typescript");
|
|
2319
|
-
var mdNewsGroup = class extends import_sequelize_typescript22.Model {
|
|
2320
|
-
};
|
|
2327
|
+
], mdNews.prototype, "imageCover", 2);
|
|
2321
2328
|
__decorateClass([
|
|
2322
2329
|
(0, import_sequelize_typescript22.Column)({
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
type: import_sequelize_typescript22.DataType.
|
|
2330
|
+
field: "image_gallery",
|
|
2331
|
+
allowNull: true,
|
|
2332
|
+
type: import_sequelize_typescript22.DataType.JSON
|
|
2326
2333
|
})
|
|
2327
|
-
],
|
|
2334
|
+
], mdNews.prototype, "imageGallery", 2);
|
|
2328
2335
|
__decorateClass([
|
|
2329
2336
|
(0, import_sequelize_typescript22.Column)({
|
|
2330
2337
|
allowNull: true,
|
|
2331
|
-
type: import_sequelize_typescript22.DataType.
|
|
2338
|
+
type: import_sequelize_typescript22.DataType.JSON
|
|
2332
2339
|
})
|
|
2333
|
-
],
|
|
2340
|
+
], mdNews.prototype, "attachments", 2);
|
|
2334
2341
|
__decorateClass([
|
|
2335
2342
|
(0, import_sequelize_typescript22.Column)({
|
|
2336
|
-
field: "key_name",
|
|
2337
2343
|
allowNull: true,
|
|
2338
|
-
type: import_sequelize_typescript22.DataType.
|
|
2344
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2339
2345
|
})
|
|
2340
|
-
],
|
|
2346
|
+
], mdNews.prototype, "sort", 2);
|
|
2341
2347
|
__decorateClass([
|
|
2342
2348
|
(0, import_sequelize_typescript22.Column)({
|
|
2343
|
-
|
|
2349
|
+
allowNull: true,
|
|
2350
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2344
2351
|
})
|
|
2345
|
-
],
|
|
2352
|
+
], mdNews.prototype, "status", 2);
|
|
2353
|
+
__decorateClass([
|
|
2354
|
+
(0, import_sequelize_typescript22.Column)({
|
|
2355
|
+
field: "has_expire",
|
|
2356
|
+
type: import_sequelize_typescript22.DataType.INTEGER
|
|
2357
|
+
})
|
|
2358
|
+
], mdNews.prototype, "hasExpire", 2);
|
|
2346
2359
|
__decorateClass([
|
|
2347
2360
|
(0, import_sequelize_typescript22.Column)({
|
|
2361
|
+
field: "start_date",
|
|
2348
2362
|
allowNull: true,
|
|
2349
|
-
type: import_sequelize_typescript22.DataType.
|
|
2363
|
+
type: import_sequelize_typescript22.DataType.DATE
|
|
2350
2364
|
})
|
|
2351
|
-
],
|
|
2365
|
+
], mdNews.prototype, "startDate", 2);
|
|
2352
2366
|
__decorateClass([
|
|
2353
2367
|
(0, import_sequelize_typescript22.Column)({
|
|
2368
|
+
field: "expire_date",
|
|
2354
2369
|
allowNull: true,
|
|
2355
|
-
type: import_sequelize_typescript22.DataType.
|
|
2370
|
+
type: import_sequelize_typescript22.DataType.DATE
|
|
2356
2371
|
})
|
|
2357
|
-
],
|
|
2372
|
+
], mdNews.prototype, "expireDate", 2);
|
|
2358
2373
|
__decorateClass([
|
|
2359
2374
|
(0, import_sequelize_typescript22.Column)({
|
|
2360
2375
|
field: "created_by",
|
|
2361
2376
|
allowNull: true,
|
|
2362
2377
|
type: import_sequelize_typescript22.DataType.STRING(60)
|
|
2363
2378
|
})
|
|
2364
|
-
],
|
|
2379
|
+
], mdNews.prototype, "createdBy", 2);
|
|
2365
2380
|
__decorateClass([
|
|
2366
2381
|
(0, import_sequelize_typescript22.Column)({
|
|
2367
2382
|
field: "created_date",
|
|
2368
2383
|
allowNull: true,
|
|
2369
2384
|
type: import_sequelize_typescript22.DataType.DATE
|
|
2370
2385
|
})
|
|
2371
|
-
],
|
|
2386
|
+
], mdNews.prototype, "createdDate", 2);
|
|
2372
2387
|
__decorateClass([
|
|
2373
2388
|
(0, import_sequelize_typescript22.Column)({
|
|
2374
2389
|
field: "updated_by",
|
|
2375
2390
|
allowNull: true,
|
|
2376
2391
|
type: import_sequelize_typescript22.DataType.STRING(60)
|
|
2377
2392
|
})
|
|
2378
|
-
],
|
|
2393
|
+
], mdNews.prototype, "updatedBy", 2);
|
|
2379
2394
|
__decorateClass([
|
|
2380
2395
|
(0, import_sequelize_typescript22.Column)({
|
|
2381
2396
|
field: "updated_date",
|
|
2382
2397
|
allowNull: true,
|
|
2383
2398
|
type: import_sequelize_typescript22.DataType.DATE
|
|
2384
2399
|
})
|
|
2385
|
-
],
|
|
2386
|
-
|
|
2400
|
+
], mdNews.prototype, "updatedDate", 2);
|
|
2401
|
+
__decorateClass([
|
|
2402
|
+
(0, import_sequelize_typescript22.BelongsTo)(() => mdNewsGroup)
|
|
2403
|
+
], mdNews.prototype, "mdNewsGroup", 2);
|
|
2404
|
+
mdNews = __decorateClass([
|
|
2387
2405
|
(0, import_sequelize_typescript22.Table)({
|
|
2388
|
-
tableName: "
|
|
2406
|
+
tableName: "md_news",
|
|
2389
2407
|
timestamps: false
|
|
2390
2408
|
})
|
|
2391
|
-
],
|
|
2409
|
+
], mdNews);
|
|
2392
2410
|
|
|
2393
2411
|
// src/databases/tables/mdSetting.ts
|
|
2394
2412
|
var import_sequelize_typescript23 = require("sequelize-typescript");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { g as mdContent, m as mdContentAttributes } from '../../authAssignment-
|
|
2
|
+
export { g as mdContent, m as mdContentAttributes } from '../../authAssignment-WsNQC_sL.js';
|
|
@@ -781,7 +781,7 @@ __decorateClass([
|
|
|
781
781
|
(0, import_sequelize_typescript8.Column)({
|
|
782
782
|
field: "image_cover",
|
|
783
783
|
allowNull: true,
|
|
784
|
-
type: import_sequelize_typescript8.DataType.
|
|
784
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
785
785
|
})
|
|
786
786
|
], mdContent.prototype, "imageCover", 2);
|
|
787
787
|
__decorateClass([
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'sequelize-typescript';
|
|
2
|
-
export { i as mdContentGroup, h as mdContentGroupAttributes } from '../../authAssignment-
|
|
2
|
+
export { i as mdContentGroup, h as mdContentGroupAttributes } from '../../authAssignment-WsNQC_sL.js';
|
|
@@ -703,7 +703,7 @@ __decorateClass([
|
|
|
703
703
|
(0, import_sequelize_typescript7.Column)({
|
|
704
704
|
field: "image_cover",
|
|
705
705
|
allowNull: true,
|
|
706
|
-
type: import_sequelize_typescript7.DataType.
|
|
706
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
707
707
|
})
|
|
708
708
|
], mdContent.prototype, "imageCover", 2);
|
|
709
709
|
__decorateClass([
|
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface mdNewsAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid: string;
|
|
6
|
-
keyName?: string;
|
|
7
|
-
groupId?: number;
|
|
8
|
-
userId: number;
|
|
9
|
-
title?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
detail?: string;
|
|
12
|
-
metaTitle?: string;
|
|
13
|
-
metaKeyword?: string;
|
|
14
|
-
metaDescription?: string;
|
|
15
|
-
imageCover?: string;
|
|
16
|
-
imageGallery?: object;
|
|
17
|
-
attachments?: object;
|
|
18
|
-
sort?: number;
|
|
19
|
-
status?: number;
|
|
20
|
-
hasExpire: number;
|
|
21
|
-
startDate?: Date;
|
|
22
|
-
expireDate?: Date;
|
|
23
|
-
createdBy?: string;
|
|
24
|
-
createdDate?: Date;
|
|
25
|
-
updatedBy?: string;
|
|
26
|
-
updatedDate?: Date;
|
|
27
|
-
}
|
|
28
|
-
declare class mdNews extends Model<mdNewsAttributes, mdNewsAttributes> implements mdNewsAttributes {
|
|
29
|
-
id?: number;
|
|
30
|
-
uuid: string;
|
|
31
|
-
keyName?: string;
|
|
32
|
-
groupId?: number;
|
|
33
|
-
userId: number;
|
|
34
|
-
title?: string;
|
|
35
|
-
description?: string;
|
|
36
|
-
detail?: string;
|
|
37
|
-
metaTitle?: string;
|
|
38
|
-
metaKeyword?: string;
|
|
39
|
-
metaDescription?: string;
|
|
40
|
-
imageCover?: string;
|
|
41
|
-
imageGallery?: object;
|
|
42
|
-
attachments?: object;
|
|
43
|
-
sort?: number;
|
|
44
|
-
status?: number;
|
|
45
|
-
hasExpire: number;
|
|
46
|
-
startDate?: Date;
|
|
47
|
-
expireDate?: Date;
|
|
48
|
-
createdBy?: string;
|
|
49
|
-
createdDate?: Date;
|
|
50
|
-
updatedBy?: string;
|
|
51
|
-
updatedDate?: Date;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { mdNews, type mdNewsAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { a as mdNews, m as mdNewsAttributes } from '../../mdNews-CYzk8W_D.js';
|