@admc-go-th/admc-library 1.0.6 → 1.0.7

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/controllers/default.d.ts +5 -0
  2. package/controllers/default.js +38 -0
  3. package/databases/models/authAssignment.d.ts +20 -0
  4. package/databases/models/authAssignment.js +88 -0
  5. package/databases/models/authItem.d.ts +28 -0
  6. package/databases/models/authItem.js +111 -0
  7. package/databases/models/authItemChild.d.ts +12 -0
  8. package/databases/models/authItemChild.js +58 -0
  9. package/databases/models/authRole.d.ts +20 -0
  10. package/databases/models/authRole.js +87 -0
  11. package/databases/models/authRoleChild.d.ts +14 -0
  12. package/databases/models/authRoleChild.js +66 -0
  13. package/databases/models/index.d.ts +11 -0
  14. package/databases/models/index.js +735 -0
  15. package/databases/models/mdContent.d.ts +38 -0
  16. package/databases/models/mdContent.js +146 -0
  17. package/databases/models/mdContentGroup.d.ts +22 -0
  18. package/databases/models/mdContentGroup.js +93 -0
  19. package/databases/models/menu.d.ts +26 -0
  20. package/databases/models/menu.js +106 -0
  21. package/databases/models/msModule.d.ts +20 -0
  22. package/databases/models/msModule.js +87 -0
  23. package/databases/models/users.d.ts +50 -0
  24. package/databases/models/users.js +188 -0
  25. package/error/app-error.d.ts +6 -0
  26. package/error/app-error.js +37 -0
  27. package/middleware/authenticate-token.d.ts +7 -0
  28. package/middleware/authenticate-token.js +57 -0
  29. package/middleware/error-handler.d.ts +5 -0
  30. package/middleware/error-handler.js +40 -0
  31. package/package.json +7 -2
  32. package/types/jwt/payload.types.d.ts +11 -0
  33. package/types/jwt/payload.types.js +18 -0
  34. package/utils/date.d.ts +3 -0
  35. package/utils/date.js +43 -0
