@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
package/databases/schema/menu.ts
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
-
} from "sequelize-typescript";
|
|
4
|
-
import { msModule } from "./msModule";
|
|
5
|
-
import { authItem } from "./authItem";
|
|
6
|
-
|
|
7
|
-
export interface menuAttributes {
|
|
8
|
-
id?: number;
|
|
9
|
-
uuid: string;
|
|
10
|
-
keyName?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
display?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
moduleId?: number;
|
|
15
|
-
sort?: number;
|
|
16
|
-
status?: number;
|
|
17
|
-
createdBy?: string;
|
|
18
|
-
createdDate?: Date;
|
|
19
|
-
updatedBy?: string;
|
|
20
|
-
updatedDate?: Date;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@Table({
|
|
24
|
-
tableName: "menu",
|
|
25
|
-
timestamps: false
|
|
26
|
-
})
|
|
27
|
-
export class menu extends Model<menuAttributes, menuAttributes> implements menuAttributes {
|
|
28
|
-
|
|
29
|
-
@Column({
|
|
30
|
-
primaryKey: true,
|
|
31
|
-
autoIncrement: true,
|
|
32
|
-
type: DataType.INTEGER
|
|
33
|
-
})
|
|
34
|
-
declare id?: number;
|
|
35
|
-
|
|
36
|
-
@Column({
|
|
37
|
-
type: DataType.STRING(60)
|
|
38
|
-
})
|
|
39
|
-
declare uuid: string;
|
|
40
|
-
|
|
41
|
-
@ForeignKey(() => authItem)
|
|
42
|
-
@Column({
|
|
43
|
-
field: "key_name",
|
|
44
|
-
allowNull: true,
|
|
45
|
-
type: DataType.STRING(100)
|
|
46
|
-
})
|
|
47
|
-
declare keyName?: string;
|
|
48
|
-
|
|
49
|
-
@Column({
|
|
50
|
-
allowNull: true,
|
|
51
|
-
type: DataType.STRING(255)
|
|
52
|
-
})
|
|
53
|
-
declare icon?: string;
|
|
54
|
-
|
|
55
|
-
@Column({
|
|
56
|
-
allowNull: true,
|
|
57
|
-
type: DataType.STRING(255)
|
|
58
|
-
})
|
|
59
|
-
declare display?: string;
|
|
60
|
-
|
|
61
|
-
@Column({
|
|
62
|
-
allowNull: true,
|
|
63
|
-
type: DataType.STRING(255)
|
|
64
|
-
})
|
|
65
|
-
declare description?: string;
|
|
66
|
-
|
|
67
|
-
@ForeignKey(() => msModule)
|
|
68
|
-
@Column({
|
|
69
|
-
field: "module_id",
|
|
70
|
-
allowNull: true,
|
|
71
|
-
type: DataType.INTEGER
|
|
72
|
-
})
|
|
73
|
-
declare moduleId?: number;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
@Column({
|
|
82
|
-
allowNull: true,
|
|
83
|
-
type: DataType.INTEGER
|
|
84
|
-
})
|
|
85
|
-
declare
|
|
86
|
-
|
|
87
|
-
@Column({
|
|
88
|
-
field: "created_by",
|
|
89
|
-
allowNull: true,
|
|
90
|
-
type: DataType.STRING(60)
|
|
91
|
-
})
|
|
92
|
-
declare createdBy?: string;
|
|
93
|
-
|
|
94
|
-
@Column({
|
|
95
|
-
field: "created_date",
|
|
96
|
-
allowNull: true,
|
|
97
|
-
type: DataType.DATE
|
|
98
|
-
})
|
|
99
|
-
declare createdDate?: Date;
|
|
100
|
-
|
|
101
|
-
@Column({
|
|
102
|
-
field: "updated_by",
|
|
103
|
-
allowNull: true,
|
|
104
|
-
type: DataType.STRING(60)
|
|
105
|
-
})
|
|
106
|
-
declare updatedBy?: string;
|
|
107
|
-
|
|
108
|
-
@Column({
|
|
109
|
-
field: "updated_date",
|
|
110
|
-
allowNull: true,
|
|
111
|
-
type: DataType.DATE
|
|
112
|
-
})
|
|
113
|
-
declare updatedDate?: Date;
|
|
114
|
-
|
|
115
|
-
@BelongsTo(() => msModule)
|
|
116
|
-
declare msModule?: msModule;
|
|
117
|
-
|
|
118
|
-
@BelongsTo(() => authItem)
|
|
119
|
-
declare authItem?: authItem;
|
|
120
|
-
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { msModule } from "./msModule";
|
|
5
|
+
import { authItem } from "./authItem";
|
|
6
|
+
|
|
7
|
+
export interface menuAttributes {
|
|
8
|
+
id?: number;
|
|
9
|
+
uuid: string;
|
|
10
|
+
keyName?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
display?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
moduleId?: number;
|
|
15
|
+
sort?: number;
|
|
16
|
+
status?: number;
|
|
17
|
+
createdBy?: string;
|
|
18
|
+
createdDate?: Date;
|
|
19
|
+
updatedBy?: string;
|
|
20
|
+
updatedDate?: Date;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Table({
|
|
24
|
+
tableName: "menu",
|
|
25
|
+
timestamps: false
|
|
26
|
+
})
|
|
27
|
+
export class menu extends Model<menuAttributes, menuAttributes> implements menuAttributes {
|
|
28
|
+
|
|
29
|
+
@Column({
|
|
30
|
+
primaryKey: true,
|
|
31
|
+
autoIncrement: true,
|
|
32
|
+
type: DataType.INTEGER
|
|
33
|
+
})
|
|
34
|
+
declare id?: number;
|
|
35
|
+
|
|
36
|
+
@Column({
|
|
37
|
+
type: DataType.STRING(60)
|
|
38
|
+
})
|
|
39
|
+
declare uuid: string;
|
|
40
|
+
|
|
41
|
+
@ForeignKey(() => authItem)
|
|
42
|
+
@Column({
|
|
43
|
+
field: "key_name",
|
|
44
|
+
allowNull: true,
|
|
45
|
+
type: DataType.STRING(100)
|
|
46
|
+
})
|
|
47
|
+
declare keyName?: string;
|
|
48
|
+
|
|
49
|
+
@Column({
|
|
50
|
+
allowNull: true,
|
|
51
|
+
type: DataType.STRING(255)
|
|
52
|
+
})
|
|
53
|
+
declare icon?: string;
|
|
54
|
+
|
|
55
|
+
@Column({
|
|
56
|
+
allowNull: true,
|
|
57
|
+
type: DataType.STRING(255)
|
|
58
|
+
})
|
|
59
|
+
declare display?: string;
|
|
60
|
+
|
|
61
|
+
@Column({
|
|
62
|
+
allowNull: true,
|
|
63
|
+
type: DataType.STRING(255)
|
|
64
|
+
})
|
|
65
|
+
declare description?: string;
|
|
66
|
+
|
|
67
|
+
@ForeignKey(() => msModule)
|
|
68
|
+
@Column({
|
|
69
|
+
field: "module_id",
|
|
70
|
+
allowNull: true,
|
|
71
|
+
type: DataType.INTEGER
|
|
72
|
+
})
|
|
73
|
+
declare moduleId?: number;
|
|
74
|
+
|
|
75
|
+
@Column({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: DataType.INTEGER
|
|
78
|
+
})
|
|
79
|
+
declare sort?: number;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
allowNull: true,
|
|
83
|
+
type: DataType.INTEGER
|
|
84
|
+
})
|
|
85
|
+
declare status?: number;
|
|
86
|
+
|
|
87
|
+
@Column({
|
|
88
|
+
field: "created_by",
|
|
89
|
+
allowNull: true,
|
|
90
|
+
type: DataType.STRING(60)
|
|
91
|
+
})
|
|
92
|
+
declare createdBy?: string;
|
|
93
|
+
|
|
94
|
+
@Column({
|
|
95
|
+
field: "created_date",
|
|
96
|
+
allowNull: true,
|
|
97
|
+
type: DataType.DATE
|
|
98
|
+
})
|
|
99
|
+
declare createdDate?: Date;
|
|
100
|
+
|
|
101
|
+
@Column({
|
|
102
|
+
field: "updated_by",
|
|
103
|
+
allowNull: true,
|
|
104
|
+
type: DataType.STRING(60)
|
|
105
|
+
})
|
|
106
|
+
declare updatedBy?: string;
|
|
107
|
+
|
|
108
|
+
@Column({
|
|
109
|
+
field: "updated_date",
|
|
110
|
+
allowNull: true,
|
|
111
|
+
type: DataType.DATE
|
|
112
|
+
})
|
|
113
|
+
declare updatedDate?: Date;
|
|
114
|
+
|
|
115
|
+
@BelongsTo(() => msModule)
|
|
116
|
+
declare msModule?: msModule;
|
|
117
|
+
|
|
118
|
+
@BelongsTo(() => authItem)
|
|
119
|
+
declare authItem?: authItem;
|
|
120
|
+
|
|
121
121
|
}
|
|
@@ -1,73 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
|
-
} from "sequelize-typescript";
|
|
4
|
-
import { menu } from "./menu";
|
|
5
|
-
|
|
6
|
-
export interface msModuleAttributes {
|
|
7
|
-
id?: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
allowNull: true,
|
|
43
|
-
type: DataType.
|
|
44
|
-
})
|
|
45
|
-
declare
|
|
46
|
-
|
|
47
|
-
@Column({
|
|
48
|
-
field: "
|
|
49
|
-
allowNull: true,
|
|
50
|
-
type: DataType.
|
|
51
|
-
})
|
|
52
|
-
declare
|
|
53
|
-
|
|
54
|
-
@Column({
|
|
55
|
-
field: "
|
|
56
|
-
allowNull: true,
|
|
57
|
-
type: DataType.
|
|
58
|
-
})
|
|
59
|
-
declare
|
|
60
|
-
|
|
61
|
-
@Column({
|
|
62
|
-
field: "
|
|
63
|
-
allowNull: true,
|
|
64
|
-
type: DataType.
|
|
65
|
-
})
|
|
66
|
-
declare
|
|
67
|
-
|
|
68
|
-
@
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { menu } from "./menu";
|
|
5
|
+
|
|
6
|
+
export interface msModuleAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
key?: string;
|
|
9
|
+
name: string;
|
|
10
|
+
status?: number;
|
|
11
|
+
createdBy?: string;
|
|
12
|
+
createdDate?: Date;
|
|
13
|
+
updatedBy?: string;
|
|
14
|
+
updatedDate?: Date;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@Table({
|
|
18
|
+
tableName: "ms_module",
|
|
19
|
+
timestamps: false
|
|
20
|
+
})
|
|
21
|
+
export class msModule extends Model<msModuleAttributes, msModuleAttributes> implements msModuleAttributes {
|
|
22
|
+
|
|
23
|
+
@Column({
|
|
24
|
+
primaryKey: true,
|
|
25
|
+
autoIncrement: true,
|
|
26
|
+
type: DataType.INTEGER
|
|
27
|
+
})
|
|
28
|
+
declare id?: number;
|
|
29
|
+
|
|
30
|
+
@Column({
|
|
31
|
+
allowNull: true,
|
|
32
|
+
type: DataType.STRING(100)
|
|
33
|
+
})
|
|
34
|
+
declare key?: string;
|
|
35
|
+
|
|
36
|
+
@Column({
|
|
37
|
+
type: DataType.STRING(100)
|
|
38
|
+
})
|
|
39
|
+
declare name: string;
|
|
40
|
+
|
|
41
|
+
@Column({
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: DataType.INTEGER
|
|
44
|
+
})
|
|
45
|
+
declare status?: number;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
field: "created_by",
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: DataType.STRING(60)
|
|
51
|
+
})
|
|
52
|
+
declare createdBy?: string;
|
|
53
|
+
|
|
54
|
+
@Column({
|
|
55
|
+
field: "created_date",
|
|
56
|
+
allowNull: true,
|
|
57
|
+
type: DataType.DATE
|
|
58
|
+
})
|
|
59
|
+
declare createdDate?: Date;
|
|
60
|
+
|
|
61
|
+
@Column({
|
|
62
|
+
field: "updated_by",
|
|
63
|
+
allowNull: true,
|
|
64
|
+
type: DataType.STRING(60)
|
|
65
|
+
})
|
|
66
|
+
declare updatedBy?: string;
|
|
67
|
+
|
|
68
|
+
@Column({
|
|
69
|
+
field: "updated_date",
|
|
70
|
+
allowNull: true,
|
|
71
|
+
type: DataType.DATE
|
|
72
|
+
})
|
|
73
|
+
declare updatedDate?: Date;
|
|
74
|
+
|
|
75
|
+
@HasMany(() => menu, {
|
|
76
|
+
sourceKey: "id"
|
|
77
|
+
})
|
|
78
|
+
declare menus?: menu[];
|
|
79
|
+
|
|
73
80
|
}
|