@admc-go-th/admc-library 1.0.13 → 1.0.15
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/authAssignment-B6rhOsb-.d.ts +146 -0
- package/authItem-CRUblP_g.d.ts +85 -0
- package/databases/models/index.ts +2 -0
- package/databases/models/menu.ts +14 -0
- package/databases/models/users.ts +15 -0
- package/databases/schema/authAssignment.ts +72 -0
- package/databases/schema/authItem.ts +93 -0
- package/databases/schema/authItemChild.ts +34 -0
- package/databases/schema/authRole.ts +66 -0
- package/databases/schema/authRoleChild.ts +37 -0
- package/databases/schema/index.ts +10 -0
- package/databases/schema/mdContent.ts +139 -0
- package/databases/schema/mdContentGroup.ts +73 -0
- package/databases/schema/menu.ts +108 -0
- package/databases/schema/msModule.ts +66 -0
- package/databases/schema/users.ts +186 -0
- package/databases/tables/authAssignment.d.ts +2 -0
- package/databases/tables/authAssignment.js +499 -0
- package/databases/tables/authItem.d.ts +2 -0
- package/databases/tables/authItem.js +294 -0
- package/databases/tables/authItemChild.d.ts +2 -0
- package/databases/tables/authItemChild.js +296 -0
- package/databases/tables/authRole.d.ts +2 -0
- package/databases/tables/authRole.js +501 -0
- package/databases/{models → tables}/authRoleChild.js +1 -1
- package/databases/tables/index.d.ts +4 -0
- package/databases/{models → tables}/index.js +433 -346
- package/databases/tables/mdContent.d.ts +2 -0
- package/databases/tables/mdContent.js +499 -0
- package/databases/tables/mdContentGroup.d.ts +2 -0
- package/databases/tables/mdContentGroup.js +501 -0
- package/databases/tables/menu.d.ts +2 -0
- package/databases/tables/menu.js +294 -0
- package/databases/tables/msModule.d.ts +2 -0
- package/databases/tables/msModule.js +296 -0
- package/databases/tables/users.d.ts +2 -0
- package/databases/tables/users.js +499 -0
- package/middleware/authenticate-token.js +35 -24
- package/middleware/error-handler.js +1 -1
- package/package.json +4 -2
- package/databases/models/authAssignment.d.ts +0 -20
- package/databases/models/authAssignment.js +0 -88
- package/databases/models/authItem.d.ts +0 -26
- package/databases/models/authItem.js +0 -104
- package/databases/models/authItemChild.d.ts +0 -12
- package/databases/models/authItemChild.js +0 -58
- package/databases/models/authRole.d.ts +0 -20
- package/databases/models/authRole.js +0 -86
- package/databases/models/index.d.ts +0 -11
- package/databases/models/mdContent.d.ts +0 -38
- package/databases/models/mdContent.js +0 -146
- package/databases/models/mdContentGroup.d.ts +0 -22
- package/databases/models/mdContentGroup.js +0 -92
- package/databases/models/menu.d.ts +0 -26
- package/databases/models/menu.js +0 -106
- package/databases/models/msModule.d.ts +0 -20
- package/databases/models/msModule.js +0 -86
- package/databases/models/users.d.ts +0 -50
- package/databases/models/users.js +0 -185
- /package/databases/{models → tables}/authRoleChild.d.ts +0 -0
|
@@ -1,92 +0,0 @@
|
|
|
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/mdContentGroup.ts
|
|
29
|
-
var mdContentGroup_exports = {};
|
|
30
|
-
__export(mdContentGroup_exports, {
|
|
31
|
-
mdContentGroup: () => mdContentGroup
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(mdContentGroup_exports);
|
|
34
|
-
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var mdContentGroup = 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
|
-
], mdContentGroup.prototype, "id", 2);
|
|
44
|
-
__decorateClass([
|
|
45
|
-
(0, import_sequelize_typescript.Column)({
|
|
46
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
47
|
-
})
|
|
48
|
-
], mdContentGroup.prototype, "name", 2);
|
|
49
|
-
__decorateClass([
|
|
50
|
-
(0, import_sequelize_typescript.Column)({
|
|
51
|
-
allowNull: true,
|
|
52
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
53
|
-
})
|
|
54
|
-
], mdContentGroup.prototype, "description", 2);
|
|
55
|
-
__decorateClass([
|
|
56
|
-
(0, import_sequelize_typescript.Column)({
|
|
57
|
-
field: "created_by",
|
|
58
|
-
allowNull: true,
|
|
59
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
60
|
-
})
|
|
61
|
-
], mdContentGroup.prototype, "createdBy", 2);
|
|
62
|
-
__decorateClass([
|
|
63
|
-
(0, import_sequelize_typescript.Column)({
|
|
64
|
-
field: "created_date",
|
|
65
|
-
allowNull: true,
|
|
66
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
67
|
-
})
|
|
68
|
-
], mdContentGroup.prototype, "createdDate", 2);
|
|
69
|
-
__decorateClass([
|
|
70
|
-
(0, import_sequelize_typescript.Column)({
|
|
71
|
-
field: "updated_by",
|
|
72
|
-
allowNull: true,
|
|
73
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
74
|
-
})
|
|
75
|
-
], mdContentGroup.prototype, "updatedBy", 2);
|
|
76
|
-
__decorateClass([
|
|
77
|
-
(0, import_sequelize_typescript.Column)({
|
|
78
|
-
field: "updated_date",
|
|
79
|
-
allowNull: true,
|
|
80
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
81
|
-
})
|
|
82
|
-
], mdContentGroup.prototype, "updatedDate", 2);
|
|
83
|
-
mdContentGroup = __decorateClass([
|
|
84
|
-
(0, import_sequelize_typescript.Table)({
|
|
85
|
-
tableName: "md_content_group",
|
|
86
|
-
timestamps: false
|
|
87
|
-
})
|
|
88
|
-
], mdContentGroup);
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
mdContentGroup
|
|
92
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
|
|
3
|
-
interface menuAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid: string;
|
|
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: string;
|
|
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 };
|
package/databases/models/menu.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
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
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
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 };
|
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
type: import_sequelize_typescript.DataType.STRING(100)
|
|
47
|
-
})
|
|
48
|
-
], msModule.prototype, "name", 2);
|
|
49
|
-
__decorateClass([
|
|
50
|
-
(0, import_sequelize_typescript.Column)({
|
|
51
|
-
field: "created_by",
|
|
52
|
-
allowNull: true,
|
|
53
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
54
|
-
})
|
|
55
|
-
], msModule.prototype, "createdBy", 2);
|
|
56
|
-
__decorateClass([
|
|
57
|
-
(0, import_sequelize_typescript.Column)({
|
|
58
|
-
field: "created_date",
|
|
59
|
-
allowNull: true,
|
|
60
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
61
|
-
})
|
|
62
|
-
], msModule.prototype, "createdDate", 2);
|
|
63
|
-
__decorateClass([
|
|
64
|
-
(0, import_sequelize_typescript.Column)({
|
|
65
|
-
field: "updated_by",
|
|
66
|
-
allowNull: true,
|
|
67
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
68
|
-
})
|
|
69
|
-
], msModule.prototype, "updatedBy", 2);
|
|
70
|
-
__decorateClass([
|
|
71
|
-
(0, import_sequelize_typescript.Column)({
|
|
72
|
-
field: "updated_date",
|
|
73
|
-
allowNull: true,
|
|
74
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
75
|
-
})
|
|
76
|
-
], msModule.prototype, "updatedDate", 2);
|
|
77
|
-
msModule = __decorateClass([
|
|
78
|
-
(0, import_sequelize_typescript.Table)({
|
|
79
|
-
tableName: "ms_module",
|
|
80
|
-
timestamps: false
|
|
81
|
-
})
|
|
82
|
-
], msModule);
|
|
83
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
-
0 && (module.exports = {
|
|
85
|
-
msModule
|
|
86
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
|
|
3
|
-
interface usersAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid: string;
|
|
6
|
-
username: string;
|
|
7
|
-
passwordHash?: string;
|
|
8
|
-
passwordResetToken?: string;
|
|
9
|
-
verificationToken?: string;
|
|
10
|
-
email?: string;
|
|
11
|
-
authKey?: string;
|
|
12
|
-
accessToken?: string;
|
|
13
|
-
userLevel?: number;
|
|
14
|
-
userAuthen?: string;
|
|
15
|
-
userType?: number;
|
|
16
|
-
prefix?: string;
|
|
17
|
-
firstName?: string;
|
|
18
|
-
lastName?: string;
|
|
19
|
-
phone?: string;
|
|
20
|
-
status?: number;
|
|
21
|
-
createdBy?: string;
|
|
22
|
-
createdDate?: Date;
|
|
23
|
-
updatedBy?: string;
|
|
24
|
-
updatedDate?: Date;
|
|
25
|
-
}
|
|
26
|
-
declare class users extends Model<usersAttributes, usersAttributes> implements usersAttributes {
|
|
27
|
-
id?: number;
|
|
28
|
-
uuid: string;
|
|
29
|
-
username: string;
|
|
30
|
-
passwordHash?: string;
|
|
31
|
-
passwordResetToken?: string;
|
|
32
|
-
verificationToken?: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
authKey?: string;
|
|
35
|
-
accessToken?: string;
|
|
36
|
-
userLevel?: number;
|
|
37
|
-
userAuthen?: string;
|
|
38
|
-
userType?: number;
|
|
39
|
-
prefix?: string;
|
|
40
|
-
firstName?: string;
|
|
41
|
-
lastName?: string;
|
|
42
|
-
phone?: string;
|
|
43
|
-
status?: number;
|
|
44
|
-
createdBy?: string;
|
|
45
|
-
createdDate?: Date;
|
|
46
|
-
updatedBy?: string;
|
|
47
|
-
updatedDate?: Date;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { users, type usersAttributes };
|
|
@@ -1,185 +0,0 @@
|
|
|
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/users.ts
|
|
29
|
-
var users_exports = {};
|
|
30
|
-
__export(users_exports, {
|
|
31
|
-
users: () => users
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(users_exports);
|
|
34
|
-
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var users = 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
|
-
], users.prototype, "id", 2);
|
|
44
|
-
__decorateClass([
|
|
45
|
-
(0, import_sequelize_typescript.Column)({
|
|
46
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
47
|
-
})
|
|
48
|
-
], users.prototype, "uuid", 2);
|
|
49
|
-
__decorateClass([
|
|
50
|
-
(0, import_sequelize_typescript.Column)({
|
|
51
|
-
type: import_sequelize_typescript.DataType.STRING(100)
|
|
52
|
-
})
|
|
53
|
-
], users.prototype, "username", 2);
|
|
54
|
-
__decorateClass([
|
|
55
|
-
(0, import_sequelize_typescript.Column)({
|
|
56
|
-
field: "password_hash",
|
|
57
|
-
allowNull: true,
|
|
58
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
59
|
-
})
|
|
60
|
-
], users.prototype, "passwordHash", 2);
|
|
61
|
-
__decorateClass([
|
|
62
|
-
(0, import_sequelize_typescript.Column)({
|
|
63
|
-
field: "password_reset_token",
|
|
64
|
-
allowNull: true,
|
|
65
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
66
|
-
})
|
|
67
|
-
], users.prototype, "passwordResetToken", 2);
|
|
68
|
-
__decorateClass([
|
|
69
|
-
(0, import_sequelize_typescript.Column)({
|
|
70
|
-
field: "verification_token",
|
|
71
|
-
allowNull: true,
|
|
72
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
73
|
-
})
|
|
74
|
-
], users.prototype, "verificationToken", 2);
|
|
75
|
-
__decorateClass([
|
|
76
|
-
(0, import_sequelize_typescript.Column)({
|
|
77
|
-
allowNull: true,
|
|
78
|
-
type: import_sequelize_typescript.DataType.STRING(255)
|
|
79
|
-
})
|
|
80
|
-
], users.prototype, "email", 2);
|
|
81
|
-
__decorateClass([
|
|
82
|
-
(0, import_sequelize_typescript.Column)({
|
|
83
|
-
field: "auth_key",
|
|
84
|
-
allowNull: true,
|
|
85
|
-
type: import_sequelize_typescript.DataType.STRING(32)
|
|
86
|
-
})
|
|
87
|
-
], users.prototype, "authKey", 2);
|
|
88
|
-
__decorateClass([
|
|
89
|
-
(0, import_sequelize_typescript.Column)({
|
|
90
|
-
field: "access_token",
|
|
91
|
-
allowNull: true,
|
|
92
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
93
|
-
})
|
|
94
|
-
], users.prototype, "accessToken", 2);
|
|
95
|
-
__decorateClass([
|
|
96
|
-
(0, import_sequelize_typescript.Column)({
|
|
97
|
-
field: "user_level",
|
|
98
|
-
allowNull: true,
|
|
99
|
-
type: import_sequelize_typescript.DataType.INTEGER
|
|
100
|
-
})
|
|
101
|
-
], users.prototype, "userLevel", 2);
|
|
102
|
-
__decorateClass([
|
|
103
|
-
(0, import_sequelize_typescript.Column)({
|
|
104
|
-
field: "user_authen",
|
|
105
|
-
allowNull: true,
|
|
106
|
-
type: import_sequelize_typescript.DataType.STRING(64)
|
|
107
|
-
})
|
|
108
|
-
], users.prototype, "userAuthen", 2);
|
|
109
|
-
__decorateClass([
|
|
110
|
-
(0, import_sequelize_typescript.Column)({
|
|
111
|
-
field: "user_type",
|
|
112
|
-
allowNull: true,
|
|
113
|
-
type: import_sequelize_typescript.DataType.INTEGER
|
|
114
|
-
})
|
|
115
|
-
], users.prototype, "userType", 2);
|
|
116
|
-
__decorateClass([
|
|
117
|
-
(0, import_sequelize_typescript.Column)({
|
|
118
|
-
allowNull: true,
|
|
119
|
-
type: import_sequelize_typescript.DataType.STRING(10)
|
|
120
|
-
})
|
|
121
|
-
], users.prototype, "prefix", 2);
|
|
122
|
-
__decorateClass([
|
|
123
|
-
(0, import_sequelize_typescript.Column)({
|
|
124
|
-
field: "first_name",
|
|
125
|
-
allowNull: true,
|
|
126
|
-
type: import_sequelize_typescript.DataType.STRING(100)
|
|
127
|
-
})
|
|
128
|
-
], users.prototype, "firstName", 2);
|
|
129
|
-
__decorateClass([
|
|
130
|
-
(0, import_sequelize_typescript.Column)({
|
|
131
|
-
field: "last_name",
|
|
132
|
-
allowNull: true,
|
|
133
|
-
type: import_sequelize_typescript.DataType.STRING(100)
|
|
134
|
-
})
|
|
135
|
-
], users.prototype, "lastName", 2);
|
|
136
|
-
__decorateClass([
|
|
137
|
-
(0, import_sequelize_typescript.Column)({
|
|
138
|
-
allowNull: true,
|
|
139
|
-
type: import_sequelize_typescript.DataType.STRING(20)
|
|
140
|
-
})
|
|
141
|
-
], users.prototype, "phone", 2);
|
|
142
|
-
__decorateClass([
|
|
143
|
-
(0, import_sequelize_typescript.Column)({
|
|
144
|
-
allowNull: true,
|
|
145
|
-
type: import_sequelize_typescript.DataType.SMALLINT
|
|
146
|
-
})
|
|
147
|
-
], users.prototype, "status", 2);
|
|
148
|
-
__decorateClass([
|
|
149
|
-
(0, import_sequelize_typescript.Column)({
|
|
150
|
-
field: "created_by",
|
|
151
|
-
allowNull: true,
|
|
152
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
153
|
-
})
|
|
154
|
-
], users.prototype, "createdBy", 2);
|
|
155
|
-
__decorateClass([
|
|
156
|
-
(0, import_sequelize_typescript.Column)({
|
|
157
|
-
field: "created_date",
|
|
158
|
-
allowNull: true,
|
|
159
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
160
|
-
})
|
|
161
|
-
], users.prototype, "createdDate", 2);
|
|
162
|
-
__decorateClass([
|
|
163
|
-
(0, import_sequelize_typescript.Column)({
|
|
164
|
-
field: "updated_by",
|
|
165
|
-
allowNull: true,
|
|
166
|
-
type: import_sequelize_typescript.DataType.STRING(60)
|
|
167
|
-
})
|
|
168
|
-
], users.prototype, "updatedBy", 2);
|
|
169
|
-
__decorateClass([
|
|
170
|
-
(0, import_sequelize_typescript.Column)({
|
|
171
|
-
field: "updated_date",
|
|
172
|
-
allowNull: true,
|
|
173
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
174
|
-
})
|
|
175
|
-
], users.prototype, "updatedDate", 2);
|
|
176
|
-
users = __decorateClass([
|
|
177
|
-
(0, import_sequelize_typescript.Table)({
|
|
178
|
-
tableName: "users",
|
|
179
|
-
timestamps: false
|
|
180
|
-
})
|
|
181
|
-
], users);
|
|
182
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
183
|
-
0 && (module.exports = {
|
|
184
|
-
users
|
|
185
|
-
});
|
|
File without changes
|