@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
@@ -0,0 +1,112 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdDocumentPdfAttributes {
6
+ id: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ name?: string;
10
+ description?: string;
11
+ fileUuid?: string;
12
+ totalDownload?: number;
13
+ sort?: number;
14
+ status?: number;
15
+ createdBy?: string;
16
+ createdDate?: Date;
17
+ updatedBy?: string;
18
+ updatedDate?: Date;
19
+ }
20
+
21
+ @Table({
22
+ tableName: "md_document_pdf",
23
+ timestamps: false
24
+ })
25
+ export class mdDocumentPdf extends Model<mdDocumentPdfAttributes, mdDocumentPdfAttributes> implements mdDocumentPdfAttributes {
26
+
27
+ @Column({
28
+ primaryKey: true,
29
+ type: DataType.INTEGER
30
+ })
31
+ declare id: number;
32
+
33
+ @Column({
34
+ allowNull: true,
35
+ type: DataType.STRING(60)
36
+ })
37
+ declare uuid?: string;
38
+
39
+ @Column({
40
+ field: "key_name",
41
+ allowNull: true,
42
+ type: DataType.STRING(100)
43
+ })
44
+ declare keyName?: string;
45
+
46
+ @Column({
47
+ allowNull: true,
48
+ type: DataType.STRING(255)
49
+ })
50
+ declare name?: string;
51
+
52
+ @Column({
53
+ allowNull: true,
54
+ type: DataType.STRING
55
+ })
56
+ declare description?: string;
57
+
58
+ @Column({
59
+ field: "file_uuid",
60
+ allowNull: true,
61
+ type: DataType.STRING(60)
62
+ })
63
+ declare fileUuid?: string;
64
+
65
+ @Column({
66
+ field: "total_download",
67
+ allowNull: true,
68
+ type: DataType.INTEGER
69
+ })
70
+ declare totalDownload?: number;
71
+
72
+ @Column({
73
+ allowNull: true,
74
+ type: DataType.INTEGER
75
+ })
76
+ declare sort?: number;
77
+
78
+ @Column({
79
+ allowNull: true,
80
+ type: DataType.INTEGER
81
+ })
82
+ declare status?: number;
83
+
84
+ @Column({
85
+ field: "created_by",
86
+ allowNull: true,
87
+ type: DataType.STRING(60)
88
+ })
89
+ declare createdBy?: string;
90
+
91
+ @Column({
92
+ field: "created_date",
93
+ allowNull: true,
94
+ type: DataType.DATE
95
+ })
96
+ declare createdDate?: Date;
97
+
98
+ @Column({
99
+ field: "updated_by",
100
+ allowNull: true,
101
+ type: DataType.STRING(60)
102
+ })
103
+ declare updatedBy?: string;
104
+
105
+ @Column({
106
+ field: "updated_date",
107
+ allowNull: true,
108
+ type: DataType.DATE
109
+ })
110
+ declare updatedDate?: Date;
111
+
112
+ }
@@ -0,0 +1,112 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdDownloadAttributes {
6
+ id: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ name?: string;
10
+ description?: string;
11
+ fileUuid?: string;
12
+ totalDownload?: number;
13
+ sort?: number;
14
+ status?: number;
15
+ createdBy?: string;
16
+ createdDate?: Date;
17
+ updatedBy?: string;
18
+ updatedDate?: Date;
19
+ }
20
+
21
+ @Table({
22
+ tableName: "md_download",
23
+ timestamps: false
24
+ })
25
+ export class mdDownload extends Model<mdDownloadAttributes, mdDownloadAttributes> implements mdDownloadAttributes {
26
+
27
+ @Column({
28
+ primaryKey: true,
29
+ type: DataType.INTEGER
30
+ })
31
+ declare id: number;
32
+
33
+ @Column({
34
+ allowNull: true,
35
+ type: DataType.STRING(60)
36
+ })
37
+ declare uuid?: string;
38
+
39
+ @Column({
40
+ field: "key_name",
41
+ allowNull: true,
42
+ type: DataType.STRING(100)
43
+ })
44
+ declare keyName?: string;
45
+
46
+ @Column({
47
+ allowNull: true,
48
+ type: DataType.STRING(255)
49
+ })
50
+ declare name?: string;
51
+
52
+ @Column({
53
+ allowNull: true,
54
+ type: DataType.STRING
55
+ })
56
+ declare description?: string;
57
+
58
+ @Column({
59
+ field: "file_uuid",
60
+ allowNull: true,
61
+ type: DataType.STRING(60)
62
+ })
63
+ declare fileUuid?: string;
64
+
65
+ @Column({
66
+ field: "total_download",
67
+ allowNull: true,
68
+ type: DataType.INTEGER
69
+ })
70
+ declare totalDownload?: number;
71
+
72
+ @Column({
73
+ allowNull: true,
74
+ type: DataType.INTEGER
75
+ })
76
+ declare sort?: number;
77
+
78
+ @Column({
79
+ allowNull: true,
80
+ type: DataType.INTEGER
81
+ })
82
+ declare status?: number;
83
+
84
+ @Column({
85
+ field: "created_by",
86
+ allowNull: true,
87
+ type: DataType.STRING(60)
88
+ })
89
+ declare createdBy?: string;
90
+
91
+ @Column({
92
+ field: "created_date",
93
+ allowNull: true,
94
+ type: DataType.DATE
95
+ })
96
+ declare createdDate?: Date;
97
+
98
+ @Column({
99
+ field: "updated_by",
100
+ allowNull: true,
101
+ type: DataType.STRING(60)
102
+ })
103
+ declare updatedBy?: string;
104
+
105
+ @Column({
106
+ field: "updated_date",
107
+ allowNull: true,
108
+ type: DataType.DATE
109
+ })
110
+ declare updatedDate?: Date;
111
+
112
+ }
@@ -0,0 +1,104 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdFaqAttributes {
6
+ id: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ groupId?: number;
10
+ question?: string;
11
+ answer?: 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_faq",
22
+ timestamps: false
23
+ })
24
+ export class mdFaq extends Model<mdFaqAttributes, mdFaqAttributes> implements mdFaqAttributes {
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
+ field: "group_id",
47
+ allowNull: true,
48
+ type: DataType.INTEGER
49
+ })
50
+ declare groupId?: number;
51
+
52
+ @Column({
53
+ allowNull: true,
54
+ type: DataType.STRING(255)
55
+ })
56
+ declare question?: string;
57
+
58
+ @Column({
59
+ allowNull: true,
60
+ type: DataType.STRING
61
+ })
62
+ declare answer?: 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
+ }
@@ -0,0 +1,89 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdFaqGroupAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ name: string;
10
+ description?: string;
11
+ status?: number;
12
+ createdBy?: string;
13
+ createdDate?: Date;
14
+ updatedBy?: string;
15
+ updatedDate?: Date;
16
+ }
17
+
18
+ @Table({
19
+ tableName: "md_faq_group",
20
+ timestamps: false
21
+ })
22
+ export class mdFaqGroup extends Model<mdFaqGroupAttributes, mdFaqGroupAttributes> implements mdFaqGroupAttributes {
23
+
24
+ @Column({
25
+ primaryKey: true,
26
+ autoIncrement: true,
27
+ type: DataType.INTEGER
28
+ })
29
+ declare id?: number;
30
+
31
+ @Column({
32
+ allowNull: true,
33
+ type: DataType.STRING(60)
34
+ })
35
+ declare uuid?: string;
36
+
37
+ @Column({
38
+ field: "key_name",
39
+ allowNull: true,
40
+ type: DataType.STRING(100)
41
+ })
42
+ declare keyName?: string;
43
+
44
+ @Column({
45
+ type: DataType.STRING(255)
46
+ })
47
+ declare name: string;
48
+
49
+ @Column({
50
+ allowNull: true,
51
+ type: DataType.STRING(255)
52
+ })
53
+ declare description?: string;
54
+
55
+ @Column({
56
+ allowNull: true,
57
+ type: DataType.INTEGER
58
+ })
59
+ declare status?: number;
60
+
61
+ @Column({
62
+ field: "created_by",
63
+ allowNull: true,
64
+ type: DataType.STRING(60)
65
+ })
66
+ declare createdBy?: string;
67
+
68
+ @Column({
69
+ field: "created_date",
70
+ allowNull: true,
71
+ type: DataType.DATE
72
+ })
73
+ declare createdDate?: Date;
74
+
75
+ @Column({
76
+ field: "updated_by",
77
+ allowNull: true,
78
+ type: DataType.STRING(60)
79
+ })
80
+ declare updatedBy?: string;
81
+
82
+ @Column({
83
+ field: "updated_date",
84
+ allowNull: true,
85
+ type: DataType.DATE
86
+ })
87
+ declare updatedDate?: Date;
88
+
89
+ }
@@ -0,0 +1,97 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdSettingAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ name?: string;
10
+ description?: string;
11
+ value?: string;
12
+ status?: number;
13
+ createdBy?: string;
14
+ createdDate?: Date;
15
+ updatedBy?: string;
16
+ updatedDate?: Date;
17
+ }
18
+
19
+ @Table({
20
+ tableName: "md_setting",
21
+ timestamps: false
22
+ })
23
+ export class mdSetting extends Model<mdSettingAttributes, mdSettingAttributes> implements mdSettingAttributes {
24
+
25
+ @Column({
26
+ primaryKey: true,
27
+ autoIncrement: 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(255)
54
+ })
55
+ declare description?: string;
56
+
57
+ @Column({
58
+ allowNull: true,
59
+ type: DataType.STRING
60
+ })
61
+ declare value?: string;
62
+
63
+ @Column({
64
+ allowNull: true,
65
+ type: DataType.INTEGER
66
+ })
67
+ declare status?: number;
68
+
69
+ @Column({
70
+ field: "created_by",
71
+ allowNull: true,
72
+ type: DataType.STRING(60)
73
+ })
74
+ declare createdBy?: string;
75
+
76
+ @Column({
77
+ field: "created_date",
78
+ allowNull: true,
79
+ type: DataType.DATE
80
+ })
81
+ declare createdDate?: Date;
82
+
83
+ @Column({
84
+ field: "updated_by",
85
+ allowNull: true,
86
+ type: DataType.STRING(60)
87
+ })
88
+ declare updatedBy?: string;
89
+
90
+ @Column({
91
+ field: "updated_date",
92
+ allowNull: true,
93
+ type: DataType.DATE
94
+ })
95
+ declare updatedDate?: Date;
96
+
97
+ }