@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
|
@@ -2,8 +2,11 @@ import { Model } from 'sequelize-typescript';
|
|
|
2
2
|
|
|
3
3
|
interface mdContentGroupAttributes {
|
|
4
4
|
id?: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
keyName?: string;
|
|
5
7
|
name: string;
|
|
6
8
|
description?: string;
|
|
9
|
+
status?: number;
|
|
7
10
|
createdBy?: string;
|
|
8
11
|
createdDate?: Date;
|
|
9
12
|
updatedBy?: string;
|
|
@@ -11,8 +14,11 @@ interface mdContentGroupAttributes {
|
|
|
11
14
|
}
|
|
12
15
|
declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGroupAttributes> implements mdContentGroupAttributes {
|
|
13
16
|
id?: number;
|
|
17
|
+
uuid?: string;
|
|
18
|
+
keyName?: string;
|
|
14
19
|
name: string;
|
|
15
20
|
description?: string;
|
|
21
|
+
status?: number;
|
|
16
22
|
createdBy?: string;
|
|
17
23
|
createdDate?: Date;
|
|
18
24
|
updatedBy?: string;
|
|
@@ -22,7 +28,8 @@ declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGr
|
|
|
22
28
|
|
|
23
29
|
interface mdContentAttributes {
|
|
24
30
|
id?: number;
|
|
25
|
-
uuid:
|
|
31
|
+
uuid: string;
|
|
32
|
+
keyName?: string;
|
|
26
33
|
groupId?: number;
|
|
27
34
|
userId: number;
|
|
28
35
|
title?: string;
|
|
@@ -30,8 +37,9 @@ interface mdContentAttributes {
|
|
|
30
37
|
metaTitle?: string;
|
|
31
38
|
metaKeyword?: string;
|
|
32
39
|
metaDescription?: string;
|
|
33
|
-
imageCover?:
|
|
40
|
+
imageCover?: object;
|
|
34
41
|
imageGallery?: object;
|
|
42
|
+
sort?: number;
|
|
35
43
|
status?: number;
|
|
36
44
|
createdBy?: string;
|
|
37
45
|
createdDate?: Date;
|
|
@@ -40,7 +48,8 @@ interface mdContentAttributes {
|
|
|
40
48
|
}
|
|
41
49
|
declare class mdContent extends Model<mdContentAttributes, mdContentAttributes> implements mdContentAttributes {
|
|
42
50
|
id?: number;
|
|
43
|
-
uuid:
|
|
51
|
+
uuid: string;
|
|
52
|
+
keyName?: string;
|
|
44
53
|
groupId?: number;
|
|
45
54
|
userId: number;
|
|
46
55
|
title?: string;
|
|
@@ -48,8 +57,9 @@ declare class mdContent extends Model<mdContentAttributes, mdContentAttributes>
|
|
|
48
57
|
metaTitle?: string;
|
|
49
58
|
metaKeyword?: string;
|
|
50
59
|
metaDescription?: string;
|
|
51
|
-
imageCover?:
|
|
60
|
+
imageCover?: object;
|
|
52
61
|
imageGallery?: object;
|
|
62
|
+
sort?: number;
|
|
53
63
|
status?: number;
|
|
54
64
|
createdBy?: string;
|
|
55
65
|
createdDate?: Date;
|
|
@@ -85,7 +95,6 @@ interface usersAttributes {
|
|
|
85
95
|
updatedDate?: Date;
|
|
86
96
|
address?: string;
|
|
87
97
|
other?: string;
|
|
88
|
-
roleSite?: string[];
|
|
89
98
|
}
|
|
90
99
|
declare class users extends Model<usersAttributes, usersAttributes> implements usersAttributes {
|
|
91
100
|
id?: number;
|
|
@@ -2,6 +2,7 @@ import { Model } from 'sequelize-typescript';
|
|
|
2
2
|
|
|
3
3
|
interface msModuleAttributes {
|
|
4
4
|
id?: number;
|
|
5
|
+
key?: string;
|
|
5
6
|
name: string;
|
|
6
7
|
status?: number;
|
|
7
8
|
createdBy?: string;
|
|
@@ -11,6 +12,7 @@ interface msModuleAttributes {
|
|
|
11
12
|
}
|
|
12
13
|
declare class msModule extends Model<msModuleAttributes, msModuleAttributes> implements msModuleAttributes {
|
|
13
14
|
id?: number;
|
|
15
|
+
key?: string;
|
|
14
16
|
name: string;
|
|
15
17
|
status?: number;
|
|
16
18
|
createdBy?: string;
|
|
@@ -43,8 +45,8 @@ declare class menu extends Model<menuAttributes, menuAttributes> implements menu
|
|
|
43
45
|
display?: string;
|
|
44
46
|
description?: string;
|
|
45
47
|
moduleId?: number;
|
|
46
|
-
status?: number;
|
|
47
48
|
sort?: number;
|
|
49
|
+
status?: number;
|
|
48
50
|
createdBy?: string;
|
|
49
51
|
createdDate?: Date;
|
|
50
52
|
updatedBy?: string;
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasOne, HasMany
|
|
3
|
-
} from "sequelize-typescript";
|
|
4
|
-
import { menu } from "./menu";
|
|
5
|
-
import { authItemChild } from "./authItemChild";
|
|
6
|
-
|
|
7
|
-
export interface authItemAttributes {
|
|
8
|
-
keyName: string;
|
|
9
|
-
type: number;
|
|
10
|
-
display: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status?: number;
|
|
13
|
-
createdBy?: string;
|
|
14
|
-
createdDate?: Date;
|
|
15
|
-
updatedBy?: string;
|
|
16
|
-
updatedDate?: Date;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@Table({
|
|
20
|
-
tableName: "auth_item",
|
|
21
|
-
timestamps: false
|
|
22
|
-
})
|
|
23
|
-
export class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
|
|
24
|
-
|
|
25
|
-
@Column({
|
|
26
|
-
field: "key_name",
|
|
27
|
-
primaryKey: true,
|
|
28
|
-
type: DataType.STRING(100)
|
|
29
|
-
})
|
|
30
|
-
declare keyName: string;
|
|
31
|
-
|
|
32
|
-
@Column({
|
|
33
|
-
type: DataType.SMALLINT
|
|
34
|
-
})
|
|
35
|
-
declare type: number;
|
|
36
|
-
|
|
37
|
-
@Column({
|
|
38
|
-
type: DataType.STRING(255)
|
|
39
|
-
})
|
|
40
|
-
declare display: string;
|
|
41
|
-
|
|
42
|
-
@Column({
|
|
43
|
-
allowNull: true,
|
|
44
|
-
type: DataType.STRING
|
|
45
|
-
})
|
|
46
|
-
declare description?: string;
|
|
47
|
-
|
|
48
|
-
@Column({
|
|
49
|
-
allowNull: true,
|
|
50
|
-
type: DataType.INTEGER,
|
|
51
|
-
defaultValue: "1"
|
|
52
|
-
})
|
|
53
|
-
declare status?: number;
|
|
54
|
-
|
|
55
|
-
@Column({
|
|
56
|
-
field: "created_by",
|
|
57
|
-
allowNull: true,
|
|
58
|
-
type: DataType.STRING(60)
|
|
59
|
-
})
|
|
60
|
-
declare createdBy?: string;
|
|
61
|
-
|
|
62
|
-
@Column({
|
|
63
|
-
field: "created_date",
|
|
64
|
-
allowNull: true,
|
|
65
|
-
type: DataType.DATE
|
|
66
|
-
})
|
|
67
|
-
declare createdDate?: Date;
|
|
68
|
-
|
|
69
|
-
@Column({
|
|
70
|
-
field: "updated_by",
|
|
71
|
-
allowNull: true,
|
|
72
|
-
type: DataType.STRING(60)
|
|
73
|
-
})
|
|
74
|
-
declare updatedBy?: string;
|
|
75
|
-
|
|
76
|
-
@Column({
|
|
77
|
-
field: "updated_date",
|
|
78
|
-
allowNull: true,
|
|
79
|
-
type: DataType.DATE
|
|
80
|
-
})
|
|
81
|
-
declare updatedDate?: Date;
|
|
82
|
-
|
|
83
|
-
@HasOne(() => menu, {
|
|
84
|
-
sourceKey: "keyName"
|
|
85
|
-
})
|
|
86
|
-
declare menu?: menu;
|
|
87
|
-
|
|
88
|
-
@HasMany(() => authItemChild, {
|
|
89
|
-
sourceKey: "keyName"
|
|
90
|
-
})
|
|
91
|
-
declare authItemChildren?: authItemChild[];
|
|
92
|
-
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasOne, HasMany
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { menu } from "./menu";
|
|
5
|
+
import { authItemChild } from "./authItemChild";
|
|
6
|
+
|
|
7
|
+
export interface authItemAttributes {
|
|
8
|
+
keyName: string;
|
|
9
|
+
type: number;
|
|
10
|
+
display: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
status?: number;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdDate?: Date;
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
updatedDate?: Date;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Table({
|
|
20
|
+
tableName: "auth_item",
|
|
21
|
+
timestamps: false
|
|
22
|
+
})
|
|
23
|
+
export class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
|
|
24
|
+
|
|
25
|
+
@Column({
|
|
26
|
+
field: "key_name",
|
|
27
|
+
primaryKey: true,
|
|
28
|
+
type: DataType.STRING(100)
|
|
29
|
+
})
|
|
30
|
+
declare keyName: string;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
type: DataType.SMALLINT
|
|
34
|
+
})
|
|
35
|
+
declare type: number;
|
|
36
|
+
|
|
37
|
+
@Column({
|
|
38
|
+
type: DataType.STRING(255)
|
|
39
|
+
})
|
|
40
|
+
declare display: string;
|
|
41
|
+
|
|
42
|
+
@Column({
|
|
43
|
+
allowNull: true,
|
|
44
|
+
type: DataType.STRING
|
|
45
|
+
})
|
|
46
|
+
declare description?: string;
|
|
47
|
+
|
|
48
|
+
@Column({
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: DataType.INTEGER,
|
|
51
|
+
defaultValue: "1"
|
|
52
|
+
})
|
|
53
|
+
declare status?: number;
|
|
54
|
+
|
|
55
|
+
@Column({
|
|
56
|
+
field: "created_by",
|
|
57
|
+
allowNull: true,
|
|
58
|
+
type: DataType.STRING(60)
|
|
59
|
+
})
|
|
60
|
+
declare createdBy?: string;
|
|
61
|
+
|
|
62
|
+
@Column({
|
|
63
|
+
field: "created_date",
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: DataType.DATE
|
|
66
|
+
})
|
|
67
|
+
declare createdDate?: Date;
|
|
68
|
+
|
|
69
|
+
@Column({
|
|
70
|
+
field: "updated_by",
|
|
71
|
+
allowNull: true,
|
|
72
|
+
type: DataType.STRING(60)
|
|
73
|
+
})
|
|
74
|
+
declare updatedBy?: string;
|
|
75
|
+
|
|
76
|
+
@Column({
|
|
77
|
+
field: "updated_date",
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: DataType.DATE
|
|
80
|
+
})
|
|
81
|
+
declare updatedDate?: Date;
|
|
82
|
+
|
|
83
|
+
@HasOne(() => menu, {
|
|
84
|
+
sourceKey: "keyName"
|
|
85
|
+
})
|
|
86
|
+
declare menu?: menu;
|
|
87
|
+
|
|
88
|
+
@HasMany(() => authItemChild, {
|
|
89
|
+
sourceKey: "keyName"
|
|
90
|
+
})
|
|
91
|
+
declare authItemChildren?: authItemChild[];
|
|
92
|
+
|
|
93
93
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
-
} from "sequelize-typescript";
|
|
4
|
-
import { authItem } from "./authItem";
|
|
5
|
-
|
|
6
|
-
export interface authItemChildAttributes {
|
|
7
|
-
parent: string;
|
|
8
|
-
child: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@Table({
|
|
12
|
-
tableName: "auth_item_child",
|
|
13
|
-
timestamps: false
|
|
14
|
-
})
|
|
15
|
-
export class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
|
|
16
|
-
|
|
17
|
-
@ForeignKey(() => authItem)
|
|
18
|
-
@Column({
|
|
19
|
-
primaryKey: true,
|
|
20
|
-
type: DataType.STRING(64)
|
|
21
|
-
})
|
|
22
|
-
declare parent: string;
|
|
23
|
-
|
|
24
|
-
@ForeignKey(() => authItem)
|
|
25
|
-
@Column({
|
|
26
|
-
primaryKey: true,
|
|
27
|
-
type: DataType.STRING(64)
|
|
28
|
-
})
|
|
29
|
-
declare child: string;
|
|
30
|
-
|
|
31
|
-
@BelongsTo(() => authItem)
|
|
32
|
-
declare authItem?: authItem;
|
|
33
|
-
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { authItem } from "./authItem";
|
|
5
|
+
|
|
6
|
+
export interface authItemChildAttributes {
|
|
7
|
+
parent: string;
|
|
8
|
+
child: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Table({
|
|
12
|
+
tableName: "auth_item_child",
|
|
13
|
+
timestamps: false
|
|
14
|
+
})
|
|
15
|
+
export class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
|
|
16
|
+
|
|
17
|
+
@ForeignKey(() => authItem)
|
|
18
|
+
@Column({
|
|
19
|
+
primaryKey: true,
|
|
20
|
+
type: DataType.STRING(64)
|
|
21
|
+
})
|
|
22
|
+
declare parent: string;
|
|
23
|
+
|
|
24
|
+
@ForeignKey(() => authItem)
|
|
25
|
+
@Column({
|
|
26
|
+
primaryKey: true,
|
|
27
|
+
type: DataType.STRING(64)
|
|
28
|
+
})
|
|
29
|
+
declare child: string;
|
|
30
|
+
|
|
31
|
+
@BelongsTo(() => authItem)
|
|
32
|
+
declare authItem?: authItem;
|
|
33
|
+
|
|
34
34
|
}
|
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
4
|
|
|
5
5
|
export interface filesAttributes {
|
|
6
|
-
id
|
|
6
|
+
id?: number;
|
|
7
7
|
uuid: string;
|
|
8
|
+
userUuid?: string;
|
|
8
9
|
name?: string;
|
|
9
10
|
originalName?: string;
|
|
10
11
|
mimetype?: string;
|
|
11
12
|
filePath?: string;
|
|
12
13
|
fileSize?: number;
|
|
14
|
+
path?: string;
|
|
13
15
|
status?: number;
|
|
14
16
|
createdBy?: string;
|
|
15
17
|
createdDate?: Date;
|
|
@@ -25,15 +27,23 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
|
|
|
25
27
|
|
|
26
28
|
@Column({
|
|
27
29
|
primaryKey: true,
|
|
30
|
+
autoIncrement: true,
|
|
28
31
|
type: DataType.INTEGER
|
|
29
32
|
})
|
|
30
|
-
declare id
|
|
33
|
+
declare id?: number;
|
|
31
34
|
|
|
32
35
|
@Column({
|
|
33
36
|
type: DataType.STRING(60)
|
|
34
37
|
})
|
|
35
38
|
declare uuid: string;
|
|
36
39
|
|
|
40
|
+
@Column({
|
|
41
|
+
field: "user_uuid",
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: DataType.STRING(60)
|
|
44
|
+
})
|
|
45
|
+
declare userUuid?: string;
|
|
46
|
+
|
|
37
47
|
@Column({
|
|
38
48
|
allowNull: true,
|
|
39
49
|
type: DataType.STRING(255)
|
|
@@ -67,6 +77,12 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
|
|
|
67
77
|
})
|
|
68
78
|
declare fileSize?: number;
|
|
69
79
|
|
|
80
|
+
@Column({
|
|
81
|
+
allowNull: true,
|
|
82
|
+
type: DataType.STRING(255)
|
|
83
|
+
})
|
|
84
|
+
declare path?: string;
|
|
85
|
+
|
|
70
86
|
@Column({
|
|
71
87
|
allowNull: true,
|
|
72
88
|
type: DataType.INTEGER
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
export * from "./authAssignment";
|
|
2
|
-
export * from "./authItem";
|
|
3
|
-
export * from "./authItemChild";
|
|
4
|
-
export * from "./authRole";
|
|
5
|
-
export * from "./authRoleChild";
|
|
6
|
-
export * from "./files";
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
1
|
+
export * from "./authAssignment";
|
|
2
|
+
export * from "./authItem";
|
|
3
|
+
export * from "./authItemChild";
|
|
4
|
+
export * from "./authRole";
|
|
5
|
+
export * from "./authRoleChild";
|
|
6
|
+
export * from "./files";
|
|
7
|
+
export * from "./mdBanner";
|
|
8
|
+
export * from "./mdContent";
|
|
9
|
+
export * from "./mdContentGroup";
|
|
10
|
+
export * from "./mdDocumentPdf";
|
|
11
|
+
export * from "./mdDownload";
|
|
12
|
+
export * from "./mdFaq";
|
|
13
|
+
export * from "./mdFaqGroup";
|
|
14
|
+
export * from "./mdLink";
|
|
15
|
+
export * from "./mdSetting";
|
|
16
|
+
export * from "./menu";
|
|
17
|
+
export * from "./msModule";
|
|
18
|
+
export * from "./oauthAccessToken";
|
|
19
|
+
export * from "./oauthRefreshToken";
|
|
20
|
+
export * from "./userCenterV";
|
|
21
|
+
export * from "./userRoleV";
|
|
22
|
+
export * from "./users";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface mdBannerAttributes {
|
|
6
|
+
id: number;
|
|
7
|
+
uuid?: string;
|
|
8
|
+
keyName?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
fileUuid?: string;
|
|
12
|
+
sort?: number;
|
|
13
|
+
status?: number;
|
|
14
|
+
createdBy?: string;
|
|
15
|
+
createdDate?: Date;
|
|
16
|
+
updatedBy?: string;
|
|
17
|
+
updatedDate?: Date;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@Table({
|
|
21
|
+
tableName: "md_banner",
|
|
22
|
+
timestamps: false
|
|
23
|
+
})
|
|
24
|
+
export class mdBanner extends Model<mdBannerAttributes, mdBannerAttributes> implements mdBannerAttributes {
|
|
25
|
+
|
|
26
|
+
@Column({
|
|
27
|
+
primaryKey: true,
|
|
28
|
+
type: DataType.INTEGER
|
|
29
|
+
})
|
|
30
|
+
declare id: number;
|
|
31
|
+
|
|
32
|
+
@Column({
|
|
33
|
+
allowNull: true,
|
|
34
|
+
type: DataType.STRING(60)
|
|
35
|
+
})
|
|
36
|
+
declare uuid?: string;
|
|
37
|
+
|
|
38
|
+
@Column({
|
|
39
|
+
field: "key_name",
|
|
40
|
+
allowNull: true,
|
|
41
|
+
type: DataType.STRING(100)
|
|
42
|
+
})
|
|
43
|
+
declare keyName?: string;
|
|
44
|
+
|
|
45
|
+
@Column({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: DataType.STRING(255)
|
|
48
|
+
})
|
|
49
|
+
declare name?: string;
|
|
50
|
+
|
|
51
|
+
@Column({
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: DataType.STRING
|
|
54
|
+
})
|
|
55
|
+
declare description?: string;
|
|
56
|
+
|
|
57
|
+
@Column({
|
|
58
|
+
field: "file_uuid",
|
|
59
|
+
allowNull: true,
|
|
60
|
+
type: DataType.STRING(60)
|
|
61
|
+
})
|
|
62
|
+
declare fileUuid?: string;
|
|
63
|
+
|
|
64
|
+
@Column({
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: DataType.INTEGER
|
|
67
|
+
})
|
|
68
|
+
declare sort?: number;
|
|
69
|
+
|
|
70
|
+
@Column({
|
|
71
|
+
allowNull: true,
|
|
72
|
+
type: DataType.INTEGER
|
|
73
|
+
})
|
|
74
|
+
declare status?: number;
|
|
75
|
+
|
|
76
|
+
@Column({
|
|
77
|
+
field: "created_by",
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: DataType.STRING(60)
|
|
80
|
+
})
|
|
81
|
+
declare createdBy?: string;
|
|
82
|
+
|
|
83
|
+
@Column({
|
|
84
|
+
field: "created_date",
|
|
85
|
+
allowNull: true,
|
|
86
|
+
type: DataType.DATE
|
|
87
|
+
})
|
|
88
|
+
declare createdDate?: Date;
|
|
89
|
+
|
|
90
|
+
@Column({
|
|
91
|
+
field: "updated_by",
|
|
92
|
+
allowNull: true,
|
|
93
|
+
type: DataType.STRING(60)
|
|
94
|
+
})
|
|
95
|
+
declare updatedBy?: string;
|
|
96
|
+
|
|
97
|
+
@Column({
|
|
98
|
+
field: "updated_date",
|
|
99
|
+
allowNull: true,
|
|
100
|
+
type: DataType.DATE
|
|
101
|
+
})
|
|
102
|
+
declare updatedDate?: Date;
|
|
103
|
+
|
|
104
|
+
}
|
|
@@ -6,7 +6,8 @@ import { mdContentGroup } from "./mdContentGroup";
|
|
|
6
6
|
|
|
7
7
|
export interface mdContentAttributes {
|
|
8
8
|
id?: number;
|
|
9
|
-
uuid:
|
|
9
|
+
uuid: string;
|
|
10
|
+
keyName?: string;
|
|
10
11
|
groupId?: number;
|
|
11
12
|
userId: number;
|
|
12
13
|
title?: string;
|
|
@@ -14,8 +15,9 @@ export interface mdContentAttributes {
|
|
|
14
15
|
metaTitle?: string;
|
|
15
16
|
metaKeyword?: string;
|
|
16
17
|
metaDescription?: string;
|
|
17
|
-
imageCover?:
|
|
18
|
+
imageCover?: object;
|
|
18
19
|
imageGallery?: object;
|
|
20
|
+
sort?: number;
|
|
19
21
|
status?: number;
|
|
20
22
|
createdBy?: string;
|
|
21
23
|
createdDate?: Date;
|
|
@@ -37,9 +39,16 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
|
|
|
37
39
|
declare id?: number;
|
|
38
40
|
|
|
39
41
|
@Column({
|
|
40
|
-
type: DataType.
|
|
42
|
+
type: DataType.STRING(60)
|
|
41
43
|
})
|
|
42
|
-
declare uuid:
|
|
44
|
+
declare uuid: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
field: "key_name",
|
|
48
|
+
allowNull: true,
|
|
49
|
+
type: DataType.STRING(100)
|
|
50
|
+
})
|
|
51
|
+
declare keyName?: string;
|
|
43
52
|
|
|
44
53
|
@ForeignKey(() => mdContentGroup)
|
|
45
54
|
@Column({
|
|
@@ -92,9 +101,9 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
|
|
|
92
101
|
@Column({
|
|
93
102
|
field: "image_cover",
|
|
94
103
|
allowNull: true,
|
|
95
|
-
type: DataType.
|
|
104
|
+
type: DataType.JSON
|
|
96
105
|
})
|
|
97
|
-
declare imageCover?:
|
|
106
|
+
declare imageCover?: object;
|
|
98
107
|
|
|
99
108
|
@Column({
|
|
100
109
|
field: "image_gallery",
|
|
@@ -103,6 +112,12 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
|
|
|
103
112
|
})
|
|
104
113
|
declare imageGallery?: object;
|
|
105
114
|
|
|
115
|
+
@Column({
|
|
116
|
+
allowNull: true,
|
|
117
|
+
type: DataType.INTEGER
|
|
118
|
+
})
|
|
119
|
+
declare sort?: number;
|
|
120
|
+
|
|
106
121
|
@Column({
|
|
107
122
|
allowNull: true,
|
|
108
123
|
type: DataType.INTEGER
|
|
@@ -5,8 +5,11 @@ import { mdContent } from "./mdContent";
|
|
|
5
5
|
|
|
6
6
|
export interface mdContentGroupAttributes {
|
|
7
7
|
id?: number;
|
|
8
|
+
uuid?: string;
|
|
9
|
+
keyName?: string;
|
|
8
10
|
name: string;
|
|
9
11
|
description?: string;
|
|
12
|
+
status?: number;
|
|
10
13
|
createdBy?: string;
|
|
11
14
|
createdDate?: Date;
|
|
12
15
|
updatedBy?: string;
|
|
@@ -26,6 +29,19 @@ export class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGro
|
|
|
26
29
|
})
|
|
27
30
|
declare id?: number;
|
|
28
31
|
|
|
32
|
+
@Column({
|
|
33
|
+
allowNull: true,
|
|
34
|
+
type: DataType.STRING(60)
|
|
35
|
+
})
|
|
36
|
+
declare uuid?: string;
|
|
37
|
+
|
|
38
|
+
@Column({
|
|
39
|
+
field: "key_name",
|
|
40
|
+
allowNull: true,
|
|
41
|
+
type: DataType.STRING(100)
|
|
42
|
+
})
|
|
43
|
+
declare keyName?: string;
|
|
44
|
+
|
|
29
45
|
@Column({
|
|
30
46
|
type: DataType.STRING(255)
|
|
31
47
|
})
|
|
@@ -37,6 +53,12 @@ export class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGro
|
|
|
37
53
|
})
|
|
38
54
|
declare description?: string;
|
|
39
55
|
|
|
56
|
+
@Column({
|
|
57
|
+
allowNull: true,
|
|
58
|
+
type: DataType.INTEGER
|
|
59
|
+
})
|
|
60
|
+
declare status?: number;
|
|
61
|
+
|
|
40
62
|
@Column({
|
|
41
63
|
field: "created_by",
|
|
42
64
|
allowNull: true,
|