@admc-go-th/admc-library 1.0.26 → 1.0.27

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 (35) hide show
  1. package/{authAssignment-C26INzWS.d.ts → authAssignment-Bst2FjKd.d.ts} +6 -3
  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 +11 -2
  6. package/databases/schema/index.ts +16 -17
  7. package/databases/schema/mdContent.ts +11 -3
  8. package/databases/schema/mdContentGroup.ts +8 -0
  9. package/databases/schema/menu.ts +120 -120
  10. package/databases/schema/msModule.ts +79 -72
  11. package/databases/schema/users.ts +214 -217
  12. package/databases/schema/usersRoleV.ts +1 -1
  13. package/databases/tables/authAssignment.d.ts +1 -1
  14. package/databases/tables/authAssignment.js +15 -3
  15. package/databases/tables/authItem.d.ts +1 -1
  16. package/databases/tables/authItem.js +8 -2
  17. package/databases/tables/authItemChild.d.ts +1 -1
  18. package/databases/tables/authItemChild.js +8 -2
  19. package/databases/tables/authRole.d.ts +1 -1
  20. package/databases/tables/authRole.js +15 -3
  21. package/databases/tables/files.d.ts +4 -2
  22. package/databases/tables/files.js +8 -0
  23. package/databases/tables/index.d.ts +2 -3
  24. package/databases/tables/index.js +33 -49
  25. package/databases/tables/mdContent.d.ts +1 -1
  26. package/databases/tables/mdContent.js +15 -3
  27. package/databases/tables/mdContentGroup.d.ts +1 -1
  28. package/databases/tables/mdContentGroup.js +15 -3
  29. package/databases/tables/menu.d.ts +1 -1
  30. package/databases/tables/menu.js +8 -2
  31. package/databases/tables/msModule.d.ts +1 -1
  32. package/databases/tables/msModule.js +8 -2
  33. package/databases/tables/users.d.ts +1 -1
  34. package/databases/tables/users.js +15 -3
  35. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { Model } from 'sequelize-typescript';
2
2
 
