cloud-ide-model-schema 1.1.65 → 1.1.67
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthUserMst } from "cloud-ide-lms-model";
|
|
2
2
|
import mongoose from "mongoose";
|
|
3
|
-
declare const CUser: mongoose.Model<
|
|
3
|
+
declare const CUser: mongoose.Model<AuthUserMst, {}, {}, {}, mongoose.Document<unknown, {}, AuthUserMst, {}> & AuthUserMst & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
@@ -4,10 +4,6 @@ exports.CUser = void 0;
|
|
|
4
4
|
var mongoose_1 = require("mongoose");
|
|
5
5
|
/* SCHEMA START */
|
|
6
6
|
var auth_user_mst = new mongoose_1.Schema({
|
|
7
|
-
user_id_ent: {
|
|
8
|
-
type: String,
|
|
9
|
-
comment: "Unique Entity id"
|
|
10
|
-
},
|
|
11
7
|
user_username: {
|
|
12
8
|
type: String,
|
|
13
9
|
minlength: 8,
|
|
@@ -36,7 +32,7 @@ var auth_user_mst = new mongoose_1.Schema({
|
|
|
36
32
|
user_fullname: {
|
|
37
33
|
type: String,
|
|
38
34
|
minlength: 8,
|
|
39
|
-
maxlength:
|
|
35
|
+
maxlength: 80
|
|
40
36
|
},
|
|
41
37
|
user_emailid: {
|
|
42
38
|
type: String,
|
|
@@ -61,15 +57,11 @@ var auth_user_mst = new mongoose_1.Schema({
|
|
|
61
57
|
maxlength: 250,
|
|
62
58
|
trim: true
|
|
63
59
|
},
|
|
64
|
-
|
|
65
|
-
type:
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
user_activeupto: {
|
|
69
|
-
type: Date,
|
|
70
|
-
comment: "User Valid upto registered academic year default"
|
|
60
|
+
user_password_salt: {
|
|
61
|
+
type: String,
|
|
62
|
+
maxlength: 250,
|
|
71
63
|
},
|
|
72
|
-
|
|
64
|
+
user_photo_id_cyfm: {
|
|
73
65
|
type: String,
|
|
74
66
|
comment: "photo file manager id",
|
|
75
67
|
trim: true
|
|
@@ -79,25 +71,6 @@ var auth_user_mst = new mongoose_1.Schema({
|
|
|
79
71
|
comment: "Change password on Login. Flag can be set by the Admin/ Reset option",
|
|
80
72
|
default: true
|
|
81
73
|
},
|
|
82
|
-
user_id_role: {
|
|
83
|
-
type: String,
|
|
84
|
-
comment: "Role Id associated with the user.",
|
|
85
|
-
trim: true
|
|
86
|
-
},
|
|
87
|
-
user_id_desg: {
|
|
88
|
-
type: String,
|
|
89
|
-
comment: "Users Designation",
|
|
90
|
-
trim: true
|
|
91
|
-
},
|
|
92
|
-
user_id_dept: {
|
|
93
|
-
type: String,
|
|
94
|
-
comment: "Users Department",
|
|
95
|
-
trim: true
|
|
96
|
-
},
|
|
97
|
-
user_permissions: {
|
|
98
|
-
type: Array,
|
|
99
|
-
default: []
|
|
100
|
-
},
|
|
101
74
|
user_isactive: {
|
|
102
75
|
type: Boolean
|
|
103
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreEntityMapping } from "cloud-ide-lms-model";
|
|
2
2
|
import mongoose from "mongoose";
|
|
3
|
-
declare const CCoreSyenm: mongoose.Model<
|
|
3
|
+
declare const CCoreSyenm: mongoose.Model<CoreEntityMapping, {}, {}, {}, mongoose.Document<unknown, {}, CoreEntityMapping, {}> & CoreEntityMapping & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
@@ -8,14 +8,34 @@ var core_entity_mapping = new mongoose_1.Schema({
|
|
|
8
8
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
9
9
|
ref: "auth_user_mst"
|
|
10
10
|
},
|
|
11
|
-
|
|
11
|
+
syenm_role_id_syusrol: {
|
|
12
12
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
13
|
-
ref: "
|
|
13
|
+
ref: "auth_role_mst"
|
|
14
14
|
},
|
|
15
15
|
syenm_id_logses: {
|
|
16
16
|
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
17
17
|
ref: "auth_logses"
|
|
18
18
|
},
|
|
19
|
+
syenm_activefrom: {
|
|
20
|
+
type: Date,
|
|
21
|
+
default: Date.now
|
|
22
|
+
},
|
|
23
|
+
syenm_activeupto: {
|
|
24
|
+
type: Date,
|
|
25
|
+
default: Date.now
|
|
26
|
+
},
|
|
27
|
+
syenm_designation_id_sydsg: {
|
|
28
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
29
|
+
ref: "core_designation"
|
|
30
|
+
},
|
|
31
|
+
syenm_department_id_sydept: {
|
|
32
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
33
|
+
ref: "core_department"
|
|
34
|
+
},
|
|
35
|
+
syenm_entity_id_syen: {
|
|
36
|
+
type: mongoose_1.default.Schema.Types.ObjectId,
|
|
37
|
+
ref: "core_system_entity"
|
|
38
|
+
},
|
|
19
39
|
syenm_isactive: {
|
|
20
40
|
type: Boolean,
|
|
21
41
|
default: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"cloud-ide-lms-model": "^1.0.
|
|
3
|
+
"cloud-ide-lms-model": "^1.0.217",
|
|
4
4
|
"dotenv": "^16.5.0",
|
|
5
5
|
"mongoose": "^8.15.0"
|
|
6
6
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript": "^5.8.3"
|
|
10
10
|
},
|
|
11
11
|
"name": "cloud-ide-model-schema",
|
|
12
|
-
"version": "1.1.
|
|
12
|
+
"version": "1.1.67",
|
|
13
13
|
"description": "Pachage for schema management of Cloud IDEsys LMS",
|
|
14
14
|
"main": "lib/index.js",
|
|
15
15
|
"types": "lib/index.d.ts",
|