@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.
Files changed (53) hide show
  1. package/{authAssignment-C26INzWS.d.ts → authAssignment-BUrX9fXX.d.ts} +14 -5
  2. package/{authItem-Da_KN9rn.d.ts → authItem-CLwL7pX_.d.ts} +3 -1
  3. package/databases/schema/authItem.ts +92 -92
  4. package/databases/schema/authItemChild.ts +33 -33
  5. package/databases/schema/files.ts +18 -2
  6. package/databases/schema/index.ts +22 -17
  7. package/databases/schema/mdBanner.ts +104 -0
  8. package/databases/schema/mdContent.ts +21 -6
  9. package/databases/schema/mdContentGroup.ts +22 -0
  10. package/databases/schema/mdDocumentPdf.ts +112 -0
  11. package/databases/schema/mdDownload.ts +112 -0
  12. package/databases/schema/mdFaq.ts +104 -0
  13. package/databases/schema/mdFaqGroup.ts +89 -0
  14. package/databases/schema/mdSetting.ts +97 -0
  15. package/databases/schema/menu.ts +120 -120
  16. package/databases/schema/msModule.ts +79 -72
  17. package/databases/schema/users.ts +214 -217
  18. package/databases/schema/usersRoleV.ts +1 -1
  19. package/databases/tables/authAssignment.d.ts +1 -1
  20. package/databases/tables/authAssignment.js +34 -4
  21. package/databases/tables/authItem.d.ts +1 -1
  22. package/databases/tables/authItem.js +8 -2
  23. package/databases/tables/authItemChild.d.ts +1 -1
  24. package/databases/tables/authItemChild.js +8 -2
  25. package/databases/tables/authRole.d.ts +1 -1
  26. package/databases/tables/authRole.js +34 -4
  27. package/databases/tables/files.d.ts +6 -2
  28. package/databases/tables/files.js +14 -0
  29. package/databases/tables/index.d.ts +8 -3
  30. package/databases/tables/index.js +734 -185
  31. package/databases/tables/mdBanner.d.ts +32 -0
  32. package/databases/tables/mdBanner.js +124 -0
  33. package/databases/tables/mdContent.d.ts +1 -1
  34. package/databases/tables/mdContent.js +34 -4
  35. package/databases/tables/mdContentGroup.d.ts +1 -1
  36. package/databases/tables/mdContentGroup.js +34 -4
  37. package/databases/tables/mdDocumentPdf.d.ts +34 -0
  38. package/databases/tables/mdDocumentPdf.js +131 -0
  39. package/databases/tables/mdDownload.d.ts +34 -0
  40. package/databases/tables/mdDownload.js +131 -0
  41. package/databases/tables/mdFaq.d.ts +32 -0
  42. package/databases/tables/mdFaq.js +124 -0
  43. package/databases/tables/mdFaqGroup.d.ts +28 -0
  44. package/databases/tables/mdFaqGroup.js +111 -0
  45. package/databases/tables/mdSetting.d.ts +30 -0
  46. package/databases/tables/mdSetting.js +118 -0
  47. package/databases/tables/menu.d.ts +1 -1
  48. package/databases/tables/menu.js +8 -2
  49. package/databases/tables/msModule.d.ts +1 -1
  50. package/databases/tables/msModule.js +8 -2
  51. package/databases/tables/users.d.ts +1 -1
  52. package/databases/tables/users.js +34 -4
  53. package/package.json +1 -1
@@ -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
- @Column({
76
- allowNull: true,
77
- type: DataType.INTEGER
78
- })
79
- declare status?: number;
80
-
81
- @Column({
82
- allowNull: true,
83
- type: DataType.INTEGER
84
- })
85
- declare sort?: 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
-
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
- name: string;
9
- status?: number;
10
- createdBy?: string;
11
- createdDate?: Date;
12
- updatedBy?: string;
13
- updatedDate?: Date;
14
- }
15
-
16
- @Table({
17
- tableName: "ms_module",
18
- timestamps: false
19
- })
20
- export class msModule extends Model<msModuleAttributes, msModuleAttributes> implements msModuleAttributes {
21
-
22
- @Column({
23
- primaryKey: true,
24
- autoIncrement: true,
25
- type: DataType.INTEGER
26
- })
27
- declare id?: number;
28
-
29
- @Column({
30
- type: DataType.STRING(100)
31
- })
32
- declare name: string;
33
-
34
- @Column({
35
- allowNull: true,
36
- type: DataType.INTEGER
37
- })
38
- declare status?: number;
39
-
40
- @Column({
41
- field: "created_by",
42
- allowNull: true,
43
- type: DataType.STRING(60)
44
- })
45
- declare createdBy?: string;
46
-
47
- @Column({
48
- field: "created_date",
49
- allowNull: true,
50
- type: DataType.DATE
51
- })
52
- declare createdDate?: Date;
53
-
54
- @Column({
55
- field: "updated_by",
56
- allowNull: true,
57
- type: DataType.STRING(60)
58
- })
59
- declare updatedBy?: string;
60
-
61
- @Column({
62
- field: "updated_date",
63
- allowNull: true,
64
- type: DataType.DATE
65
- })
66
- declare updatedDate?: Date;
67
-
68
- @HasMany(() => menu, {
69
- sourceKey: "id"
70
- })
71
- declare menus?: menu[];
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
  }