@@ -0,0 +1,5 @@
1
+ import { RequestHandler } from 'express';
2
+
3
+ declare function check(env: any): RequestHandler;
4
+
5
+ export { check };
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/controllers/default.ts
21
+ var default_exports = {};
22
+ __export(default_exports, {
23
+ check: () => check
24
+ });
25
+ module.exports = __toCommonJS(default_exports);
26
+ function check(env) {
27
+ return async function(req, res) {
28
+ res.send({
29
+ name: env.APP ?? "",
30
+ version: env.VERSION ?? "",
31
+ environment: env.NODE_ENV ?? "none"
32
+ });
33
+ };
34
+ }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ check
38
+ });
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authAssignmentAttributes {
4
+ roleId: number;
5
+ userId: number;
6
+ createdBy?: string;
7
+ createdDate?: Date;
8
+ updatedBy?: string;
9
+ updatedDate?: Date;
10
+ }
11
+ declare class authAssignment extends Model<authAssignmentAttributes, authAssignmentAttributes> implements authAssignmentAttributes {
12
+ roleId: number;
13
+ userId: number;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ export { authAssignment, type authAssignmentAttributes };
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/models/authAssignment.ts
29
+ var authAssignment_exports = {};
30
+ __export(authAssignment_exports, {
31
+ authAssignment: () => authAssignment
32
+ });
33
+ module.exports = __toCommonJS(authAssignment_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authAssignment = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ field: "role_id",
40
+ primaryKey: true,
41
+ type: import_sequelize_typescript.DataType.INTEGER
42
+ })
43
+ ], authAssignment.prototype, "roleId", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "user_id",
47
+ primaryKey: true,
48
+ type: import_sequelize_typescript.DataType.INTEGER
49
+ })
50
+ ], authAssignment.prototype, "userId", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ field: "created_by",
54
+ allowNull: true,
55
+ type: import_sequelize_typescript.DataType.STRING(60)
56
+ })
57
+ ], authAssignment.prototype, "createdBy", 2);
58
+ __decorateClass([
59
+ (0, import_sequelize_typescript.Column)({
60
+ field: "created_date",
61
+ allowNull: true,
62
+ type: import_sequelize_typescript.DataType.DATE
63
+ })
64
+ ], authAssignment.prototype, "createdDate", 2);
65
+ __decorateClass([
66
+ (0, import_sequelize_typescript.Column)({
67
+ field: "updated_by",
68
+ allowNull: true,
69
+ type: import_sequelize_typescript.DataType.STRING(60)
70
+ })
71
+ ], authAssignment.prototype, "updatedBy", 2);
72
+ __decorateClass([
73
+ (0, import_sequelize_typescript.Column)({
74
+ field: "updated_date",
75
+ allowNull: true,
76
+ type: import_sequelize_typescript.DataType.DATE
77
+ })
78
+ ], authAssignment.prototype, "updatedDate", 2);
79
+ authAssignment = __decorateClass([
80
+ (0, import_sequelize_typescript.Table)({
81
+ tableName: "auth_assignment",
82
+ timestamps: false
83
+ })
84
+ ], authAssignment);
85
+ // Annotate the CommonJS export names for ESM import in node:
86
+ 0 && (module.exports = {
87
+ authAssignment
88
+ });
@@ -0,0 +1,28 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authItemAttributes {
4
+ keyName: string;
5
+ type: number;
6
+ display?: string;
7
+ description?: string;
8
+ data?: Uint8Array;
9
+ status?: number;
10
+ createdBy?: string;
11
+ createdDate?: Date;
12
+ updatedBy?: string;
13
+ updatedDate?: Date;
14
+ }
15
+ declare class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
16
+ keyName: string;
17
+ type: number;
18
+ display?: string;
19
+ description?: string;
20
+ data?: Uint8Array;
21
+ status?: number;
22
+ createdBy?: string;
23
+ createdDate?: Date;
24
+ updatedBy?: string;
25
+ updatedDate?: Date;
26
+ }
27
+
28
+ export { authItem, type authItemAttributes };
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/models/authItem.ts
29
+ var authItem_exports = {};
30
+ __export(authItem_exports, {
31
+ authItem: () => authItem
32
+ });
33
+ module.exports = __toCommonJS(authItem_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authItem = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ field: "key_name",
40
+ primaryKey: true,
41
+ type: import_sequelize_typescript.DataType.STRING(100)
42
+ })
43
+ ], authItem.prototype, "keyName", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ type: import_sequelize_typescript.DataType.SMALLINT
47
+ })
48
+ ], authItem.prototype, "type", 2);
49
+ __decorateClass([
50
+ (0, import_sequelize_typescript.Column)({
51
+ allowNull: true,
52
+ type: import_sequelize_typescript.DataType.STRING(255)
53
+ })
54
+ ], authItem.prototype, "display", 2);
55
+ __decorateClass([
56
+ (0, import_sequelize_typescript.Column)({
57
+ allowNull: true,
58
+ type: import_sequelize_typescript.DataType.STRING
59
+ })
60
+ ], authItem.prototype, "description", 2);
61
+ __decorateClass([
62
+ (0, import_sequelize_typescript.Column)({
63
+ allowNull: true,
64
+ type: import_sequelize_typescript.DataType.BLOB
65
+ })
66
+ ], authItem.prototype, "data", 2);
67
+ __decorateClass([
68
+ (0, import_sequelize_typescript.Column)({
69
+ allowNull: true,
70
+ type: import_sequelize_typescript.DataType.INTEGER,
71
+ defaultValue: "1"
72
+ })
73
+ ], authItem.prototype, "status", 2);
74
+ __decorateClass([
75
+ (0, import_sequelize_typescript.Column)({
76
+ field: "created_by",
77
+ allowNull: true,
78
+ type: import_sequelize_typescript.DataType.STRING(60)
79
+ })
80
+ ], authItem.prototype, "createdBy", 2);
81
+ __decorateClass([
82
+ (0, import_sequelize_typescript.Column)({
83
+ field: "created_date",
84
+ allowNull: true,
85
+ type: import_sequelize_typescript.DataType.DATE
86
+ })
87
+ ], authItem.prototype, "createdDate", 2);
88
+ __decorateClass([
89
+ (0, import_sequelize_typescript.Column)({
90
+ field: "updated_by",
91
+ allowNull: true,
92
+ type: import_sequelize_typescript.DataType.STRING(60)
93
+ })
94
+ ], authItem.prototype, "updatedBy", 2);
95
+ __decorateClass([
96
+ (0, import_sequelize_typescript.Column)({
97
+ field: "updated_date",
98
+ allowNull: true,
99
+ type: import_sequelize_typescript.DataType.DATE
100
+ })
101
+ ], authItem.prototype, "updatedDate", 2);
102
+ authItem = __decorateClass([
103
+ (0, import_sequelize_typescript.Table)({
104
+ tableName: "auth_item",
105
+ timestamps: false
106
+ })
107
+ ], authItem);
108
+ // Annotate the CommonJS export names for ESM import in node:
109
+ 0 && (module.exports = {
110
+ authItem
111
+ });
@@ -0,0 +1,12 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authItemChildAttributes {
4
+ parent: string;
5
+ child: string;
6
+ }
7
+ declare class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
8
+ parent: string;
9
+ child: string;
10
+ }
11
+
12
+ export { authItemChild, type authItemChildAttributes };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/models/authItemChild.ts
29
+ var authItemChild_exports = {};
30
+ __export(authItemChild_exports, {
31
+ authItemChild: () => authItemChild
32
+ });
33
+ module.exports = __toCommonJS(authItemChild_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authItemChild = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ type: import_sequelize_typescript.DataType.STRING(64)
41
+ })
42
+ ], authItemChild.prototype, "parent", 2);
43
+ __decorateClass([
44
+ (0, import_sequelize_typescript.Column)({
45
+ primaryKey: true,
46
+ type: import_sequelize_typescript.DataType.STRING(64)
47
+ })
48
+ ], authItemChild.prototype, "child", 2);
49
+ authItemChild = __decorateClass([
50
+ (0, import_sequelize_typescript.Table)({
51
+ tableName: "auth_item_child",
52
+ timestamps: false
53
+ })
54
+ ], authItemChild);
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ authItemChild
58
+ });
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authRoleAttributes {
4
+ id?: number;
5
+ name?: string;
6
+ createdBy?: string;
7
+ createdDate?: Date;
8
+ updatedBy?: string;
9
+ updatedDate?: Date;
10
+ }
11
+ declare class authRole extends Model<authRoleAttributes, authRoleAttributes> implements authRoleAttributes {
12
+ id?: number;
13
+ name?: string;
14
+ createdBy?: string;
15
+ createdDate?: Date;
16
+ updatedBy?: string;
17
+ updatedDate?: Date;
18
+ }
19
+
20
+ export { authRole, type authRoleAttributes };
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/models/authRole.ts
29
+ var authRole_exports = {};
30
+ __export(authRole_exports, {
31
+ authRole: () => authRole
32
+ });
33
+ module.exports = __toCommonJS(authRole_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authRole = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ primaryKey: true,
40
+ autoIncrement: true,
41
+ type: import_sequelize_typescript.DataType.INTEGER
42
+ })
43
+ ], authRole.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(255)
48
+ })
49
+ ], authRole.prototype, "name", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ field: "created_by",
53
+ allowNull: true,
54
+ type: import_sequelize_typescript.DataType.STRING(60)
55
+ })
56
+ ], authRole.prototype, "createdBy", 2);
57
+ __decorateClass([
58
+ (0, import_sequelize_typescript.Column)({
59
+ field: "created_date",
60
+ allowNull: true,
61
+ type: import_sequelize_typescript.DataType.DATE
62
+ })
63
+ ], authRole.prototype, "createdDate", 2);
64
+ __decorateClass([
65
+ (0, import_sequelize_typescript.Column)({
66
+ field: "updated_by",
67
+ allowNull: true,
68
+ type: import_sequelize_typescript.DataType.STRING(60)
69
+ })
70
+ ], authRole.prototype, "updatedBy", 2);
71
+ __decorateClass([
72
+ (0, import_sequelize_typescript.Column)({
73
+ field: "updated_date",
74
+ allowNull: true,
75
+ type: import_sequelize_typescript.DataType.DATE
76
+ })
77
+ ], authRole.prototype, "updatedDate", 2);
78
+ authRole = __decorateClass([
79
+ (0, import_sequelize_typescript.Table)({
80
+ tableName: "auth_role",
81
+ timestamps: false
82
+ })
83
+ ], authRole);
84
+ // Annotate the CommonJS export names for ESM import in node:
85
+ 0 && (module.exports = {
86
+ authRole
87
+ });
@@ -0,0 +1,14 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface authRoleChildAttributes {
4
+ roleId: number;
5
+ itemName: string;
6
+ permission?: object;
7
+ }
8
+ declare class authRoleChild extends Model<authRoleChildAttributes, authRoleChildAttributes> implements authRoleChildAttributes {
9
+ roleId: number;
10
+ itemName: string;
11
+ permission?: object;
12
+ }
13
+
14
+ export { authRoleChild, type authRoleChildAttributes };
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var __decorateClass = (decorators, target, key, kind) => {
20
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
+ if (decorator = decorators[i])
23
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
+ if (kind && result) __defProp(target, key, result);
25
+ return result;
26
+ };
27
+
28
+ // src/databases/models/authRoleChild.ts
29
+ var authRoleChild_exports = {};
30
+ __export(authRoleChild_exports, {
31
+ authRoleChild: () => authRoleChild
32
+ });
33
+ module.exports = __toCommonJS(authRoleChild_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var authRoleChild = class extends import_sequelize_typescript.Model {
36
+ };
37
+ __decorateClass([
38
+ (0, import_sequelize_typescript.Column)({
39
+ field: "role_id",
40
+ primaryKey: true,
41
+ type: import_sequelize_typescript.DataType.INTEGER
42
+ })
43
+ ], authRoleChild.prototype, "roleId", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ field: "item_name",
47
+ primaryKey: true,
48
+ type: import_sequelize_typescript.DataType.STRING(255)
49
+ })
50
+ ], authRoleChild.prototype, "itemName", 2);
51
+ __decorateClass([
52
+ (0, import_sequelize_typescript.Column)({
53
+ allowNull: true,
54
+ type: import_sequelize_typescript.DataType.JSON
55
+ })
56
+ ], authRoleChild.prototype, "permission", 2);
57
+ authRoleChild = __decorateClass([
58
+ (0, import_sequelize_typescript.Table)({
59
+ tableName: "auth_role_child",
60
+ timestamps: false
61
+ })
62
+ ], authRoleChild);
63
+ // Annotate the CommonJS export names for ESM import in node:
64
+ 0 && (module.exports = {
65
+ authRoleChild
66
+ });
@@ -0,0 +1,11 @@
1
+ export { authAssignment, authAssignmentAttributes } from './authAssignment.js';
2
+ export { authItem, authItemAttributes } from './authItem.js';
3
+ export { authItemChild, authItemChildAttributes } from './authItemChild.js';
4
+ export { authRole, authRoleAttributes } from './authRole.js';
5
+ export { authRoleChild, authRoleChildAttributes } from './authRoleChild.js';
6
+ export { mdContent, mdContentAttributes } from './mdContent.js';
7
+ export { mdContentGroup, mdContentGroupAttributes } from './mdContentGroup.js';
8
+ export { menu, menuAttributes } from './menu.js';
9
+ export { msModule, msModuleAttributes } from './msModule.js';
10
+ export { users, usersAttributes } from './users.js';
11
+ import 'sequelize-typescript';