@admc-go-th/admc-library 1.0.3 → 1.0.4
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/databases/models/authAssignment.d.ts +2 -2
- package/databases/models/authAssignment.js +3 -3
- package/databases/models/authItem.d.ts +4 -4
- package/databases/models/authItem.js +7 -7
- package/databases/models/authRole.d.ts +20 -0
- package/databases/models/{authRule.js → authRole.js} +19 -18
- package/databases/models/authRoleChild.d.ts +14 -0
- package/databases/models/authRoleChild.js +66 -0
- package/databases/models/index.d.ts +4 -1
- package/databases/models/index.js +280 -119
- package/databases/models/menu.d.ts +26 -0
- package/databases/models/menu.js +106 -0
- package/databases/models/msModule.d.ts +20 -0
- package/databases/models/msModule.js +87 -0
- package/package.json +1 -1
- package/databases/models/authRule.d.ts +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
2
|
|
|
3
3
|
interface authAssignmentAttributes {
|
|
4
|
-
|
|
4
|
+
roleId: number;
|
|
5
5
|
userId: number;
|
|
6
6
|
createdBy?: string;
|
|
7
7
|
createdDate?: Date;
|
|
@@ -9,7 +9,7 @@ interface authAssignmentAttributes {
|
|
|
9
9
|
updatedDate?: Date;
|
|
10
10
|
}
|
|
11
11
|
declare class authAssignment extends Model<authAssignmentAttributes, authAssignmentAttributes> implements authAssignmentAttributes {
|
|
12
|
-
|
|
12
|
+
roleId: number;
|
|
13
13
|
userId: number;
|
|
14
14
|
createdBy?: string;
|
|
15
15
|
createdDate?: Date;
|
|
@@ -36,11 +36,11 @@ var authAssignment = class extends import_sequelize_typescript.Model {
|
|
|
36
36
|
};
|
|
37
37
|
__decorateClass([
|
|
38
38
|
(0, import_sequelize_typescript.Column)({
|
|
39
|
-
field: "
|
|
39
|
+
field: "role_id",
|
|
40
40
|
primaryKey: true,
|
|
41
|
-
type: import_sequelize_typescript.DataType.
|
|
41
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
42
|
})
|
|
43
|
-
], authAssignment.prototype, "
|
|
43
|
+
], authAssignment.prototype, "roleId", 2);
|
|
44
44
|
__decorateClass([
|
|
45
45
|
(0, import_sequelize_typescript.Column)({
|
|
46
46
|
field: "user_id",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Model } from 'sequelize-typescript';
|
|
2
2
|
|
|
3
3
|
interface authItemAttributes {
|
|
4
|
-
|
|
4
|
+
keyName: string;
|
|
5
5
|
type: number;
|
|
6
|
+
display?: string;
|
|
6
7
|
description?: string;
|
|
7
|
-
ruleName?: string;
|
|
8
8
|
data?: Uint8Array;
|
|
9
9
|
status?: number;
|
|
10
10
|
createdBy?: string;
|
|
@@ -13,10 +13,10 @@ interface authItemAttributes {
|
|
|
13
13
|
updatedDate?: Date;
|
|
14
14
|
}
|
|
15
15
|
declare class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
|
|
16
|
-
|
|
16
|
+
keyName: string;
|
|
17
17
|
type: number;
|
|
18
|
+
display?: string;
|
|
18
19
|
description?: string;
|
|
19
|
-
ruleName?: string;
|
|
20
20
|
data?: Uint8Array;
|
|
21
21
|
status?: number;
|
|
22
22
|
createdBy?: string;
|
|
@@ -36,10 +36,11 @@ var authItem = class extends import_sequelize_typescript.Model {
|
|
|
36
36
|
};
|
|
37
37
|
__decorateClass([
|
|
38
38
|
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
field: "key_name",
|
|
39
40
|
primaryKey: true,
|
|
40
|
-
type: import_sequelize_typescript.DataType.STRING(
|
|
41
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
41
42
|
})
|
|
42
|
-
], authItem.prototype, "
|
|
43
|
+
], authItem.prototype, "keyName", 2);
|
|
43
44
|
__decorateClass([
|
|
44
45
|
(0, import_sequelize_typescript.Column)({
|
|
45
46
|
type: import_sequelize_typescript.DataType.SMALLINT
|
|
@@ -48,16 +49,15 @@ __decorateClass([
|
|
|
48
49
|
__decorateClass([
|
|
49
50
|
(0, import_sequelize_typescript.Column)({
|
|
50
51
|
allowNull: true,
|
|
51
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
52
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
52
53
|
})
|
|
53
|
-
], authItem.prototype, "
|
|
54
|
+
], authItem.prototype, "display", 2);
|
|
54
55
|
__decorateClass([
|
|
55
56
|
(0, import_sequelize_typescript.Column)({
|
|
56
|
-
field: "rule_name",
|
|
57
57
|
allowNull: true,
|
|
58
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
58
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
59
59
|
})
|
|
60
|
-
], authItem.prototype, "
|
|
60
|
+
], authItem.prototype, "description", 2);
|
|
61
61
|
__decorateClass([
|
|
62
62
|
(0, import_sequelize_typescript.Column)({
|
|
63
63
|
allowNull: true,
|
|
@@ -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 };
|
|
@@ -25,62 +25,63 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
25
25
|
return result;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
// src/databases/models/
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
|
|
28
|
+
// src/databases/models/authRole.ts
|
|
29
|
+
var authRole_exports = {};
|
|
30
|
+
__export(authRole_exports, {
|
|
31
|
+
authRole: () => authRole
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(authRole_exports);
|
|
34
34
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
35
|
+
var authRole = class extends import_sequelize_typescript.Model {
|
|
36
36
|
};
|
|
37
37
|
__decorateClass([
|
|
38
38
|
(0, import_sequelize_typescript.Column)({
|
|
39
39
|
primaryKey: true,
|
|
40
|
-
|
|
40
|
+
autoIncrement: true,
|
|
41
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
41
42
|
})
|
|
42
|
-
],
|
|
43
|
+
], authRole.prototype, "id", 2);
|
|
43
44
|
__decorateClass([
|
|
44
45
|
(0, import_sequelize_typescript.Column)({
|
|
45
46
|
allowNull: true,
|
|
46
|
-
type: import_sequelize_typescript.DataType.
|
|
47
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
47
48
|
})
|
|
48
|
-
],
|
|
49
|
+
], authRole.prototype, "name", 2);
|
|
49
50
|
__decorateClass([
|
|
50
51
|
(0, import_sequelize_typescript.Column)({
|
|
51
52
|
field: "created_by",
|
|
52
53
|
allowNull: true,
|
|
53
54
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
54
55
|
})
|
|
55
|
-
],
|
|
56
|
+
], authRole.prototype, "createdBy", 2);
|
|
56
57
|
__decorateClass([
|
|
57
58
|
(0, import_sequelize_typescript.Column)({
|
|
58
59
|
field: "created_date",
|
|
59
60
|
allowNull: true,
|
|
60
61
|
type: import_sequelize_typescript.DataType.DATE
|
|
61
62
|
})
|
|
62
|
-
],
|
|
63
|
+
], authRole.prototype, "createdDate", 2);
|
|
63
64
|
__decorateClass([
|
|
64
65
|
(0, import_sequelize_typescript.Column)({
|
|
65
66
|
field: "updated_by",
|
|
66
67
|
allowNull: true,
|
|
67
68
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
68
69
|
})
|
|
69
|
-
],
|
|
70
|
+
], authRole.prototype, "updatedBy", 2);
|
|
70
71
|
__decorateClass([
|
|
71
72
|
(0, import_sequelize_typescript.Column)({
|
|
72
73
|
field: "updated_date",
|
|
73
74
|
allowNull: true,
|
|
74
75
|
type: import_sequelize_typescript.DataType.DATE
|
|
75
76
|
})
|
|
76
|
-
],
|
|
77
|
-
|
|
77
|
+
], authRole.prototype, "updatedDate", 2);
|
|
78
|
+
authRole = __decorateClass([
|
|
78
79
|
(0, import_sequelize_typescript.Table)({
|
|
79
|
-
tableName: "
|
|
80
|
+
tableName: "auth_role",
|
|
80
81
|
timestamps: false
|
|
81
82
|
})
|
|
82
|
-
],
|
|
83
|
+
], authRole);
|
|
83
84
|
// Annotate the CommonJS export names for ESM import in node:
|
|
84
85
|
0 && (module.exports = {
|
|
85
|
-
|
|
86
|
+
authRole
|
|
86
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
|
+
});
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export { authAssignment, authAssignmentAttributes } from './authAssignment.js';
|
|
2
2
|
export { authItem, authItemAttributes } from './authItem.js';
|
|
3
3
|
export { authItemChild, authItemChildAttributes } from './authItemChild.js';
|
|
4
|
-
export {
|
|
4
|
+
export { authRole, authRoleAttributes } from './authRole.js';
|
|
5
|
+
export { authRoleChild, authRoleChildAttributes } from './authRoleChild.js';
|
|
5
6
|
export { mdContent, mdContentAttributes } from './mdContent.js';
|
|
6
7
|
export { mdContentGroup, mdContentGroupAttributes } from './mdContentGroup.js';
|
|
8
|
+
export { menu, menuAttributes } from './menu.js';
|
|
9
|
+
export { msModule, msModuleAttributes } from './msModule.js';
|
|
7
10
|
export { users, usersAttributes } from './users.js';
|
|
8
11
|
import 'sequelize-typescript';
|
|
@@ -31,9 +31,12 @@ __export(models_exports, {
|
|
|
31
31
|
authAssignment: () => authAssignment,
|
|
32
32
|
authItem: () => authItem,
|
|
33
33
|
authItemChild: () => authItemChild,
|
|
34
|
-
|
|
34
|
+
authRole: () => authRole,
|
|
35
|
+
authRoleChild: () => authRoleChild,
|
|
35
36
|
mdContent: () => mdContent,
|
|
36
37
|
mdContentGroup: () => mdContentGroup,
|
|
38
|
+
menu: () => menu,
|
|
39
|
+
msModule: () => msModule,
|
|
37
40
|
users: () => users
|
|
38
41
|
});
|
|
39
42
|
module.exports = __toCommonJS(models_exports);
|
|
@@ -44,11 +47,11 @@ var authAssignment = class extends import_sequelize_typescript.Model {
|
|
|
44
47
|
};
|
|
45
48
|
__decorateClass([
|
|
46
49
|
(0, import_sequelize_typescript.Column)({
|
|
47
|
-
field: "
|
|
50
|
+
field: "role_id",
|
|
48
51
|
primaryKey: true,
|
|
49
|
-
type: import_sequelize_typescript.DataType.
|
|
52
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
50
53
|
})
|
|
51
|
-
], authAssignment.prototype, "
|
|
54
|
+
], authAssignment.prototype, "roleId", 2);
|
|
52
55
|
__decorateClass([
|
|
53
56
|
(0, import_sequelize_typescript.Column)({
|
|
54
57
|
field: "user_id",
|
|
@@ -97,10 +100,11 @@ var authItem = class extends import_sequelize_typescript2.Model {
|
|
|
97
100
|
};
|
|
98
101
|
__decorateClass([
|
|
99
102
|
(0, import_sequelize_typescript2.Column)({
|
|
103
|
+
field: "key_name",
|
|
100
104
|
primaryKey: true,
|
|
101
|
-
type: import_sequelize_typescript2.DataType.STRING(
|
|
105
|
+
type: import_sequelize_typescript2.DataType.STRING(100)
|
|
102
106
|
})
|
|
103
|
-
], authItem.prototype, "
|
|
107
|
+
], authItem.prototype, "keyName", 2);
|
|
104
108
|
__decorateClass([
|
|
105
109
|
(0, import_sequelize_typescript2.Column)({
|
|
106
110
|
type: import_sequelize_typescript2.DataType.SMALLINT
|
|
@@ -109,16 +113,15 @@ __decorateClass([
|
|
|
109
113
|
__decorateClass([
|
|
110
114
|
(0, import_sequelize_typescript2.Column)({
|
|
111
115
|
allowNull: true,
|
|
112
|
-
type: import_sequelize_typescript2.DataType.STRING
|
|
116
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
113
117
|
})
|
|
114
|
-
], authItem.prototype, "
|
|
118
|
+
], authItem.prototype, "display", 2);
|
|
115
119
|
__decorateClass([
|
|
116
120
|
(0, import_sequelize_typescript2.Column)({
|
|
117
|
-
field: "rule_name",
|
|
118
121
|
allowNull: true,
|
|
119
|
-
type: import_sequelize_typescript2.DataType.STRING
|
|
122
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
120
123
|
})
|
|
121
|
-
], authItem.prototype, "
|
|
124
|
+
], authItem.prototype, "description", 2);
|
|
122
125
|
__decorateClass([
|
|
123
126
|
(0, import_sequelize_typescript2.Column)({
|
|
124
127
|
allowNull: true,
|
|
@@ -190,372 +193,527 @@ authItemChild = __decorateClass([
|
|
|
190
193
|
})
|
|
191
194
|
], authItemChild);
|
|
192
195
|
|
|
193
|
-
// src/databases/models/
|
|
196
|
+
// src/databases/models/authRole.ts
|
|
194
197
|
var import_sequelize_typescript4 = require("sequelize-typescript");
|
|
195
|
-
var
|
|
198
|
+
var authRole = class extends import_sequelize_typescript4.Model {
|
|
196
199
|
};
|
|
197
200
|
__decorateClass([
|
|
198
201
|
(0, import_sequelize_typescript4.Column)({
|
|
199
202
|
primaryKey: true,
|
|
200
|
-
|
|
203
|
+
autoIncrement: true,
|
|
204
|
+
type: import_sequelize_typescript4.DataType.INTEGER
|
|
201
205
|
})
|
|
202
|
-
],
|
|
206
|
+
], authRole.prototype, "id", 2);
|
|
203
207
|
__decorateClass([
|
|
204
208
|
(0, import_sequelize_typescript4.Column)({
|
|
205
209
|
allowNull: true,
|
|
206
|
-
type: import_sequelize_typescript4.DataType.
|
|
210
|
+
type: import_sequelize_typescript4.DataType.STRING(255)
|
|
207
211
|
})
|
|
208
|
-
],
|
|
212
|
+
], authRole.prototype, "name", 2);
|
|
209
213
|
__decorateClass([
|
|
210
214
|
(0, import_sequelize_typescript4.Column)({
|
|
211
215
|
field: "created_by",
|
|
212
216
|
allowNull: true,
|
|
213
217
|
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
214
218
|
})
|
|
215
|
-
],
|
|
219
|
+
], authRole.prototype, "createdBy", 2);
|
|
216
220
|
__decorateClass([
|
|
217
221
|
(0, import_sequelize_typescript4.Column)({
|
|
218
222
|
field: "created_date",
|
|
219
223
|
allowNull: true,
|
|
220
224
|
type: import_sequelize_typescript4.DataType.DATE
|
|
221
225
|
})
|
|
222
|
-
],
|
|
226
|
+
], authRole.prototype, "createdDate", 2);
|
|
223
227
|
__decorateClass([
|
|
224
228
|
(0, import_sequelize_typescript4.Column)({
|
|
225
229
|
field: "updated_by",
|
|
226
230
|
allowNull: true,
|
|
227
231
|
type: import_sequelize_typescript4.DataType.STRING(60)
|
|
228
232
|
})
|
|
229
|
-
],
|
|
233
|
+
], authRole.prototype, "updatedBy", 2);
|
|
230
234
|
__decorateClass([
|
|
231
235
|
(0, import_sequelize_typescript4.Column)({
|
|
232
236
|
field: "updated_date",
|
|
233
237
|
allowNull: true,
|
|
234
238
|
type: import_sequelize_typescript4.DataType.DATE
|
|
235
239
|
})
|
|
236
|
-
],
|
|
237
|
-
|
|
240
|
+
], authRole.prototype, "updatedDate", 2);
|
|
241
|
+
authRole = __decorateClass([
|
|
238
242
|
(0, import_sequelize_typescript4.Table)({
|
|
239
|
-
tableName: "
|
|
243
|
+
tableName: "auth_role",
|
|
240
244
|
timestamps: false
|
|
241
245
|
})
|
|
242
|
-
],
|
|
246
|
+
], authRole);
|
|
243
247
|
|
|
244
|
-
// src/databases/models/
|
|
248
|
+
// src/databases/models/authRoleChild.ts
|
|
245
249
|
var import_sequelize_typescript5 = require("sequelize-typescript");
|
|
246
|
-
var
|
|
250
|
+
var authRoleChild = class extends import_sequelize_typescript5.Model {
|
|
247
251
|
};
|
|
248
252
|
__decorateClass([
|
|
249
253
|
(0, import_sequelize_typescript5.Column)({
|
|
254
|
+
field: "role_id",
|
|
250
255
|
primaryKey: true,
|
|
251
|
-
autoIncrement: true,
|
|
252
256
|
type: import_sequelize_typescript5.DataType.INTEGER
|
|
253
257
|
})
|
|
254
|
-
],
|
|
258
|
+
], authRoleChild.prototype, "roleId", 2);
|
|
255
259
|
__decorateClass([
|
|
256
260
|
(0, import_sequelize_typescript5.Column)({
|
|
257
|
-
|
|
261
|
+
field: "item_name",
|
|
262
|
+
primaryKey: true,
|
|
263
|
+
type: import_sequelize_typescript5.DataType.STRING(255)
|
|
258
264
|
})
|
|
259
|
-
],
|
|
265
|
+
], authRoleChild.prototype, "itemName", 2);
|
|
260
266
|
__decorateClass([
|
|
261
267
|
(0, import_sequelize_typescript5.Column)({
|
|
268
|
+
allowNull: true,
|
|
269
|
+
type: import_sequelize_typescript5.DataType.JSON
|
|
270
|
+
})
|
|
271
|
+
], authRoleChild.prototype, "permission", 2);
|
|
272
|
+
authRoleChild = __decorateClass([
|
|
273
|
+
(0, import_sequelize_typescript5.Table)({
|
|
274
|
+
tableName: "auth_role_child",
|
|
275
|
+
timestamps: false
|
|
276
|
+
})
|
|
277
|
+
], authRoleChild);
|
|
278
|
+
|
|
279
|
+
// src/databases/models/mdContent.ts
|
|
280
|
+
var import_sequelize_typescript6 = require("sequelize-typescript");
|
|
281
|
+
var mdContent = class extends import_sequelize_typescript6.Model {
|
|
282
|
+
};
|
|
283
|
+
__decorateClass([
|
|
284
|
+
(0, import_sequelize_typescript6.Column)({
|
|
285
|
+
primaryKey: true,
|
|
286
|
+
autoIncrement: true,
|
|
287
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
288
|
+
})
|
|
289
|
+
], mdContent.prototype, "id", 2);
|
|
290
|
+
__decorateClass([
|
|
291
|
+
(0, import_sequelize_typescript6.Column)({
|
|
292
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
293
|
+
})
|
|
294
|
+
], mdContent.prototype, "uuid", 2);
|
|
295
|
+
__decorateClass([
|
|
296
|
+
(0, import_sequelize_typescript6.Column)({
|
|
262
297
|
field: "group_id",
|
|
263
298
|
allowNull: true,
|
|
264
|
-
type:
|
|
299
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
265
300
|
})
|
|
266
301
|
], mdContent.prototype, "groupId", 2);
|
|
267
302
|
__decorateClass([
|
|
268
|
-
(0,
|
|
303
|
+
(0, import_sequelize_typescript6.Column)({
|
|
269
304
|
field: "user_id",
|
|
270
|
-
type:
|
|
305
|
+
type: import_sequelize_typescript6.DataType.INTEGER
|
|
271
306
|
})
|
|
272
307
|
], mdContent.prototype, "userId", 2);
|
|
273
308
|
__decorateClass([
|
|
274
|
-
(0,
|
|
309
|
+
(0, import_sequelize_typescript6.Column)({
|
|
275
310
|
allowNull: true,
|
|
276
|
-
type:
|
|
311
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
277
312
|
})
|
|
278
313
|
], mdContent.prototype, "title", 2);
|
|
279
314
|
__decorateClass([
|
|
280
|
-
(0,
|
|
315
|
+
(0, import_sequelize_typescript6.Column)({
|
|
281
316
|
allowNull: true,
|
|
282
|
-
type:
|
|
317
|
+
type: import_sequelize_typescript6.DataType.STRING
|
|
283
318
|
})
|
|
284
319
|
], mdContent.prototype, "detail", 2);
|
|
285
320
|
__decorateClass([
|
|
286
|
-
(0,
|
|
321
|
+
(0, import_sequelize_typescript6.Column)({
|
|
287
322
|
field: "meta_title",
|
|
288
323
|
allowNull: true,
|
|
289
|
-
type:
|
|
324
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
290
325
|
})
|
|
291
326
|
], mdContent.prototype, "metaTitle", 2);
|
|
292
327
|
__decorateClass([
|
|
293
|
-
(0,
|
|
328
|
+
(0, import_sequelize_typescript6.Column)({
|
|
294
329
|
field: "meta_keyword",
|
|
295
330
|
allowNull: true,
|
|
296
|
-
type:
|
|
331
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
297
332
|
})
|
|
298
333
|
], mdContent.prototype, "metaKeyword", 2);
|
|
299
334
|
__decorateClass([
|
|
300
|
-
(0,
|
|
335
|
+
(0, import_sequelize_typescript6.Column)({
|
|
301
336
|
field: "meta_description",
|
|
302
337
|
allowNull: true,
|
|
303
|
-
type:
|
|
338
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
304
339
|
})
|
|
305
340
|
], mdContent.prototype, "metaDescription", 2);
|
|
306
341
|
__decorateClass([
|
|
307
|
-
(0,
|
|
342
|
+
(0, import_sequelize_typescript6.Column)({
|
|
308
343
|
field: "image_cover",
|
|
309
344
|
allowNull: true,
|
|
310
|
-
type:
|
|
345
|
+
type: import_sequelize_typescript6.DataType.STRING(255)
|
|
311
346
|
})
|
|
312
347
|
], mdContent.prototype, "imageCover", 2);
|
|
313
348
|
__decorateClass([
|
|
314
|
-
(0,
|
|
349
|
+
(0, import_sequelize_typescript6.Column)({
|
|
315
350
|
field: "image_gallery",
|
|
316
351
|
allowNull: true,
|
|
317
|
-
type:
|
|
352
|
+
type: import_sequelize_typescript6.DataType.STRING
|
|
318
353
|
})
|
|
319
354
|
], mdContent.prototype, "imageGallery", 2);
|
|
320
355
|
__decorateClass([
|
|
321
|
-
(0,
|
|
356
|
+
(0, import_sequelize_typescript6.Column)({
|
|
322
357
|
field: "created_by",
|
|
323
358
|
allowNull: true,
|
|
324
|
-
type:
|
|
359
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
325
360
|
})
|
|
326
361
|
], mdContent.prototype, "createdBy", 2);
|
|
327
362
|
__decorateClass([
|
|
328
|
-
(0,
|
|
363
|
+
(0, import_sequelize_typescript6.Column)({
|
|
329
364
|
field: "created_date",
|
|
330
365
|
allowNull: true,
|
|
331
|
-
type:
|
|
366
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
332
367
|
})
|
|
333
368
|
], mdContent.prototype, "createdDate", 2);
|
|
334
369
|
__decorateClass([
|
|
335
|
-
(0,
|
|
370
|
+
(0, import_sequelize_typescript6.Column)({
|
|
336
371
|
field: "updated_by",
|
|
337
372
|
allowNull: true,
|
|
338
|
-
type:
|
|
373
|
+
type: import_sequelize_typescript6.DataType.STRING(60)
|
|
339
374
|
})
|
|
340
375
|
], mdContent.prototype, "updatedBy", 2);
|
|
341
376
|
__decorateClass([
|
|
342
|
-
(0,
|
|
377
|
+
(0, import_sequelize_typescript6.Column)({
|
|
343
378
|
field: "updated_date",
|
|
344
379
|
allowNull: true,
|
|
345
|
-
type:
|
|
380
|
+
type: import_sequelize_typescript6.DataType.DATE
|
|
346
381
|
})
|
|
347
382
|
], mdContent.prototype, "updatedDate", 2);
|
|
348
383
|
mdContent = __decorateClass([
|
|
349
|
-
(0,
|
|
384
|
+
(0, import_sequelize_typescript6.Table)({
|
|
350
385
|
tableName: "md_content",
|
|
351
386
|
timestamps: false
|
|
352
387
|
})
|
|
353
388
|
], mdContent);
|
|
354
389
|
|
|
355
390
|
// src/databases/models/mdContentGroup.ts
|
|
356
|
-
var
|
|
357
|
-
var mdContentGroup = class extends
|
|
391
|
+
var import_sequelize_typescript7 = require("sequelize-typescript");
|
|
392
|
+
var mdContentGroup = class extends import_sequelize_typescript7.Model {
|
|
358
393
|
};
|
|
359
394
|
__decorateClass([
|
|
360
|
-
(0,
|
|
395
|
+
(0, import_sequelize_typescript7.Column)({
|
|
361
396
|
primaryKey: true,
|
|
362
397
|
autoIncrement: true,
|
|
363
|
-
type:
|
|
398
|
+
type: import_sequelize_typescript7.DataType.INTEGER
|
|
364
399
|
})
|
|
365
400
|
], mdContentGroup.prototype, "id", 2);
|
|
366
401
|
__decorateClass([
|
|
367
|
-
(0,
|
|
402
|
+
(0, import_sequelize_typescript7.Column)({
|
|
368
403
|
allowNull: true,
|
|
369
|
-
type:
|
|
404
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
370
405
|
})
|
|
371
406
|
], mdContentGroup.prototype, "name", 2);
|
|
372
407
|
__decorateClass([
|
|
373
|
-
(0,
|
|
408
|
+
(0, import_sequelize_typescript7.Column)({
|
|
374
409
|
allowNull: true,
|
|
375
|
-
type:
|
|
410
|
+
type: import_sequelize_typescript7.DataType.STRING(255)
|
|
376
411
|
})
|
|
377
412
|
], mdContentGroup.prototype, "description", 2);
|
|
378
413
|
__decorateClass([
|
|
379
|
-
(0,
|
|
414
|
+
(0, import_sequelize_typescript7.Column)({
|
|
380
415
|
field: "created_by",
|
|
381
416
|
allowNull: true,
|
|
382
|
-
type:
|
|
417
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
383
418
|
})
|
|
384
419
|
], mdContentGroup.prototype, "createdBy", 2);
|
|
385
420
|
__decorateClass([
|
|
386
|
-
(0,
|
|
421
|
+
(0, import_sequelize_typescript7.Column)({
|
|
387
422
|
field: "created_date",
|
|
388
423
|
allowNull: true,
|
|
389
|
-
type:
|
|
424
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
390
425
|
})
|
|
391
426
|
], mdContentGroup.prototype, "createdDate", 2);
|
|
392
427
|
__decorateClass([
|
|
393
|
-
(0,
|
|
428
|
+
(0, import_sequelize_typescript7.Column)({
|
|
394
429
|
field: "updated_by",
|
|
395
430
|
allowNull: true,
|
|
396
|
-
type:
|
|
431
|
+
type: import_sequelize_typescript7.DataType.STRING(60)
|
|
397
432
|
})
|
|
398
433
|
], mdContentGroup.prototype, "updatedBy", 2);
|
|
399
434
|
__decorateClass([
|
|
400
|
-
(0,
|
|
435
|
+
(0, import_sequelize_typescript7.Column)({
|
|
401
436
|
field: "updated_date",
|
|
402
437
|
allowNull: true,
|
|
403
|
-
type:
|
|
438
|
+
type: import_sequelize_typescript7.DataType.DATE
|
|
404
439
|
})
|
|
405
440
|
], mdContentGroup.prototype, "updatedDate", 2);
|
|
406
441
|
mdContentGroup = __decorateClass([
|
|
407
|
-
(0,
|
|
442
|
+
(0, import_sequelize_typescript7.Table)({
|
|
408
443
|
tableName: "md_content_group",
|
|
409
444
|
timestamps: false
|
|
410
445
|
})
|
|
411
446
|
], mdContentGroup);
|
|
412
447
|
|
|
448
|
+
// src/databases/models/menu.ts
|
|
449
|
+
var import_sequelize_typescript8 = require("sequelize-typescript");
|
|
450
|
+
var menu = class extends import_sequelize_typescript8.Model {
|
|
451
|
+
};
|
|
452
|
+
__decorateClass([
|
|
453
|
+
(0, import_sequelize_typescript8.Column)({
|
|
454
|
+
primaryKey: true,
|
|
455
|
+
autoIncrement: true,
|
|
456
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
457
|
+
})
|
|
458
|
+
], menu.prototype, "id", 2);
|
|
459
|
+
__decorateClass([
|
|
460
|
+
(0, import_sequelize_typescript8.Column)({
|
|
461
|
+
allowNull: true
|
|
462
|
+
})
|
|
463
|
+
], menu.prototype, "uuid", 2);
|
|
464
|
+
__decorateClass([
|
|
465
|
+
(0, import_sequelize_typescript8.Column)({
|
|
466
|
+
field: "item_name",
|
|
467
|
+
allowNull: true,
|
|
468
|
+
type: import_sequelize_typescript8.DataType.STRING(100)
|
|
469
|
+
})
|
|
470
|
+
], menu.prototype, "itemName", 2);
|
|
471
|
+
__decorateClass([
|
|
472
|
+
(0, import_sequelize_typescript8.Column)({
|
|
473
|
+
allowNull: true,
|
|
474
|
+
type: import_sequelize_typescript8.DataType.STRING(255)
|
|
475
|
+
})
|
|
476
|
+
], menu.prototype, "display", 2);
|
|
477
|
+
__decorateClass([
|
|
478
|
+
(0, import_sequelize_typescript8.Column)({
|
|
479
|
+
field: "module_id",
|
|
480
|
+
allowNull: true,
|
|
481
|
+
type: import_sequelize_typescript8.DataType.INTEGER
|
|
482
|
+
})
|
|
483
|
+
], menu.prototype, "moduleId", 2);
|
|
484
|
+
__decorateClass([
|
|
485
|
+
(0, import_sequelize_typescript8.Column)({
|
|
486
|
+
field: "created_by",
|
|
487
|
+
allowNull: true,
|
|
488
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
489
|
+
})
|
|
490
|
+
], menu.prototype, "createdBy", 2);
|
|
491
|
+
__decorateClass([
|
|
492
|
+
(0, import_sequelize_typescript8.Column)({
|
|
493
|
+
field: "created_date",
|
|
494
|
+
allowNull: true,
|
|
495
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
496
|
+
})
|
|
497
|
+
], menu.prototype, "createdDate", 2);
|
|
498
|
+
__decorateClass([
|
|
499
|
+
(0, import_sequelize_typescript8.Column)({
|
|
500
|
+
field: "updated_by",
|
|
501
|
+
allowNull: true,
|
|
502
|
+
type: import_sequelize_typescript8.DataType.STRING(60)
|
|
503
|
+
})
|
|
504
|
+
], menu.prototype, "updatedBy", 2);
|
|
505
|
+
__decorateClass([
|
|
506
|
+
(0, import_sequelize_typescript8.Column)({
|
|
507
|
+
field: "updated_date",
|
|
508
|
+
allowNull: true,
|
|
509
|
+
type: import_sequelize_typescript8.DataType.DATE
|
|
510
|
+
})
|
|
511
|
+
], menu.prototype, "updatedDate", 2);
|
|
512
|
+
menu = __decorateClass([
|
|
513
|
+
(0, import_sequelize_typescript8.Table)({
|
|
514
|
+
tableName: "menu",
|
|
515
|
+
timestamps: false
|
|
516
|
+
})
|
|
517
|
+
], menu);
|
|
518
|
+
|
|
519
|
+
// src/databases/models/msModule.ts
|
|
520
|
+
var import_sequelize_typescript9 = require("sequelize-typescript");
|
|
521
|
+
var msModule = class extends import_sequelize_typescript9.Model {
|
|
522
|
+
};
|
|
523
|
+
__decorateClass([
|
|
524
|
+
(0, import_sequelize_typescript9.Column)({
|
|
525
|
+
primaryKey: true,
|
|
526
|
+
autoIncrement: true,
|
|
527
|
+
type: import_sequelize_typescript9.DataType.INTEGER
|
|
528
|
+
})
|
|
529
|
+
], msModule.prototype, "id", 2);
|
|
530
|
+
__decorateClass([
|
|
531
|
+
(0, import_sequelize_typescript9.Column)({
|
|
532
|
+
allowNull: true,
|
|
533
|
+
type: import_sequelize_typescript9.DataType.STRING(100)
|
|
534
|
+
})
|
|
535
|
+
], msModule.prototype, "name", 2);
|
|
536
|
+
__decorateClass([
|
|
537
|
+
(0, import_sequelize_typescript9.Column)({
|
|
538
|
+
field: "created_by",
|
|
539
|
+
allowNull: true,
|
|
540
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
541
|
+
})
|
|
542
|
+
], msModule.prototype, "createdBy", 2);
|
|
543
|
+
__decorateClass([
|
|
544
|
+
(0, import_sequelize_typescript9.Column)({
|
|
545
|
+
field: "created_date",
|
|
546
|
+
allowNull: true,
|
|
547
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
548
|
+
})
|
|
549
|
+
], msModule.prototype, "createdDate", 2);
|
|
550
|
+
__decorateClass([
|
|
551
|
+
(0, import_sequelize_typescript9.Column)({
|
|
552
|
+
field: "updated_by",
|
|
553
|
+
allowNull: true,
|
|
554
|
+
type: import_sequelize_typescript9.DataType.STRING(60)
|
|
555
|
+
})
|
|
556
|
+
], msModule.prototype, "updatedBy", 2);
|
|
557
|
+
__decorateClass([
|
|
558
|
+
(0, import_sequelize_typescript9.Column)({
|
|
559
|
+
field: "updated_date",
|
|
560
|
+
allowNull: true,
|
|
561
|
+
type: import_sequelize_typescript9.DataType.DATE
|
|
562
|
+
})
|
|
563
|
+
], msModule.prototype, "updatedDate", 2);
|
|
564
|
+
msModule = __decorateClass([
|
|
565
|
+
(0, import_sequelize_typescript9.Table)({
|
|
566
|
+
tableName: "ms_module",
|
|
567
|
+
timestamps: false
|
|
568
|
+
})
|
|
569
|
+
], msModule);
|
|
570
|
+
|
|
413
571
|
// src/databases/models/users.ts
|
|
414
|
-
var
|
|
415
|
-
var users = class extends
|
|
572
|
+
var import_sequelize_typescript10 = require("sequelize-typescript");
|
|
573
|
+
var users = class extends import_sequelize_typescript10.Model {
|
|
416
574
|
};
|
|
417
575
|
__decorateClass([
|
|
418
|
-
(0,
|
|
576
|
+
(0, import_sequelize_typescript10.Column)({
|
|
419
577
|
primaryKey: true,
|
|
420
578
|
autoIncrement: true,
|
|
421
|
-
type:
|
|
579
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
422
580
|
})
|
|
423
581
|
], users.prototype, "id", 2);
|
|
424
582
|
__decorateClass([
|
|
425
|
-
(0,
|
|
426
|
-
type:
|
|
583
|
+
(0, import_sequelize_typescript10.Column)({
|
|
584
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
427
585
|
})
|
|
428
586
|
], users.prototype, "uuid", 2);
|
|
429
587
|
__decorateClass([
|
|
430
|
-
(0,
|
|
588
|
+
(0, import_sequelize_typescript10.Column)({
|
|
431
589
|
allowNull: true,
|
|
432
|
-
type:
|
|
590
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
433
591
|
})
|
|
434
592
|
], users.prototype, "username", 2);
|
|
435
593
|
__decorateClass([
|
|
436
|
-
(0,
|
|
594
|
+
(0, import_sequelize_typescript10.Column)({
|
|
437
595
|
field: "password_hash",
|
|
438
596
|
allowNull: true,
|
|
439
|
-
type:
|
|
597
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
440
598
|
})
|
|
441
599
|
], users.prototype, "passwordHash", 2);
|
|
442
600
|
__decorateClass([
|
|
443
|
-
(0,
|
|
601
|
+
(0, import_sequelize_typescript10.Column)({
|
|
444
602
|
field: "password_reset_token",
|
|
445
603
|
allowNull: true,
|
|
446
|
-
type:
|
|
604
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
447
605
|
})
|
|
448
606
|
], users.prototype, "passwordResetToken", 2);
|
|
449
607
|
__decorateClass([
|
|
450
|
-
(0,
|
|
608
|
+
(0, import_sequelize_typescript10.Column)({
|
|
451
609
|
field: "verification_token",
|
|
452
610
|
allowNull: true,
|
|
453
|
-
type:
|
|
611
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
454
612
|
})
|
|
455
613
|
], users.prototype, "verificationToken", 2);
|
|
456
614
|
__decorateClass([
|
|
457
|
-
(0,
|
|
615
|
+
(0, import_sequelize_typescript10.Column)({
|
|
458
616
|
allowNull: true,
|
|
459
|
-
type:
|
|
617
|
+
type: import_sequelize_typescript10.DataType.STRING(255)
|
|
460
618
|
})
|
|
461
619
|
], users.prototype, "email", 2);
|
|
462
620
|
__decorateClass([
|
|
463
|
-
(0,
|
|
621
|
+
(0, import_sequelize_typescript10.Column)({
|
|
464
622
|
field: "auth_key",
|
|
465
623
|
allowNull: true,
|
|
466
|
-
type:
|
|
624
|
+
type: import_sequelize_typescript10.DataType.STRING(32)
|
|
467
625
|
})
|
|
468
626
|
], users.prototype, "authKey", 2);
|
|
469
627
|
__decorateClass([
|
|
470
|
-
(0,
|
|
628
|
+
(0, import_sequelize_typescript10.Column)({
|
|
471
629
|
field: "access_token",
|
|
472
630
|
allowNull: true,
|
|
473
|
-
type:
|
|
631
|
+
type: import_sequelize_typescript10.DataType.STRING
|
|
474
632
|
})
|
|
475
633
|
], users.prototype, "accessToken", 2);
|
|
476
634
|
__decorateClass([
|
|
477
|
-
(0,
|
|
635
|
+
(0, import_sequelize_typescript10.Column)({
|
|
478
636
|
field: "user_level",
|
|
479
637
|
allowNull: true,
|
|
480
|
-
type:
|
|
638
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
481
639
|
})
|
|
482
640
|
], users.prototype, "userLevel", 2);
|
|
483
641
|
__decorateClass([
|
|
484
|
-
(0,
|
|
642
|
+
(0, import_sequelize_typescript10.Column)({
|
|
485
643
|
field: "user_authen",
|
|
486
644
|
allowNull: true,
|
|
487
|
-
type:
|
|
645
|
+
type: import_sequelize_typescript10.DataType.STRING(64)
|
|
488
646
|
})
|
|
489
647
|
], users.prototype, "userAuthen", 2);
|
|
490
648
|
__decorateClass([
|
|
491
|
-
(0,
|
|
649
|
+
(0, import_sequelize_typescript10.Column)({
|
|
492
650
|
field: "user_type",
|
|
493
651
|
allowNull: true,
|
|
494
|
-
type:
|
|
652
|
+
type: import_sequelize_typescript10.DataType.INTEGER
|
|
495
653
|
})
|
|
496
654
|
], users.prototype, "userType", 2);
|
|
497
655
|
__decorateClass([
|
|
498
|
-
(0,
|
|
656
|
+
(0, import_sequelize_typescript10.Column)({
|
|
499
657
|
allowNull: true,
|
|
500
|
-
type:
|
|
658
|
+
type: import_sequelize_typescript10.DataType.STRING(10)
|
|
501
659
|
})
|
|
502
660
|
], users.prototype, "prefix", 2);
|
|
503
661
|
__decorateClass([
|
|
504
|
-
(0,
|
|
662
|
+
(0, import_sequelize_typescript10.Column)({
|
|
505
663
|
field: "first_name",
|
|
506
664
|
allowNull: true,
|
|
507
|
-
type:
|
|
665
|
+
type: import_sequelize_typescript10.DataType.STRING(100)
|
|
508
666
|
})
|
|
509
667
|
], users.prototype, "firstName", 2);
|
|
510
668
|
__decorateClass([
|
|
511
|
-
(0,
|
|
669
|
+
(0, import_sequelize_typescript10.Column)({
|
|
512
670
|
field: "last_name",
|
|
513
671
|
allowNull: true,
|
|
514
|
-
type:
|
|
672
|
+
type: import_sequelize_typescript10.DataType.STRING(100)
|
|
515
673
|
})
|
|
516
674
|
], users.prototype, "lastName", 2);
|
|
517
675
|
__decorateClass([
|
|
518
|
-
(0,
|
|
676
|
+
(0, import_sequelize_typescript10.Column)({
|
|
519
677
|
allowNull: true,
|
|
520
|
-
type:
|
|
678
|
+
type: import_sequelize_typescript10.DataType.STRING(20)
|
|
521
679
|
})
|
|
522
680
|
], users.prototype, "phone", 2);
|
|
523
681
|
__decorateClass([
|
|
524
|
-
(0,
|
|
682
|
+
(0, import_sequelize_typescript10.Column)({
|
|
525
683
|
allowNull: true,
|
|
526
|
-
type:
|
|
684
|
+
type: import_sequelize_typescript10.DataType.SMALLINT
|
|
527
685
|
})
|
|
528
686
|
], users.prototype, "status", 2);
|
|
529
687
|
__decorateClass([
|
|
530
|
-
(0,
|
|
688
|
+
(0, import_sequelize_typescript10.Column)({
|
|
531
689
|
field: "created_by",
|
|
532
690
|
allowNull: true,
|
|
533
|
-
type:
|
|
691
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
534
692
|
})
|
|
535
693
|
], users.prototype, "createdBy", 2);
|
|
536
694
|
__decorateClass([
|
|
537
|
-
(0,
|
|
695
|
+
(0, import_sequelize_typescript10.Column)({
|
|
538
696
|
field: "created_date",
|
|
539
697
|
allowNull: true,
|
|
540
|
-
type:
|
|
698
|
+
type: import_sequelize_typescript10.DataType.DATE
|
|
541
699
|
})
|
|
542
700
|
], users.prototype, "createdDate", 2);
|
|
543
701
|
__decorateClass([
|
|
544
|
-
(0,
|
|
702
|
+
(0, import_sequelize_typescript10.Column)({
|
|
545
703
|
field: "updated_by",
|
|
546
704
|
allowNull: true,
|
|
547
|
-
type:
|
|
705
|
+
type: import_sequelize_typescript10.DataType.STRING(60)
|
|
548
706
|
})
|
|
549
707
|
], users.prototype, "updatedBy", 2);
|
|
550
708
|
__decorateClass([
|
|
551
|
-
(0,
|
|
709
|
+
(0, import_sequelize_typescript10.Column)({
|
|
552
710
|
field: "updated_date",
|
|
553
711
|
allowNull: true,
|
|
554
|
-
type:
|
|
712
|
+
type: import_sequelize_typescript10.DataType.DATE
|
|
555
713
|
})
|
|
556
714
|
], users.prototype, "updatedDate", 2);
|
|
557
715
|
users = __decorateClass([
|
|
558
|
-
(0,
|
|
716
|
+
(0, import_sequelize_typescript10.Table)({
|
|
559
717
|
tableName: "users",
|
|
560
718
|
timestamps: false
|
|
561
719
|
})
|
|
@@ -565,8 +723,11 @@ users = __decorateClass([
|
|
|
565
723
|
authAssignment,
|
|
566
724
|
authItem,
|
|
567
725
|
authItemChild,
|
|
568
|
-
|
|
726
|
+
authRole,
|
|
727
|
+
authRoleChild,
|
|
569
728
|
mdContent,
|
|
570
729
|
mdContentGroup,
|
|
730
|
+
menu,
|
|
731
|
+
msModule,
|
|
571
732
|
users
|
|
572
733
|
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface menuAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid?: any;
|
|
6
|
+
itemName?: string;
|
|
7
|
+
display?: string;
|
|
8
|
+
moduleId?: number;
|
|
9
|
+
createdBy?: string;
|
|
10
|
+
createdDate?: Date;
|
|
11
|
+
updatedBy?: string;
|
|
12
|
+
updatedDate?: Date;
|
|
13
|
+
}
|
|
14
|
+
declare class menu extends Model<menuAttributes, menuAttributes> implements menuAttributes {
|
|
15
|
+
id?: number;
|
|
16
|
+
uuid?: any;
|
|
17
|
+
itemName?: string;
|
|
18
|
+
display?: string;
|
|
19
|
+
moduleId?: number;
|
|
20
|
+
createdBy?: string;
|
|
21
|
+
createdDate?: Date;
|
|
22
|
+
updatedBy?: string;
|
|
23
|
+
updatedDate?: Date;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { menu, type menuAttributes };
|
|
@@ -0,0 +1,106 @@
|
|
|
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/menu.ts
|
|
29
|
+
var menu_exports = {};
|
|
30
|
+
__export(menu_exports, {
|
|
31
|
+
menu: () => menu
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(menu_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var menu = 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
|
+
], menu.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
allowNull: true
|
|
47
|
+
})
|
|
48
|
+
], menu.prototype, "uuid", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
(0, import_sequelize_typescript.Column)({
|
|
51
|
+
field: "item_name",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
54
|
+
})
|
|
55
|
+
], menu.prototype, "itemName", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
], menu.prototype, "display", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
field: "module_id",
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
67
|
+
})
|
|
68
|
+
], menu.prototype, "moduleId", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
(0, import_sequelize_typescript.Column)({
|
|
71
|
+
field: "created_by",
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
74
|
+
})
|
|
75
|
+
], menu.prototype, "createdBy", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
(0, import_sequelize_typescript.Column)({
|
|
78
|
+
field: "created_date",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
81
|
+
})
|
|
82
|
+
], menu.prototype, "createdDate", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
(0, import_sequelize_typescript.Column)({
|
|
85
|
+
field: "updated_by",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
88
|
+
})
|
|
89
|
+
], menu.prototype, "updatedBy", 2);
|
|
90
|
+
__decorateClass([
|
|
91
|
+
(0, import_sequelize_typescript.Column)({
|
|
92
|
+
field: "updated_date",
|
|
93
|
+
allowNull: true,
|
|
94
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
95
|
+
})
|
|
96
|
+
], menu.prototype, "updatedDate", 2);
|
|
97
|
+
menu = __decorateClass([
|
|
98
|
+
(0, import_sequelize_typescript.Table)({
|
|
99
|
+
tableName: "menu",
|
|
100
|
+
timestamps: false
|
|
101
|
+
})
|
|
102
|
+
], menu);
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
menu
|
|
106
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface msModuleAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
name?: string;
|
|
6
|
+
createdBy?: string;
|
|
7
|
+
createdDate?: Date;
|
|
8
|
+
updatedBy?: string;
|
|
9
|
+
updatedDate?: Date;
|
|
10
|
+
}
|
|
11
|
+
declare class msModule extends Model<msModuleAttributes, msModuleAttributes> implements msModuleAttributes {
|
|
12
|
+
id?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
createdBy?: string;
|
|
15
|
+
createdDate?: Date;
|
|
16
|
+
updatedBy?: string;
|
|
17
|
+
updatedDate?: Date;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { msModule, type msModuleAttributes };
|
|
@@ -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/msModule.ts
|
|
29
|
+
var msModule_exports = {};
|
|
30
|
+
__export(msModule_exports, {
|
|
31
|
+
msModule: () => msModule
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(msModule_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var msModule = 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
|
+
], msModule.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: import_sequelize_typescript.DataType.STRING(100)
|
|
48
|
+
})
|
|
49
|
+
], msModule.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
|
+
], msModule.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
|
+
], msModule.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
|
+
], msModule.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
|
+
], msModule.prototype, "updatedDate", 2);
|
|
78
|
+
msModule = __decorateClass([
|
|
79
|
+
(0, import_sequelize_typescript.Table)({
|
|
80
|
+
tableName: "ms_module",
|
|
81
|
+
timestamps: false
|
|
82
|
+
})
|
|
83
|
+
], msModule);
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
msModule
|
|
87
|
+
});
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
|
|
3
|
-
interface authRuleAttributes {
|
|
4
|
-
name: string;
|
|
5
|
-
data?: Uint8Array;
|
|
6
|
-
createdBy?: string;
|
|
7
|
-
createdDate?: Date;
|
|
8
|
-
updatedBy?: string;
|
|
9
|
-
updatedDate?: Date;
|
|
10
|
-
}
|
|
11
|
-
declare class authRule extends Model<authRuleAttributes, authRuleAttributes> implements authRuleAttributes {
|
|
12
|
-
name: string;
|
|
13
|
-
data?: Uint8Array;
|
|
14
|
-
createdBy?: string;
|
|
15
|
-
createdDate?: Date;
|
|
16
|
-
updatedBy?: string;
|
|
17
|
-
updatedDate?: Date;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { authRule, type authRuleAttributes };
|