3
3
  interface mdContentGroupAttributes {
4
4
  id?: number;
5
+ keyName?: string;
5
6
  name: string;
6
7
  description?: string;
7
8
  createdBy?: string;
@@ -11,6 +12,7 @@ interface mdContentGroupAttributes {
11
12
  }
12
13
  declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGroupAttributes> implements mdContentGroupAttributes {
13
14
  id?: number;
15
+ keyName?: string;
14
16
  name: string;
15
17
  description?: string;
16
18
  createdBy?: string;
@@ -23,6 +25,7 @@ declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGr
23
25
  interface mdContentAttributes {
24
26
  id?: number;
25
27
  uuid: number;
28
+ keyName?: string;
26
29
  groupId?: number;
27
30
  userId: number;
28
31
  title?: string;
@@ -30,7 +33,7 @@ interface mdContentAttributes {
30
33
  metaTitle?: string;
31
34
  metaKeyword?: string;
32
35
  metaDescription?: string;
33
- imageCover?: string;
36
+ imageCover?: object;
34
37
  imageGallery?: object;
35
38
  status?: number;
36
39
  createdBy?: string;
@@ -41,6 +44,7 @@ interface mdContentAttributes {
41
44
  declare class mdContent extends Model<mdContentAttributes, mdContentAttributes> implements mdContentAttributes {
42
45
  id?: number;
43
46
  uuid: number;
47
+ keyName?: string;
44
48
  groupId?: number;
45
49
  userId: number;
46
50
  title?: string;
@@ -48,7 +52,7 @@ declare class mdContent extends Model<mdContentAttributes, mdContentAttributes>
48
52
  metaTitle?: string;
49
53
  metaKeyword?: string;
50
54
  metaDescription?: string;
51
- imageCover?: string;
55
+ imageCover?: object;
52
56
  imageGallery?: object;
53
57
  status?: number;
54
58
  createdBy?: string;
@@ -85,7 +89,6 @@ interface usersAttributes {
85
89
  updatedDate?: Date;
86
90
  address?: string;
87
91
  other?: string;
88
- roleSite?: string[];
89
92
  }
90
93
  declare class users extends Model<usersAttributes, usersAttributes> implements usersAttributes {
91
94
  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,8 +3,9 @@ import {
3
3
  } from "sequelize-typescript";
4
4
 
5
5
  export interface filesAttributes {
6
- id: number;
6
+ id?: number;
7
7
  uuid: string;
8
+ userUuid?: string;
8
9
  name?: string;
9
10
  originalName?: string;
10
11
  mimetype?: string;
@@ -25,15 +26,23 @@ export class files extends Model<filesAttributes, filesAttributes> implements fi
25
26
 
26
27
  @Column({
27
28
  primaryKey: true,
29
+ autoIncrement: true,
28
30
  type: DataType.INTEGER
29
31
  })
30
- declare id: number;
32
+ declare id?: number;
31
33
 
32
34
  @Column({
33
35
  type: DataType.STRING(60)
34
36
  })
35
37
  declare uuid: string;
36
38
 
39
+ @Column({
40
+ field: "user_uuid",
41
+ allowNull: true,
42
+ type: DataType.STRING(60)
43
+ })
44
+ declare userUuid?: string;
45
+
37
46
  @Column({
38
47
  allowNull: true,
39
48
  type: DataType.STRING(255)
@@ -1,17 +1,16 @@
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 "./mdContent";
8
- export * from "./mdContentGroup";
9
- export * from "./mdLink";
10
- export * from "./menu";
11
- export * from "./msModule";
12
- export * from "./oauthAccessToken";
13
- export * from "./oauthRefreshToken";
14
- export * from "./userCenterV";
15
- export * from "./userRoleV";
16
- export * from "./users";
17
- export * from "./usersRoleV";
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 "./mdContent";
8
+ export * from "./mdContentGroup";
9
+ export * from "./mdLink";
10
+ export * from "./menu";
11
+ export * from "./msModule";
12
+ export * from "./oauthAccessToken";
13
+ export * from "./oauthRefreshToken";
14
+ export * from "./userCenterV";
15
+ export * from "./userRoleV";
16
+ export * from "./users";
@@ -7,6 +7,7 @@ import { mdContentGroup } from "./mdContentGroup";
7
7
  export interface mdContentAttributes {
8
8
  id?: number;
9
9
  uuid: number;
10
+ keyName?: string;
10
11
  groupId?: number;
11
12
  userId: number;
12
13
  title?: string;
@@ -14,7 +15,7 @@ export interface mdContentAttributes {
14
15
  metaTitle?: string;
15
16
  metaKeyword?: string;
16
17
  metaDescription?: string;
17
- imageCover?: string;
18
+ imageCover?: object;
18
19
  imageGallery?: object;
19
20
  status?: number;
20
21
  createdBy?: string;
@@ -41,6 +42,13 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
41
42
  })
42
43
  declare uuid: number;
43
44
 
45
+ @Column({
46
+ field: "key_name",
47
+ allowNull: true,
48
+ type: DataType.STRING(100)
49
+ })
50
+ declare keyName?: string;
51
+
44
52
  @ForeignKey(() => mdContentGroup)
45
53
  @Column({
46
54
  field: "group_id",
@@ -92,9 +100,9 @@ export class mdContent extends Model<mdContentAttributes, mdContentAttributes> i
92
100
  @Column({
93
101
  field: "image_cover",
94
102
  allowNull: true,
95
- type: DataType.STRING(255)
103
+ type: DataType.JSON
96
104
  })
97
- declare imageCover?: string;
105
+ declare imageCover?: object;
98
106
 
99
107
  @Column({
100
108
  field: "image_gallery",
@@ -5,6 +5,7 @@ import { mdContent } from "./mdContent";
5
5
 
6
6
  export interface mdContentGroupAttributes {
7
7
  id?: number;
8
+ keyName?: string;
8
9
  name: string;
9
10
  description?: string;
10
11
  createdBy?: string;
@@ -26,6 +27,13 @@ export class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGro
26
27
  })
27
28
  declare id?: number;
28
29
 
30
+ @Column({
31
+ field: "key_name",
32
+ allowNull: true,
33
+ type: DataType.STRING(100)
34
+ })
35
+ declare keyName?: string;
36
+
29
37
  @Column({
30
38
  type: DataType.STRING(255)
31
39
  })