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,57 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.connectDB = void 0;
|
|
39
|
+
const mongoose = __importStar(require("mongoose"));
|
|
40
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
41
|
+
dotenv_1.default.config();
|
|
42
|
+
function connectDB() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const options = {
|
|
45
|
+
// authSource: process.env.MONGODB_AUTH_SOURCE || 'admin', // Optional authentication database
|
|
46
|
+
connectTimeoutMS: 10000,
|
|
47
|
+
socketTimeoutMS: 30000,
|
|
48
|
+
// Other MongoDB connection options as needed
|
|
49
|
+
};
|
|
50
|
+
yield mongoose.connect(process.env.MONGODB_URI || '', options).then(() => {
|
|
51
|
+
console.log('Connected to MongoDB');
|
|
52
|
+
}).catch((error) => {
|
|
53
|
+
console.error('Error connecting to MongoDB:', error);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
exports.connectDB = connectDB;
|
package/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./schema/auth"), exports);
|
|
18
|
+
__exportStar(require("./schema/core"), exports);
|
|
19
|
+
__exportStar(require("./schema/email"), exports);
|
|
20
|
+
/* database config */
|
|
21
|
+
__exportStar(require("./config/database"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"dotenv": "^16.4.5",
|
|
4
|
+
"mongoose": "^8.2.1"
|
|
5
|
+
},
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@types/node": "^20.11.25",
|
|
8
|
+
"typescript": "^5.4.2"
|
|
9
|
+
},
|
|
10
|
+
"name": "cloud-ide-model-schema",
|
|
11
|
+
"version": "1.0.0",
|
|
12
|
+
"description": "Pachage for schema management of Cloud IDEsys LMS",
|
|
13
|
+
"main": "index.js",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"CloudIDE",
|
|
19
|
+
"LMS",
|
|
20
|
+
"Schema"
|
|
21
|
+
],
|
|
22
|
+
"author": "ankush bhure",
|
|
23
|
+
"license": "ISC"
|
|
24
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.Clogses = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const auth_logses = new mongoose_1.Schema({
|
|
31
|
+
logses_id_user: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: 'auth_user_mst'
|
|
34
|
+
},
|
|
35
|
+
logses_start_dtm: {
|
|
36
|
+
type: Date,
|
|
37
|
+
required: true,
|
|
38
|
+
default: new Date()
|
|
39
|
+
},
|
|
40
|
+
logses_end_dtm: {
|
|
41
|
+
type: Date,
|
|
42
|
+
required: true,
|
|
43
|
+
default: new Date()
|
|
44
|
+
},
|
|
45
|
+
logses_end_max_dtm: {
|
|
46
|
+
type: Date,
|
|
47
|
+
required: true,
|
|
48
|
+
default: new Date()
|
|
49
|
+
},
|
|
50
|
+
logses_token: {
|
|
51
|
+
type: String,
|
|
52
|
+
trim: true
|
|
53
|
+
},
|
|
54
|
+
logses_user_ask_mpin: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
required: true,
|
|
57
|
+
default: false
|
|
58
|
+
},
|
|
59
|
+
logses_last_id_logses: {
|
|
60
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
61
|
+
ref: "auth_logses"
|
|
62
|
+
},
|
|
63
|
+
logses_sequence: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 1
|
|
66
|
+
},
|
|
67
|
+
logses_isactive: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true
|
|
70
|
+
}
|
|
71
|
+
}, { collection: 'auth_logses' });
|
|
72
|
+
const Clogses = mongoose_1.default.model('auth_logses', auth_logses);
|
|
73
|
+
exports.Clogses = Clogses;
|
|
@@ -0,0 +1,130 @@
|
|
|
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.CUser = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const auth_user_mst = new mongoose_1.Schema({
|
|
31
|
+
user_id_ent: {
|
|
32
|
+
type: String,
|
|
33
|
+
comment: "Unique Entity id"
|
|
34
|
+
},
|
|
35
|
+
user_username: {
|
|
36
|
+
type: String,
|
|
37
|
+
minlength: 8,
|
|
38
|
+
maxlength: 20,
|
|
39
|
+
required: true,
|
|
40
|
+
trim: true,
|
|
41
|
+
unique: true,
|
|
42
|
+
comment: "Unique User Name",
|
|
43
|
+
message: "Unique User Name"
|
|
44
|
+
},
|
|
45
|
+
user_firstname: {
|
|
46
|
+
type: String,
|
|
47
|
+
minlength: 3,
|
|
48
|
+
maxlength: 20
|
|
49
|
+
},
|
|
50
|
+
user_middlename: {
|
|
51
|
+
type: String,
|
|
52
|
+
minlength: 3,
|
|
53
|
+
maxlength: 20
|
|
54
|
+
},
|
|
55
|
+
user_lastname: {
|
|
56
|
+
type: String,
|
|
57
|
+
minlength: 8,
|
|
58
|
+
maxlength: 20
|
|
59
|
+
},
|
|
60
|
+
user_fullname: {
|
|
61
|
+
type: String,
|
|
62
|
+
minlength: 8,
|
|
63
|
+
maxlength: 52
|
|
64
|
+
},
|
|
65
|
+
user_emailid: {
|
|
66
|
+
type: String,
|
|
67
|
+
minlength: 8,
|
|
68
|
+
maxlength: 50,
|
|
69
|
+
trim: true,
|
|
70
|
+
unique: true,
|
|
71
|
+
comment: "Unique Email ID",
|
|
72
|
+
message: "Unique Email ID"
|
|
73
|
+
},
|
|
74
|
+
user_mobileno: {
|
|
75
|
+
type: Number,
|
|
76
|
+
minlength: 10,
|
|
77
|
+
maxlength: 15,
|
|
78
|
+
trim: true,
|
|
79
|
+
unique: true,
|
|
80
|
+
comment: "Unique Mobile no",
|
|
81
|
+
message: "Unique Mobile no"
|
|
82
|
+
},
|
|
83
|
+
user_password: {
|
|
84
|
+
type: String,
|
|
85
|
+
maxlength: 250,
|
|
86
|
+
trim: true
|
|
87
|
+
},
|
|
88
|
+
user_activefrom: {
|
|
89
|
+
type: Date,
|
|
90
|
+
comment: "User Effective from- Default is created date"
|
|
91
|
+
},
|
|
92
|
+
user_activeupto: {
|
|
93
|
+
type: Date,
|
|
94
|
+
comment: "User Valid upto registered academic year default"
|
|
95
|
+
},
|
|
96
|
+
user_photo_id_fm: {
|
|
97
|
+
type: String,
|
|
98
|
+
comment: "photo file manager id",
|
|
99
|
+
trim: true
|
|
100
|
+
},
|
|
101
|
+
user_passwordchangeonlogin: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
comment: "Change password on Login. Flag can be set by the Admin/ Reset option",
|
|
104
|
+
default: true
|
|
105
|
+
},
|
|
106
|
+
user_id_role: {
|
|
107
|
+
type: String,
|
|
108
|
+
comment: "Role Id associated with the user.",
|
|
109
|
+
trim: true
|
|
110
|
+
},
|
|
111
|
+
user_id_desg: {
|
|
112
|
+
type: String,
|
|
113
|
+
comment: "Users Designation",
|
|
114
|
+
trim: true
|
|
115
|
+
},
|
|
116
|
+
user_id_dept: {
|
|
117
|
+
type: String,
|
|
118
|
+
comment: "Users Department",
|
|
119
|
+
trim: true
|
|
120
|
+
},
|
|
121
|
+
user_permissions: {
|
|
122
|
+
type: Array,
|
|
123
|
+
default: []
|
|
124
|
+
},
|
|
125
|
+
user_isactive: {
|
|
126
|
+
type: Boolean
|
|
127
|
+
}
|
|
128
|
+
}, { collection: 'auth_user_mst' });
|
|
129
|
+
const CUser = mongoose_1.default.model('auth_user_mst', auth_user_mst);
|
|
130
|
+
exports.CUser = CUser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CMpin = exports.IMpin = exports.Clogses = exports.CUser = void 0;
|
|
4
|
+
const auth_user_mst_1 = require("./auth_user_mst");
|
|
5
|
+
Object.defineProperty(exports, "CUser", { enumerable: true, get: function () { return auth_user_mst_1.CUser; } });
|
|
6
|
+
const auth_logses_1 = require("./auth_logses");
|
|
7
|
+
Object.defineProperty(exports, "Clogses", { enumerable: true, get: function () { return auth_logses_1.Clogses; } });
|
|
8
|
+
const mpin_1 = require("./mpin");
|
|
9
|
+
Object.defineProperty(exports, "IMpin", { enumerable: true, get: function () { return mpin_1.IMpin; } });
|
|
10
|
+
Object.defineProperty(exports, "CMpin", { enumerable: true, get: function () { return mpin_1.CMpin; } });
|
|
@@ -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.CMpin = exports.IMpin = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFASE START */
|
|
29
|
+
class IMpin {
|
|
30
|
+
}
|
|
31
|
+
exports.IMpin = IMpin;
|
|
32
|
+
/* INTERFACE END */
|
|
33
|
+
/* SCHEMA START */
|
|
34
|
+
const auth_mpin = new mongoose_1.Schema({
|
|
35
|
+
mpin_id_user: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
ref: 'auth_user_mst',
|
|
38
|
+
required: true,
|
|
39
|
+
comment: "User unique primery key, reference user"
|
|
40
|
+
},
|
|
41
|
+
mpin_pin: {
|
|
42
|
+
type: Number,
|
|
43
|
+
require: true,
|
|
44
|
+
unique: true,
|
|
45
|
+
minlength: 6,
|
|
46
|
+
minlenght: 6
|
|
47
|
+
},
|
|
48
|
+
mpin_generation_dtm: {
|
|
49
|
+
type: Date,
|
|
50
|
+
required: true,
|
|
51
|
+
default: new Date()
|
|
52
|
+
},
|
|
53
|
+
mpin_expiry_dtm: {
|
|
54
|
+
type: Date,
|
|
55
|
+
required: true,
|
|
56
|
+
default: new Date()
|
|
57
|
+
},
|
|
58
|
+
mpin_used: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
mpin_id_logses: {
|
|
63
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
64
|
+
comment: "logses session table, whre loggin id is stored which used the mpin",
|
|
65
|
+
trim: true
|
|
66
|
+
},
|
|
67
|
+
mpin_isactive: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true,
|
|
70
|
+
comment: "automaticaly expire when expiry time completes, when authenticator is refreshed new key generates and this will set to false"
|
|
71
|
+
}
|
|
72
|
+
}, { collection: 'auth_mpin' });
|
|
73
|
+
const CMpin = mongoose_1.default.model("auth_mpin", auth_mpin);
|
|
74
|
+
exports.CMpin = CMpin;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CCoreSyenm = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_entity_mapping = new mongoose_1.Schema({
|
|
31
|
+
syenm_id_user: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "auth_user_mst"
|
|
34
|
+
},
|
|
35
|
+
syenm_id_syen: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
ref: "core_system_entity"
|
|
38
|
+
},
|
|
39
|
+
syenm_id_logses: {
|
|
40
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
41
|
+
ref: "auth_logses"
|
|
42
|
+
},
|
|
43
|
+
syenm_isactive: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
syenm_isloggedin: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
},
|
|
51
|
+
syenm_isdefault: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: true
|
|
54
|
+
},
|
|
55
|
+
}, { collection: 'core_entity_mapping' });
|
|
56
|
+
const CCoreSyenm = mongoose_1.default.model("core_entity_mapping", core_entity_mapping);
|
|
57
|
+
exports.CCoreSyenm = CCoreSyenm;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.CCoreSygms = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_general_master = new mongoose_1.Schema({
|
|
31
|
+
sygms_id_sygmt: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "core_general_master_type"
|
|
34
|
+
},
|
|
35
|
+
sygms_code: {
|
|
36
|
+
type: String,
|
|
37
|
+
require: true,
|
|
38
|
+
maxlength: 40,
|
|
39
|
+
trim: true
|
|
40
|
+
},
|
|
41
|
+
sygms_title: {
|
|
42
|
+
type: String,
|
|
43
|
+
require: true,
|
|
44
|
+
minlength: 3,
|
|
45
|
+
maxlength: 150,
|
|
46
|
+
trim: true
|
|
47
|
+
},
|
|
48
|
+
sygms_desc: {
|
|
49
|
+
type: String,
|
|
50
|
+
minlength: 0,
|
|
51
|
+
maxlength: 500,
|
|
52
|
+
trim: true
|
|
53
|
+
},
|
|
54
|
+
sygms_isactive: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
}, { collection: 'core_general_master' });
|
|
59
|
+
const CCoreSygms = mongoose_1.default.model("core_general_master", core_general_master);
|
|
60
|
+
exports.CCoreSygms = CCoreSygms;
|
|
@@ -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.CCoreSygmt = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_general_master_type = new mongoose_1.Schema({
|
|
31
|
+
sygmt_code: {
|
|
32
|
+
type: String,
|
|
33
|
+
require: true,
|
|
34
|
+
maxlength: 40,
|
|
35
|
+
trim: true
|
|
36
|
+
},
|
|
37
|
+
sygmt_title: {
|
|
38
|
+
type: String,
|
|
39
|
+
require: true,
|
|
40
|
+
minlength: 3,
|
|
41
|
+
maxlength: 100,
|
|
42
|
+
trim: true
|
|
43
|
+
},
|
|
44
|
+
sygmt_desc: {
|
|
45
|
+
type: String,
|
|
46
|
+
minlength: 0,
|
|
47
|
+
maxlength: 255,
|
|
48
|
+
trim: true
|
|
49
|
+
},
|
|
50
|
+
sygmt_isactive: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
},
|
|
54
|
+
}, { collection: 'core_general_master_type' });
|
|
55
|
+
const CCoreSygmt = mongoose_1.default.model("core_general_master_type", core_general_master_type);
|
|
56
|
+
exports.CCoreSygmt = CCoreSygmt;
|
|
@@ -0,0 +1,98 @@
|
|
|
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.CCoreSypc = void 0;
|
|
27
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
28
|
+
/* INTERFACE END */
|
|
29
|
+
/* SCHEMA START */
|
|
30
|
+
const core_page_controls = new mongoose_1.Schema({
|
|
31
|
+
sypc_page_id_sypg: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "core_system_pages"
|
|
34
|
+
},
|
|
35
|
+
sypc_title: {
|
|
36
|
+
type: String,
|
|
37
|
+
minlength: 0,
|
|
38
|
+
maxlength: 100,
|
|
39
|
+
trim: true
|
|
40
|
+
},
|
|
41
|
+
sypc_type: {
|
|
42
|
+
type: String,
|
|
43
|
+
minlength: 0,
|
|
44
|
+
maxlength: 20,
|
|
45
|
+
trim: true
|
|
46
|
+
},
|
|
47
|
+
sypc_placeholder: {
|
|
48
|
+
type: String,
|
|
49
|
+
minlength: 0,
|
|
50
|
+
maxlength: 100,
|
|
51
|
+
trim: true
|
|
52
|
+
},
|
|
53
|
+
sypc_auto_complete: {
|
|
54
|
+
type: String,
|
|
55
|
+
minlength: 0,
|
|
56
|
+
maxlength: 100,
|
|
57
|
+
trim: true
|
|
58
|
+
},
|
|
59
|
+
sypc_key: {
|
|
60
|
+
type: String,
|
|
61
|
+
minlength: 0,
|
|
62
|
+
maxlength: 150,
|
|
63
|
+
trim: true
|
|
64
|
+
},
|
|
65
|
+
sypc_min_length: {
|
|
66
|
+
type: Number,
|
|
67
|
+
maxlength: 20
|
|
68
|
+
},
|
|
69
|
+
sypc_max_length: {
|
|
70
|
+
type: String,
|
|
71
|
+
maxlength: 20
|
|
72
|
+
},
|
|
73
|
+
sypc_regex: {
|
|
74
|
+
type: String,
|
|
75
|
+
maxlength: 200,
|
|
76
|
+
trim: true
|
|
77
|
+
},
|
|
78
|
+
sypc_required: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: true
|
|
81
|
+
},
|
|
82
|
+
sypc_tooltip: {
|
|
83
|
+
type: String,
|
|
84
|
+
maxlength: 255,
|
|
85
|
+
trim: true
|
|
86
|
+
},
|
|
87
|
+
sypc_default: {},
|
|
88
|
+
syen_disabled: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false
|
|
91
|
+
},
|
|
92
|
+
sypc_isactive: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: true
|
|
95
|
+
}
|
|
96
|
+
}, { collection: 'core_page_controls' });
|
|
97
|
+
const CCoreSypc = mongoose_1.default.model("core_page_controls", core_page_controls);
|
|
98
|
+
exports.CCoreSypc = CCoreSypc;
|