cloud-ide-model-schema 1.0.6 → 1.0.8
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/lib/config/database.d.ts +3 -0
- package/lib/config/database.js +66 -0
- package/{config/index.ts → lib/config/index.d.ts} +2 -5
- package/lib/config/index.js +5 -0
- package/{index.ts → lib/index.d.ts} +4 -5
- package/lib/index.js +23 -0
- package/lib/schema/auth/auth_logses.d.ts +42 -0
- package/{schema/auth/auth_logses.ts → lib/schema/auth/auth_logses.js} +50 -68
- package/lib/schema/auth/auth_user_mst.d.ts +58 -0
- package/{schema/auth/auth_user_mst.ts → lib/schema/auth/auth_user_mst.js} +107 -143
- package/lib/schema/auth/index.d.ts +4 -0
- package/lib/schema/auth/index.js +10 -0
- package/lib/schema/auth/mpin.d.ts +37 -0
- package/{schema/auth/mpin.ts → lib/schema/auth/mpin.js} +54 -60
- package/lib/schema/core/core_entity_mapping.d.ts +39 -0
- package/lib/schema/core/core_entity_mapping.js +34 -0
- package/lib/schema/core/core_general_master.d.ts +39 -0
- package/lib/schema/core/core_general_master.js +37 -0
- package/lib/schema/core/core_general_master_type.d.ts +37 -0
- package/{schema/core/core_general_master_type.ts → lib/schema/core/core_general_master_type.js} +33 -46
- package/lib/schema/core/core_page_controls.d.ts +47 -0
- package/{schema/core/core_page_controls.ts → lib/schema/core/core_page_controls.js} +75 -100
- package/lib/schema/core/core_page_grid.d.ts +36 -0
- package/{schema/core/core_page_grid.ts → lib/schema/core/core_page_grid.js} +36 -48
- package/lib/schema/core/core_page_tab.d.ts +43 -0
- package/lib/schema/core/core_page_tab.js +33 -0
- package/lib/schema/core/core_pin_code.d.ts +44 -0
- package/{schema/core/core_pin_code.ts → lib/schema/core/core_pin_code.js} +51 -73
- package/lib/schema/core/core_system_config.d.ts +37 -0
- package/{schema/core/core_system_config.ts → lib/schema/core/core_system_config.js} +48 -54
- package/lib/schema/core/core_system_entity.d.ts +63 -0
- package/{schema/core/core_system_entity.ts → lib/schema/core/core_system_entity.js} +177 -216
- package/lib/schema/core/core_system_logs.d.ts +53 -0
- package/{schema/core/core_system_logs.ts → lib/schema/core/core_system_logs.js} +117 -141
- package/lib/schema/core/core_system_menu.d.ts +42 -0
- package/{schema/core/core_system_menu.ts → lib/schema/core/core_system_menu.js} +63 -74
- package/lib/schema/core/core_system_pages.d.ts +39 -0
- package/{schema/core/core_system_pages.ts → lib/schema/core/core_system_pages.js} +51 -59
- package/lib/schema/core/core_system_pages_theme.d.ts +40 -0
- package/{schema/core/core_system_pages_theme.ts → lib/schema/core/core_system_pages_theme.js} +51 -60
- package/{schema/core/index.ts → lib/schema/core/index.d.ts} +14 -42
- package/lib/schema/core/index.js +34 -0
- package/lib/schema/email/elist.d.ts +36 -0
- package/lib/schema/email/elist.js +42 -0
- package/lib/schema/email/elog.d.ts +41 -0
- package/lib/schema/email/elog.js +58 -0
- package/lib/schema/email/eref.d.ts +37 -0
- package/lib/schema/email/eref.js +43 -0
- package/lib/schema/email/esub.d.ts +43 -0
- package/{schema/email/esub.ts → lib/schema/email/esub.js} +69 -81
- package/lib/schema/email/etmp.d.ts +36 -0
- package/lib/schema/email/etmp.js +41 -0
- package/lib/schema/email/evdr.d.ts +36 -0
- package/lib/schema/email/evdr.js +41 -0
- package/lib/schema/email/index.d.ts +7 -0
- package/lib/schema/email/index.js +21 -0
- package/package.json +12 -8
- package/config/database.ts +0 -18
- package/schema/auth/index.ts +0 -13
- package/schema/core/core_entity_mapping.ts +0 -49
- package/schema/core/core_general_master.ts +0 -52
- package/schema/core/core_page_tab.ts +0 -54
- package/schema/email/elist.ts +0 -47
- package/schema/email/elog.ts +0 -68
- package/schema/email/eref.ts +0 -49
- package/schema/email/etmp.ts +0 -46
- package/schema/email/evdr.ts +0 -46
- package/schema/email/index.ts +0 -21
- package/tsconfig.json +0 -9
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.connectDB = void 0;
|
|
40
|
+
var mongoose = require("mongoose");
|
|
41
|
+
require("dotenv/config");
|
|
42
|
+
function connectDB() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
44
|
+
var options;
|
|
45
|
+
return __generator(this, function (_a) {
|
|
46
|
+
switch (_a.label) {
|
|
47
|
+
case 0:
|
|
48
|
+
options = {
|
|
49
|
+
// authSource: process.env.MONGODB_AUTH_SOURCE || 'admin', // Optional authentication database
|
|
50
|
+
connectTimeoutMS: 10000,
|
|
51
|
+
socketTimeoutMS: 30000,
|
|
52
|
+
// Other MongoDB connection options as needed
|
|
53
|
+
};
|
|
54
|
+
return [4 /*yield*/, mongoose.connect(process.env.MONGODB_URI || '', options).then(function () {
|
|
55
|
+
console.log('Connected to MongoDB');
|
|
56
|
+
}).catch(function (error) {
|
|
57
|
+
console.error('Error connecting to MongoDB:', error);
|
|
58
|
+
})];
|
|
59
|
+
case 1:
|
|
60
|
+
_a.sent();
|
|
61
|
+
return [2 /*return*/];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
exports.connectDB = connectDB;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from './schema/auth';
|
|
2
|
-
export * from './schema/core';
|
|
3
|
-
export * from './schema/email';
|
|
4
|
-
|
|
5
|
-
export { connectDB } from './config';
|
|
1
|
+
export * from './schema/auth';
|
|
2
|
+
export * from './schema/core';
|
|
3
|
+
export * from './schema/email';
|
|
4
|
+
export { connectDB } from './config';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
exports.connectDB = void 0;
|
|
18
|
+
__exportStar(require("./schema/auth"), exports);
|
|
19
|
+
__exportStar(require("./schema/core"), exports);
|
|
20
|
+
__exportStar(require("./schema/email"), exports);
|
|
21
|
+
/* database config */
|
|
22
|
+
var config_1 = require("./config");
|
|
23
|
+
Object.defineProperty(exports, "connectDB", { enumerable: true, get: function () { return config_1.connectDB; } });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface ILogses {
|
|
27
|
+
_id: string;
|
|
28
|
+
logses_id_user: string;
|
|
29
|
+
logses_start_dtm: Date;
|
|
30
|
+
logses_end_dtm: Date;
|
|
31
|
+
logses_end_max_dtm: Date;
|
|
32
|
+
logses_token: string;
|
|
33
|
+
logses_user_ask_mpin: string;
|
|
34
|
+
logses_last_id_logses: string;
|
|
35
|
+
logses_sequence: number;
|
|
36
|
+
logses_isactive: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const Clogses: mongoose.Model<ILogses, {}, {}, {}, mongoose.Document<unknown, {}, ILogses> & ILogses & Required<{
|
|
39
|
+
_id: string;
|
|
40
|
+
}>, any>;
|
|
41
|
+
export { ILogses, // interface name
|
|
42
|
+
Clogses };
|
|
@@ -1,68 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
default:
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
logses_sequence: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: 1
|
|
55
|
-
},
|
|
56
|
-
logses_isactive: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: true
|
|
59
|
-
}
|
|
60
|
-
}, { collection: 'auth_logses' });
|
|
61
|
-
|
|
62
|
-
const Clogses = mongoose.model<ILogses>('auth_logses', auth_logses);
|
|
63
|
-
/* SCHEMA END */
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
ILogses, // interface name
|
|
67
|
-
Clogses // collecton name
|
|
68
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Clogses = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var auth_logses = new mongoose_1.Schema({
|
|
8
|
+
logses_id_user: {
|
|
9
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
10
|
+
ref: 'auth_user_mst'
|
|
11
|
+
},
|
|
12
|
+
logses_start_dtm: {
|
|
13
|
+
type: Date,
|
|
14
|
+
required: true,
|
|
15
|
+
default: new Date()
|
|
16
|
+
},
|
|
17
|
+
logses_end_dtm: {
|
|
18
|
+
type: Date,
|
|
19
|
+
required: true,
|
|
20
|
+
default: new Date()
|
|
21
|
+
},
|
|
22
|
+
logses_end_max_dtm: {
|
|
23
|
+
type: Date,
|
|
24
|
+
required: true,
|
|
25
|
+
default: new Date()
|
|
26
|
+
},
|
|
27
|
+
logses_token: {
|
|
28
|
+
type: String,
|
|
29
|
+
trim: true
|
|
30
|
+
},
|
|
31
|
+
logses_user_ask_mpin: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
required: true,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
logses_last_id_logses: {
|
|
37
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
38
|
+
ref: "auth_logses"
|
|
39
|
+
},
|
|
40
|
+
logses_sequence: {
|
|
41
|
+
type: Number,
|
|
42
|
+
default: 1
|
|
43
|
+
},
|
|
44
|
+
logses_isactive: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: true
|
|
47
|
+
}
|
|
48
|
+
}, { collection: 'auth_logses' });
|
|
49
|
+
var Clogses = mongoose_1.default.model('auth_logses', auth_logses);
|
|
50
|
+
exports.Clogses = Clogses;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
interface IUser {
|
|
27
|
+
_id?: string;
|
|
28
|
+
user_id_ent?: string;
|
|
29
|
+
user_username?: string;
|
|
30
|
+
user_firstname?: string;
|
|
31
|
+
user_middlename?: string;
|
|
32
|
+
user_lastname?: string;
|
|
33
|
+
user_fullname?: string;
|
|
34
|
+
user_emailid?: string;
|
|
35
|
+
user_mobileno?: number;
|
|
36
|
+
user_password?: string;
|
|
37
|
+
user_activefrom?: Date;
|
|
38
|
+
user_activeupto?: Date;
|
|
39
|
+
user_photo_id_fm?: string;
|
|
40
|
+
user_passwordchangeonlogin?: boolean;
|
|
41
|
+
user_id_role?: string;
|
|
42
|
+
user_id_desg?: string;
|
|
43
|
+
user_id_dept?: string;
|
|
44
|
+
user_permissions?: IUserPermissions[];
|
|
45
|
+
user_isactive?: boolean;
|
|
46
|
+
}
|
|
47
|
+
interface IUserPermissions {
|
|
48
|
+
_id: string;
|
|
49
|
+
create?: boolean;
|
|
50
|
+
read?: boolean;
|
|
51
|
+
update?: boolean;
|
|
52
|
+
delete?: boolean;
|
|
53
|
+
}
|
|
54
|
+
declare const CUser: mongoose.Model<IUser, {}, {}, {}, mongoose.Document<unknown, {}, IUser> & IUser & Required<{
|
|
55
|
+
_id: string;
|
|
56
|
+
}>, any>;
|
|
57
|
+
export { IUser, // interface name
|
|
58
|
+
IUserPermissions, CUser };
|
|
@@ -1,143 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
type: String,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
trim: true,
|
|
47
|
-
unique: true,
|
|
48
|
-
comment: "Unique
|
|
49
|
-
message: "Unique
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
type:
|
|
53
|
-
minlength:
|
|
54
|
-
maxlength:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
type:
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
type:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
type: Boolean,
|
|
109
|
-
comment: "Change password on Login. Flag can be set by the Admin/ Reset option",
|
|
110
|
-
default: true
|
|
111
|
-
},
|
|
112
|
-
user_id_role: {
|
|
113
|
-
type: String,
|
|
114
|
-
comment: "Role Id associated with the user.",
|
|
115
|
-
trim: true
|
|
116
|
-
},
|
|
117
|
-
user_id_desg: {
|
|
118
|
-
type: String,
|
|
119
|
-
comment: "Users Designation",
|
|
120
|
-
trim: true
|
|
121
|
-
},
|
|
122
|
-
user_id_dept: {
|
|
123
|
-
type: String,
|
|
124
|
-
comment: "Users Department",
|
|
125
|
-
trim: true
|
|
126
|
-
},
|
|
127
|
-
user_permissions: {
|
|
128
|
-
type: Array,
|
|
129
|
-
default: []
|
|
130
|
-
},
|
|
131
|
-
user_isactive: {
|
|
132
|
-
type: Boolean
|
|
133
|
-
}
|
|
134
|
-
}, { collection: 'auth_user_mst' });
|
|
135
|
-
|
|
136
|
-
const CUser = mongoose.model<IUser>('auth_user_mst', auth_user_mst);
|
|
137
|
-
/* SCHEMA END */
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
IUser, // interface name
|
|
141
|
-
IUserPermissions,
|
|
142
|
-
CUser // collecton name
|
|
143
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CUser = void 0;
|
|
4
|
+
var mongoose_1 = require("mongoose");
|
|
5
|
+
/* INTERFACE END */
|
|
6
|
+
/* SCHEMA START */
|
|
7
|
+
var auth_user_mst = new mongoose_1.Schema({
|
|
8
|
+
user_id_ent: {
|
|
9
|
+
type: String,
|
|
10
|
+
comment: "Unique Entity id"
|
|
11
|
+
},
|
|
12
|
+
user_username: {
|
|
13
|
+
type: String,
|
|
14
|
+
minlength: 8,
|
|
15
|
+
maxlength: 20,
|
|
16
|
+
required: true,
|
|
17
|
+
trim: true,
|
|
18
|
+
unique: true,
|
|
19
|
+
comment: "Unique User Name",
|
|
20
|
+
message: "Unique User Name"
|
|
21
|
+
},
|
|
22
|
+
user_firstname: {
|
|
23
|
+
type: String,
|
|
24
|
+
minlength: 3,
|
|
25
|
+
maxlength: 20
|
|
26
|
+
},
|
|
27
|
+
user_middlename: {
|
|
28
|
+
type: String,
|
|
29
|
+
minlength: 3,
|
|
30
|
+
maxlength: 20
|
|
31
|
+
},
|
|
32
|
+
user_lastname: {
|
|
33
|
+
type: String,
|
|
34
|
+
minlength: 8,
|
|
35
|
+
maxlength: 20
|
|
36
|
+
},
|
|
37
|
+
user_fullname: {
|
|
38
|
+
type: String,
|
|
39
|
+
minlength: 8,
|
|
40
|
+
maxlength: 52
|
|
41
|
+
},
|
|
42
|
+
user_emailid: {
|
|
43
|
+
type: String,
|
|
44
|
+
minlength: 8,
|
|
45
|
+
maxlength: 50,
|
|
46
|
+
trim: true,
|
|
47
|
+
unique: true,
|
|
48
|
+
comment: "Unique Email ID",
|
|
49
|
+
message: "Unique Email ID"
|
|
50
|
+
},
|
|
51
|
+
user_mobileno: {
|
|
52
|
+
type: Number,
|
|
53
|
+
minlength: 10,
|
|
54
|
+
maxlength: 15,
|
|
55
|
+
trim: true,
|
|
56
|
+
unique: true,
|
|
57
|
+
comment: "Unique Mobile no",
|
|
58
|
+
message: "Unique Mobile no"
|
|
59
|
+
},
|
|
60
|
+
user_password: {
|
|
61
|
+
type: String,
|
|
62
|
+
maxlength: 250,
|
|
63
|
+
trim: true
|
|
64
|
+
},
|
|
65
|
+
user_activefrom: {
|
|
66
|
+
type: Date,
|
|
67
|
+
comment: "User Effective from- Default is created date"
|
|
68
|
+
},
|
|
69
|
+
user_activeupto: {
|
|
70
|
+
type: Date,
|
|
71
|
+
comment: "User Valid upto registered academic year default"
|
|
72
|
+
},
|
|
73
|
+
user_photo_id_fm: {
|
|
74
|
+
type: String,
|
|
75
|
+
comment: "photo file manager id",
|
|
76
|
+
trim: true
|
|
77
|
+
},
|
|
78
|
+
user_passwordchangeonlogin: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
comment: "Change password on Login. Flag can be set by the Admin/ Reset option",
|
|
81
|
+
default: true
|
|
82
|
+
},
|
|
83
|
+
user_id_role: {
|
|
84
|
+
type: String,
|
|
85
|
+
comment: "Role Id associated with the user.",
|
|
86
|
+
trim: true
|
|
87
|
+
},
|
|
88
|
+
user_id_desg: {
|
|
89
|
+
type: String,
|
|
90
|
+
comment: "Users Designation",
|
|
91
|
+
trim: true
|
|
92
|
+
},
|
|
93
|
+
user_id_dept: {
|
|
94
|
+
type: String,
|
|
95
|
+
comment: "Users Department",
|
|
96
|
+
trim: true
|
|
97
|
+
},
|
|
98
|
+
user_permissions: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: []
|
|
101
|
+
},
|
|
102
|
+
user_isactive: {
|
|
103
|
+
type: Boolean
|
|
104
|
+
}
|
|
105
|
+
}, { collection: 'auth_user_mst' });
|
|
106
|
+
var CUser = mongoose_1.default.model('auth_user_mst', auth_user_mst);
|
|
107
|
+
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
|
+
var auth_user_mst_1 = require("./auth_user_mst");
|
|
5
|
+
Object.defineProperty(exports, "CUser", { enumerable: true, get: function () { return auth_user_mst_1.CUser; } });
|
|
6
|
+
var auth_logses_1 = require("./auth_logses");
|
|
7
|
+
Object.defineProperty(exports, "Clogses", { enumerable: true, get: function () { return auth_logses_1.Clogses; } });
|
|
8
|
+
var 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,37 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import mongoose from "mongoose";
|
|
26
|
+
declare class IMpin {
|
|
27
|
+
mpin_pin: number;
|
|
28
|
+
mpin_id_user: string;
|
|
29
|
+
mpin_expiry_dtm: Date;
|
|
30
|
+
mpin_used: boolean;
|
|
31
|
+
mpin_isactive: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const CMpin: mongoose.Model<IMpin, {}, {}, {}, mongoose.Document<unknown, {}, IMpin> & IMpin & {
|
|
34
|
+
_id: mongoose.Types.ObjectId;
|
|
35
|
+
}, any>;
|
|
36
|
+
export { IMpin, // interface
|
|
37
|
+
CMpin };
|