cloud-ide-model-schema 1.0.0
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/config/database.js +57 -0
- package/index.js +21 -0
- package/package.json +24 -0
- package/schema/auth/auth_logses.js +73 -0
- package/schema/auth/auth_user_mst.js +130 -0
- package/schema/auth/index.js +10 -0
- package/schema/auth/mpin.js +74 -0
- package/schema/core/core_entity_mapping.js +57 -0
- package/schema/core/core_general_master.js +60 -0
- package/schema/core/core_general_master_type.js +56 -0
- package/schema/core/core_page_controls.js +98 -0
- package/schema/core/core_page_grid.js +59 -0
- package/schema/core/core_page_tab.js +56 -0
- package/schema/core/core_pin_code.js +74 -0
- package/schema/core/core_system_config.js +68 -0
- package/schema/core/core_system_entity.js +200 -0
- package/schema/core/core_system_logs.js +137 -0
- package/schema/core/core_system_menu.js +83 -0
- package/schema/core/core_system_pages.js +71 -0
- package/schema/core/core_system_pages_theme.js +71 -0
- package/schema/core/index.js +34 -0
- package/schema/email/elist.js +62 -0
- package/schema/email/elog.js +78 -0
- package/schema/email/eref.js +63 -0
- package/schema/email/esub.js +89 -0
- package/schema/email/etmp.js +61 -0
- package/schema/email/evdr.js +61 -0
- package/schema/email/index.js +21 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSypgr = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_page_grid = new mongoose_1.Schema({
|
|
31
|
+
sypgr_grid_code: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: true,
|
|
34
|
+
minlength: 3,
|
|
35
|
+
maxlength: 40,
|
|
36
|
+
unique: true,
|
|
37
|
+
trim: true
|
|
38
|
+
},
|
|
39
|
+
sypgr_page_id_sypg: {
|
|
40
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
41
|
+
ref: "core_system_pages"
|
|
42
|
+
},
|
|
43
|
+
sypgr_title: {
|
|
44
|
+
type: String,
|
|
45
|
+
require: true,
|
|
46
|
+
minlength: 3,
|
|
47
|
+
maxlength: 100,
|
|
48
|
+
trim: true
|
|
49
|
+
},
|
|
50
|
+
sypgr_configuration: {
|
|
51
|
+
type: Object
|
|
52
|
+
},
|
|
53
|
+
sypgr_isactive: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: true
|
|
56
|
+
}
|
|
57
|
+
}, { collection: 'core_page_grid' });
|
|
58
|
+
const CCoreSypgr = mongoose_1.default.model("core_page_grid", core_page_grid);
|
|
59
|
+
exports.CCoreSypgr = CCoreSypgr;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSyptb = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_page_tab = new mongoose_1.Schema({
|
|
31
|
+
syptb_page_id_sypg: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "core_system_pages"
|
|
34
|
+
},
|
|
35
|
+
syptb_title: {
|
|
36
|
+
type: String,
|
|
37
|
+
minlength: 0,
|
|
38
|
+
maxlength: 100,
|
|
39
|
+
trim: true
|
|
40
|
+
},
|
|
41
|
+
syptb_tabs: {
|
|
42
|
+
type: Array
|
|
43
|
+
},
|
|
44
|
+
syptb_tab_code: {
|
|
45
|
+
type: String,
|
|
46
|
+
minlength: 3,
|
|
47
|
+
maxlength: 40,
|
|
48
|
+
trim: true
|
|
49
|
+
},
|
|
50
|
+
syptb_isactive: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
}
|
|
54
|
+
}, { collection: 'core_page_tab' });
|
|
55
|
+
const CCoreSyptb = mongoose_1.default.model("core_page_tab", core_page_tab);
|
|
56
|
+
exports.CCoreSyptb = CCoreSyptb;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSypin = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_pin_code = new mongoose_1.Schema({
|
|
31
|
+
sypin_circle_name: {
|
|
32
|
+
type: String,
|
|
33
|
+
trim: true
|
|
34
|
+
},
|
|
35
|
+
sypin_region_name: {
|
|
36
|
+
type: String,
|
|
37
|
+
trim: true
|
|
38
|
+
},
|
|
39
|
+
sypin_division_name: {
|
|
40
|
+
type: String,
|
|
41
|
+
trim: true
|
|
42
|
+
},
|
|
43
|
+
sypin_office_name: {
|
|
44
|
+
type: String,
|
|
45
|
+
trim: true
|
|
46
|
+
},
|
|
47
|
+
sypin_pincode: {},
|
|
48
|
+
sypin_office_type: {
|
|
49
|
+
type: String,
|
|
50
|
+
trim: true
|
|
51
|
+
},
|
|
52
|
+
sypin_delivery: {
|
|
53
|
+
type: String,
|
|
54
|
+
trim: true
|
|
55
|
+
},
|
|
56
|
+
sypin_district: {
|
|
57
|
+
type: String,
|
|
58
|
+
trim: true
|
|
59
|
+
},
|
|
60
|
+
sypin_state_name: {
|
|
61
|
+
type: String,
|
|
62
|
+
trim: true
|
|
63
|
+
},
|
|
64
|
+
sypin_latitude: {
|
|
65
|
+
type: Number,
|
|
66
|
+
trim: true
|
|
67
|
+
},
|
|
68
|
+
sypin_longitude: {
|
|
69
|
+
type: Number,
|
|
70
|
+
trim: true
|
|
71
|
+
}
|
|
72
|
+
}, { collection: 'core_pin_code' });
|
|
73
|
+
const CCoreSypin = mongoose_1.default.model("core_pin_code", core_pin_code);
|
|
74
|
+
exports.CCoreSypin = CCoreSypin;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSyco = exports.ICoreSyco = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class ICoreSyco {
|
|
30
|
+
}
|
|
31
|
+
exports.ICoreSyco = ICoreSyco;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const core_system_config = new mongoose_1.Schema({
|
|
35
|
+
syco_for: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
minlength: 8,
|
|
39
|
+
maxlength: 25,
|
|
40
|
+
unique: true,
|
|
41
|
+
trim: true,
|
|
42
|
+
enum: ['email_service', 'reset_password_link', 'route_trace_loggs', 'security_loggs']
|
|
43
|
+
},
|
|
44
|
+
syco_title: {
|
|
45
|
+
type: String,
|
|
46
|
+
require: true,
|
|
47
|
+
minlength: 8,
|
|
48
|
+
maxlength: 50,
|
|
49
|
+
trim: true
|
|
50
|
+
},
|
|
51
|
+
syco_desc: {
|
|
52
|
+
type: String,
|
|
53
|
+
minlength: 8,
|
|
54
|
+
maxlength: 52,
|
|
55
|
+
required: true,
|
|
56
|
+
trim: true
|
|
57
|
+
},
|
|
58
|
+
syco_configuration: {
|
|
59
|
+
type: Object
|
|
60
|
+
},
|
|
61
|
+
syco_isactive: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
required: true,
|
|
64
|
+
default: true
|
|
65
|
+
}
|
|
66
|
+
}, { collection: 'core_system_config' });
|
|
67
|
+
const CCoreSyco = mongoose_1.default.model("core_system_config", core_system_config);
|
|
68
|
+
exports.CCoreSyco = CCoreSyco;
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSyen = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_system_entity = new mongoose_1.Schema({
|
|
31
|
+
syen_id_syen: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "core_system_entity"
|
|
34
|
+
},
|
|
35
|
+
syen_name: {
|
|
36
|
+
type: String,
|
|
37
|
+
minlength: 0,
|
|
38
|
+
maxlength: 150,
|
|
39
|
+
trim: true
|
|
40
|
+
},
|
|
41
|
+
syen_entity_type_gmst: {
|
|
42
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
43
|
+
ref: "core_general_master"
|
|
44
|
+
},
|
|
45
|
+
syen_entity_code: {
|
|
46
|
+
type: String,
|
|
47
|
+
minlength: 0,
|
|
48
|
+
maxlength: 40,
|
|
49
|
+
trim: true
|
|
50
|
+
},
|
|
51
|
+
syen_corporate_address: {
|
|
52
|
+
type: String,
|
|
53
|
+
minlength: 0,
|
|
54
|
+
maxlength: 255,
|
|
55
|
+
trim: true
|
|
56
|
+
},
|
|
57
|
+
syen_corporate_pin_sypc: {
|
|
58
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
59
|
+
ref: "core_postal_code"
|
|
60
|
+
},
|
|
61
|
+
syen_corporate_city_sypc: {
|
|
62
|
+
type: String,
|
|
63
|
+
minlength: 0,
|
|
64
|
+
maxlength: 40,
|
|
65
|
+
trim: true
|
|
66
|
+
},
|
|
67
|
+
syen_corporate_state_sypc: {
|
|
68
|
+
type: String,
|
|
69
|
+
minlength: 0,
|
|
70
|
+
maxlength: 40,
|
|
71
|
+
trim: true
|
|
72
|
+
},
|
|
73
|
+
syen_corporate_country_sypc: {
|
|
74
|
+
type: String,
|
|
75
|
+
minlength: 0,
|
|
76
|
+
maxlength: 50,
|
|
77
|
+
trim: true
|
|
78
|
+
},
|
|
79
|
+
syen_corporate_contact_person_user: {
|
|
80
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
81
|
+
ref: "auth_user_mst"
|
|
82
|
+
},
|
|
83
|
+
syen_corporate_phone: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: null,
|
|
86
|
+
minlength: 0,
|
|
87
|
+
maxlength: 15,
|
|
88
|
+
trim: true
|
|
89
|
+
},
|
|
90
|
+
syen_corporate_phone_alt: {
|
|
91
|
+
type: Number,
|
|
92
|
+
default: null,
|
|
93
|
+
minlength: 0,
|
|
94
|
+
maxlength: 15,
|
|
95
|
+
trim: true
|
|
96
|
+
},
|
|
97
|
+
syen_corporate_fax: {
|
|
98
|
+
type: Number,
|
|
99
|
+
default: null,
|
|
100
|
+
minlength: 0,
|
|
101
|
+
maxlength: 50,
|
|
102
|
+
trim: true
|
|
103
|
+
},
|
|
104
|
+
syen_corporate_email: {
|
|
105
|
+
type: String,
|
|
106
|
+
minlength: 0,
|
|
107
|
+
maxlength: 320,
|
|
108
|
+
trim: true
|
|
109
|
+
},
|
|
110
|
+
syen_corporate_email_alt: {
|
|
111
|
+
type: String,
|
|
112
|
+
minlength: 0,
|
|
113
|
+
maxlength: 320,
|
|
114
|
+
trim: true
|
|
115
|
+
},
|
|
116
|
+
syen_website: {
|
|
117
|
+
type: String,
|
|
118
|
+
minlength: 0,
|
|
119
|
+
maxlength: 255,
|
|
120
|
+
trim: true
|
|
121
|
+
},
|
|
122
|
+
syen_currency_sycr: {
|
|
123
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
124
|
+
ref: "core_iso_currency"
|
|
125
|
+
},
|
|
126
|
+
syen_registered_address: {
|
|
127
|
+
type: String,
|
|
128
|
+
minlength: 0,
|
|
129
|
+
maxlength: 255,
|
|
130
|
+
trim: true
|
|
131
|
+
},
|
|
132
|
+
syen_registered_pin_sypc: {
|
|
133
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
134
|
+
ref: "core_postal_code"
|
|
135
|
+
},
|
|
136
|
+
syen_registered_city_sypc: {
|
|
137
|
+
type: String,
|
|
138
|
+
minlength: 0,
|
|
139
|
+
maxlength: 40,
|
|
140
|
+
trim: true
|
|
141
|
+
},
|
|
142
|
+
syen_registered_state_sypc: {
|
|
143
|
+
type: String,
|
|
144
|
+
minlength: 0,
|
|
145
|
+
maxlength: 40,
|
|
146
|
+
trim: true
|
|
147
|
+
},
|
|
148
|
+
syen_registered_country_sypc: {
|
|
149
|
+
type: String,
|
|
150
|
+
minlength: 0,
|
|
151
|
+
maxlength: 50,
|
|
152
|
+
trim: true
|
|
153
|
+
},
|
|
154
|
+
syen_registered_contact_person_user: {
|
|
155
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
156
|
+
ref: "auth_user_mst"
|
|
157
|
+
},
|
|
158
|
+
syen_registered_phone: {
|
|
159
|
+
type: Number,
|
|
160
|
+
default: null,
|
|
161
|
+
minlength: 0,
|
|
162
|
+
maxlength: 15,
|
|
163
|
+
trim: true
|
|
164
|
+
},
|
|
165
|
+
syen_registered_fax: {
|
|
166
|
+
type: Number,
|
|
167
|
+
default: null,
|
|
168
|
+
minlength: 0,
|
|
169
|
+
maxlength: 50,
|
|
170
|
+
trim: true
|
|
171
|
+
},
|
|
172
|
+
syen_registered_email: {
|
|
173
|
+
type: String,
|
|
174
|
+
minlength: 0,
|
|
175
|
+
maxlength: 320,
|
|
176
|
+
trim: true
|
|
177
|
+
},
|
|
178
|
+
syen_udise_no: {
|
|
179
|
+
type: String,
|
|
180
|
+
minlength: 0,
|
|
181
|
+
maxlength: 50,
|
|
182
|
+
trim: true
|
|
183
|
+
},
|
|
184
|
+
syen_affiliation_no: {
|
|
185
|
+
type: String,
|
|
186
|
+
minlength: 0,
|
|
187
|
+
maxlength: 50,
|
|
188
|
+
trim: true
|
|
189
|
+
},
|
|
190
|
+
syen_photo_id_fm: {
|
|
191
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
192
|
+
ref: "auth_user_mst"
|
|
193
|
+
},
|
|
194
|
+
syen_isactive: {
|
|
195
|
+
type: Boolean,
|
|
196
|
+
default: true
|
|
197
|
+
},
|
|
198
|
+
}, { collection: 'core_system_entity' });
|
|
199
|
+
const CCoreSyen = mongoose_1.default.model("core_system_entity", core_system_entity);
|
|
200
|
+
exports.CCoreSyen = CCoreSyen;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSylog = exports.ICoreSylog = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class ICoreSylog {
|
|
30
|
+
}
|
|
31
|
+
exports.ICoreSylog = ICoreSylog;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const core_system_logs = new mongoose_1.Schema({
|
|
35
|
+
sylog_id_user: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
sylog_id_logses: {
|
|
40
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
sylog_log_type: {
|
|
44
|
+
type: String,
|
|
45
|
+
maxlength: 20,
|
|
46
|
+
required: true,
|
|
47
|
+
trim: true
|
|
48
|
+
},
|
|
49
|
+
sylog_action: {
|
|
50
|
+
type: String,
|
|
51
|
+
maxlength: 20,
|
|
52
|
+
trim: true
|
|
53
|
+
},
|
|
54
|
+
sylog_security_event: {
|
|
55
|
+
type: String,
|
|
56
|
+
maxlength: 20,
|
|
57
|
+
trim: true
|
|
58
|
+
},
|
|
59
|
+
sylog_previous_data: {
|
|
60
|
+
type: Object
|
|
61
|
+
},
|
|
62
|
+
sylog_updated_data: {
|
|
63
|
+
type: Object
|
|
64
|
+
},
|
|
65
|
+
sylog_diagnostic_code: {
|
|
66
|
+
type: String,
|
|
67
|
+
maxlength: 20,
|
|
68
|
+
trim: true
|
|
69
|
+
},
|
|
70
|
+
sylog_ip_address: {
|
|
71
|
+
type: String,
|
|
72
|
+
maxlength: 255,
|
|
73
|
+
trim: true
|
|
74
|
+
},
|
|
75
|
+
sylog_message: {
|
|
76
|
+
type: String,
|
|
77
|
+
maxlength: 255,
|
|
78
|
+
trim: true
|
|
79
|
+
},
|
|
80
|
+
sylog_timestamp: {
|
|
81
|
+
type: Date
|
|
82
|
+
},
|
|
83
|
+
sylog_method: {
|
|
84
|
+
type: String,
|
|
85
|
+
maxlength: 20,
|
|
86
|
+
trim: true
|
|
87
|
+
},
|
|
88
|
+
sylog_route: {
|
|
89
|
+
type: String,
|
|
90
|
+
maxlength: 100,
|
|
91
|
+
trim: true
|
|
92
|
+
},
|
|
93
|
+
sylog_request: {
|
|
94
|
+
type: Object
|
|
95
|
+
},
|
|
96
|
+
sylog_monitor_type: {
|
|
97
|
+
type: String,
|
|
98
|
+
maxlength: 40,
|
|
99
|
+
trim: true
|
|
100
|
+
},
|
|
101
|
+
sylog_monitor_value: {
|
|
102
|
+
type: Number,
|
|
103
|
+
maxlength: 20
|
|
104
|
+
},
|
|
105
|
+
sylog_config_data: {
|
|
106
|
+
type: Object
|
|
107
|
+
},
|
|
108
|
+
sylog_isactive: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: true
|
|
111
|
+
}
|
|
112
|
+
}, { collection: 'core_system_logs' });
|
|
113
|
+
const CCoreSylog = mongoose_1.default.model("core_system_logs", core_system_logs);
|
|
114
|
+
exports.CCoreSylog = CCoreSylog;
|
|
115
|
+
/*
|
|
116
|
+
|| EXAMPLE for TRACE log type
|
|
117
|
+
||{
|
|
118
|
+
|| user_id: "user001", // this is after login succuess for each route
|
|
119
|
+
|| log_type: "TRACE",
|
|
120
|
+
|| timestamp: new Date(),
|
|
121
|
+
|| method: "POST",
|
|
122
|
+
|| route: "/auth/login",
|
|
123
|
+
|| request: {},
|
|
124
|
+
|| ip_address" "192.168.0.6",
|
|
125
|
+
||}
|
|
126
|
+
*/
|
|
127
|
+
/*
|
|
128
|
+
|| EXAMPLE for SECURITY log type
|
|
129
|
+
||{
|
|
130
|
+
|| user_id: "user001", // this is after reset password link sent
|
|
131
|
+
|| log_type: "SECURITY",
|
|
132
|
+
|| timestamp: new Date(),
|
|
133
|
+
|| sylog_security_event: "reset_password",
|
|
134
|
+
|| sylog_config_data: {"reset_password_id":""}
|
|
135
|
+
|| ip_address" "192.168.0.6",
|
|
136
|
+
||}
|
|
137
|
+
*/
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.CCoreSyme = exports.ICoreSyme = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class ICoreSyme {
|
|
30
|
+
}
|
|
31
|
+
exports.ICoreSyme = ICoreSyme;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const core_system_menu = new mongoose_1.Schema({
|
|
35
|
+
syme_id_syme: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
ref: "core_system_menu"
|
|
38
|
+
},
|
|
39
|
+
syme_title: {
|
|
40
|
+
type: String,
|
|
41
|
+
minlength: 0,
|
|
42
|
+
maxlength: 100,
|
|
43
|
+
trim: true
|
|
44
|
+
},
|
|
45
|
+
syme_desc: {
|
|
46
|
+
type: String,
|
|
47
|
+
minlength: 0,
|
|
48
|
+
maxlength: 255,
|
|
49
|
+
trim: true
|
|
50
|
+
},
|
|
51
|
+
syme_path: {
|
|
52
|
+
type: String,
|
|
53
|
+
minlength: 0,
|
|
54
|
+
maxlength: 255,
|
|
55
|
+
trim: true
|
|
56
|
+
},
|
|
57
|
+
syme_icon: {
|
|
58
|
+
type: String,
|
|
59
|
+
minlength: 0,
|
|
60
|
+
maxlength: 40,
|
|
61
|
+
trim: true
|
|
62
|
+
},
|
|
63
|
+
syme_type: {
|
|
64
|
+
type: String,
|
|
65
|
+
minlength: 0,
|
|
66
|
+
maxlength: 40,
|
|
67
|
+
trim: true
|
|
68
|
+
},
|
|
69
|
+
syme_islink: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: true
|
|
72
|
+
},
|
|
73
|
+
syme_order_by: {
|
|
74
|
+
type: Number,
|
|
75
|
+
default: 0
|
|
76
|
+
},
|
|
77
|
+
syme_isactive: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: true
|
|
80
|
+
}
|
|
81
|
+
}, { collection: 'core_system_menu' });
|
|
82
|
+
const CCoreSyme = mongoose_1.default.model("core_system_menu", core_system_menu);
|
|
83
|
+
exports.CCoreSyme = CCoreSyme;
|