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.
Files changed (69) hide show
  1. package/lib/config/database.d.ts +3 -0
  2. package/lib/config/database.js +66 -0
  3. package/{config/index.ts → lib/config/index.d.ts} +2 -5
  4. package/lib/config/index.js +5 -0
  5. package/{index.ts → lib/index.d.ts} +4 -5
  6. package/lib/index.js +23 -0
  7. package/lib/schema/auth/auth_logses.d.ts +42 -0
  8. package/{schema/auth/auth_logses.ts → lib/schema/auth/auth_logses.js} +50 -68
  9. package/lib/schema/auth/auth_user_mst.d.ts +58 -0
  10. package/{schema/auth/auth_user_mst.ts → lib/schema/auth/auth_user_mst.js} +107 -143
  11. package/lib/schema/auth/index.d.ts +4 -0
  12. package/lib/schema/auth/index.js +10 -0
  13. package/lib/schema/auth/mpin.d.ts +37 -0
  14. package/{schema/auth/mpin.ts → lib/schema/auth/mpin.js} +54 -60
  15. package/lib/schema/core/core_entity_mapping.d.ts +39 -0
  16. package/lib/schema/core/core_entity_mapping.js +34 -0
  17. package/lib/schema/core/core_general_master.d.ts +39 -0
  18. package/lib/schema/core/core_general_master.js +37 -0
  19. package/lib/schema/core/core_general_master_type.d.ts +37 -0
  20. package/{schema/core/core_general_master_type.ts → lib/schema/core/core_general_master_type.js} +33 -46
  21. package/lib/schema/core/core_page_controls.d.ts +47 -0
  22. package/{schema/core/core_page_controls.ts → lib/schema/core/core_page_controls.js} +75 -100
  23. package/lib/schema/core/core_page_grid.d.ts +36 -0
  24. package/{schema/core/core_page_grid.ts → lib/schema/core/core_page_grid.js} +36 -48
  25. package/lib/schema/core/core_page_tab.d.ts +43 -0
  26. package/lib/schema/core/core_page_tab.js +33 -0
  27. package/lib/schema/core/core_pin_code.d.ts +44 -0
  28. package/{schema/core/core_pin_code.ts → lib/schema/core/core_pin_code.js} +51 -73
  29. package/lib/schema/core/core_system_config.d.ts +37 -0
  30. package/{schema/core/core_system_config.ts → lib/schema/core/core_system_config.js} +48 -54
  31. package/lib/schema/core/core_system_entity.d.ts +63 -0
  32. package/{schema/core/core_system_entity.ts → lib/schema/core/core_system_entity.js} +177 -216
  33. package/lib/schema/core/core_system_logs.d.ts +53 -0
  34. package/{schema/core/core_system_logs.ts → lib/schema/core/core_system_logs.js} +117 -141
  35. package/lib/schema/core/core_system_menu.d.ts +42 -0
  36. package/{schema/core/core_system_menu.ts → lib/schema/core/core_system_menu.js} +63 -74
  37. package/lib/schema/core/core_system_pages.d.ts +39 -0
  38. package/{schema/core/core_system_pages.ts → lib/schema/core/core_system_pages.js} +51 -59
  39. package/lib/schema/core/core_system_pages_theme.d.ts +40 -0
  40. package/{schema/core/core_system_pages_theme.ts → lib/schema/core/core_system_pages_theme.js} +51 -60
  41. package/{schema/core/index.ts → lib/schema/core/index.d.ts} +14 -42
  42. package/lib/schema/core/index.js +34 -0
  43. package/lib/schema/email/elist.d.ts +36 -0
  44. package/lib/schema/email/elist.js +42 -0
  45. package/lib/schema/email/elog.d.ts +41 -0
  46. package/lib/schema/email/elog.js +58 -0
  47. package/lib/schema/email/eref.d.ts +37 -0
  48. package/lib/schema/email/eref.js +43 -0
  49. package/lib/schema/email/esub.d.ts +43 -0
  50. package/{schema/email/esub.ts → lib/schema/email/esub.js} +69 -81
  51. package/lib/schema/email/etmp.d.ts +36 -0
  52. package/lib/schema/email/etmp.js +41 -0
  53. package/lib/schema/email/evdr.d.ts +36 -0
  54. package/lib/schema/email/evdr.js +41 -0
  55. package/lib/schema/email/index.d.ts +7 -0
  56. package/lib/schema/email/index.js +21 -0
  57. package/package.json +12 -8
  58. package/config/database.ts +0 -18
  59. package/schema/auth/index.ts +0 -13
  60. package/schema/core/core_entity_mapping.ts +0 -49
  61. package/schema/core/core_general_master.ts +0 -52
  62. package/schema/core/core_page_tab.ts +0 -54
  63. package/schema/email/elist.ts +0 -47
  64. package/schema/email/elog.ts +0 -68
  65. package/schema/email/eref.ts +0 -49
  66. package/schema/email/etmp.ts +0 -46
  67. package/schema/email/evdr.ts +0 -46
  68. package/schema/email/index.ts +0 -21
  69. package/tsconfig.json +0 -9
@@ -1,81 +1,69 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- class IEmailVendorSubscription {
5
- _id?: string;
6
- esub_id_evdr?: string;
7
- esub_start_dtm?: Date;
8
- esub_end_dtm?: Date;
9
- esub_timestamp?: string;
10
- esub_limit?: number;
11
- esub_alert_on_limit?: string;
12
- esub_alert_to_id_user?: string;
13
- esub_used_limit?: number;
14
- esub_status?: string;
15
- esub_isactive?: boolean;
16
- }
17
- /* INTERFACE END */
18
-
19
- /* SCHEMA START */
20
- const email_subscription_vendor: Schema = new Schema({
21
- esub_id_evdr: {
22
- type: mongoose.Schema.Types.ObjectId,
23
- required: true,
24
- ref: "email_vendor"
25
- },
26
- esub_start_dtm: {
27
- type: Date,
28
- required: true,
29
- default: new Date()
30
- },
31
- esub_end_dtm: {
32
- type: Date,
33
- required: true,
34
- default: new Date()
35
- },
36
- esub_timestamp: {
37
- type: Date,
38
- required: true,
39
- default: new Date()
40
- },
41
- esub_limit: {
42
- type: Number,
43
- required: true,
44
- minvalue: 0,
45
- default: 0
46
- },
47
- esub_alert_on_limit: {
48
- type: Number,
49
- required: true,
50
- minvalue: 10,
51
- default: 10,
52
- },
53
- esub_alert_to_id_user: {
54
- type: Array,
55
- default: []
56
- },
57
- esub_used_limit: {
58
- type: Number,
59
- minvalue: 0,
60
- default: 0,
61
- },
62
- esub_status: {
63
- type: String,
64
- required: true,
65
- enum: ['active', 'inactive', 'discontinued', 'hold'],
66
- default: 'active'
67
- },
68
- esub_isactive: {
69
- type: Boolean,
70
- required: true,
71
- default: true
72
- }
73
- }, { collection: 'email_subscription_vendor' });
74
-
75
- const CEmailVendorSubscription = mongoose.model<IEmailVendorSubscription>("email_subscription_vendor", email_subscription_vendor);
76
- /* SCHIMA END */
77
-
78
- export {
79
- IEmailVendorSubscription, // interface
80
- CEmailVendorSubscription // collection
81
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailVendorSubscription = exports.IEmailVendorSubscription = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailVendorSubscription = /** @class */ (function () {
7
+ function IEmailVendorSubscription() {
8
+ }
9
+ return IEmailVendorSubscription;
10
+ }());
11
+ exports.IEmailVendorSubscription = IEmailVendorSubscription;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_subscription_vendor = new mongoose_1.Schema({
15
+ esub_id_evdr: {
16
+ type: mongoose_1.default.Schema.Types.ObjectId,
17
+ required: true,
18
+ ref: "email_vendor"
19
+ },
20
+ esub_start_dtm: {
21
+ type: Date,
22
+ required: true,
23
+ default: new Date()
24
+ },
25
+ esub_end_dtm: {
26
+ type: Date,
27
+ required: true,
28
+ default: new Date()
29
+ },
30
+ esub_timestamp: {
31
+ type: Date,
32
+ required: true,
33
+ default: new Date()
34
+ },
35
+ esub_limit: {
36
+ type: Number,
37
+ required: true,
38
+ minvalue: 0,
39
+ default: 0
40
+ },
41
+ esub_alert_on_limit: {
42
+ type: Number,
43
+ required: true,
44
+ minvalue: 10,
45
+ default: 10,
46
+ },
47
+ esub_alert_to_id_user: {
48
+ type: Array,
49
+ default: []
50
+ },
51
+ esub_used_limit: {
52
+ type: Number,
53
+ minvalue: 0,
54
+ default: 0,
55
+ },
56
+ esub_status: {
57
+ type: String,
58
+ required: true,
59
+ enum: ['active', 'inactive', 'discontinued', 'hold'],
60
+ default: 'active'
61
+ },
62
+ esub_isactive: {
63
+ type: Boolean,
64
+ required: true,
65
+ default: true
66
+ }
67
+ }, { collection: 'email_subscription_vendor' });
68
+ var CEmailVendorSubscription = mongoose_1.default.model("email_subscription_vendor", email_subscription_vendor);
69
+ exports.CEmailVendorSubscription = CEmailVendorSubscription;
@@ -0,0 +1,36 @@
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 IEmailTemplete {
27
+ etmp_id_eref: string;
28
+ etmp_subject: string;
29
+ etmp_body: string;
30
+ etmp_isactive: boolean;
31
+ }
32
+ declare const CEmailTemplete: mongoose.Model<IEmailTemplete, {}, {}, {}, mongoose.Document<unknown, {}, IEmailTemplete> & IEmailTemplete & {
33
+ _id: mongoose.Types.ObjectId;
34
+ }, any>;
35
+ export { IEmailTemplete, // interface
36
+ CEmailTemplete };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailTemplete = exports.IEmailTemplete = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailTemplete = /** @class */ (function () {
7
+ function IEmailTemplete() {
8
+ }
9
+ return IEmailTemplete;
10
+ }());
11
+ exports.IEmailTemplete = IEmailTemplete;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_templete = new mongoose_1.Schema({
15
+ etmp_id_eref: {
16
+ type: mongoose_1.default.Schema.Types.ObjectId,
17
+ required: true,
18
+ ref: "email_reference",
19
+ unique: true
20
+ },
21
+ etmp_subject: {
22
+ type: String,
23
+ minlength: 9,
24
+ maxlength: 60,
25
+ required: true,
26
+ trim: true,
27
+ },
28
+ etmp_body: {
29
+ type: String,
30
+ minlength: 25,
31
+ maxlength: 384000,
32
+ required: true
33
+ },
34
+ etmp_isactive: {
35
+ type: Boolean,
36
+ required: true,
37
+ default: true
38
+ }
39
+ }, { collection: 'email_templete' });
40
+ var CEmailTemplete = mongoose_1.default.model("email_templete", email_templete);
41
+ exports.CEmailTemplete = CEmailTemplete;
@@ -0,0 +1,36 @@
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 IEmailVendor {
27
+ evdr_name: string;
28
+ evdr_desc: string;
29
+ evdr_api_end_point: string;
30
+ evdr_isactive: boolean;
31
+ }
32
+ declare const CEmailVendor: mongoose.Model<IEmailVendor, {}, {}, {}, mongoose.Document<unknown, {}, IEmailVendor> & IEmailVendor & {
33
+ _id: mongoose.Types.ObjectId;
34
+ }, any>;
35
+ export { IEmailVendor, // interface
36
+ CEmailVendor };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailVendor = exports.IEmailVendor = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailVendor = /** @class */ (function () {
7
+ function IEmailVendor() {
8
+ }
9
+ return IEmailVendor;
10
+ }());
11
+ exports.IEmailVendor = IEmailVendor;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_vendor = new mongoose_1.Schema({
15
+ evdr_name: {
16
+ type: String,
17
+ required: true,
18
+ trim: true,
19
+ minlength: 8,
20
+ maxlength: 52,
21
+ },
22
+ evdr_desc: {
23
+ type: String,
24
+ require: true,
25
+ trim: true,
26
+ maxlength: 255,
27
+ },
28
+ evdr_api_end_point: {
29
+ type: String,
30
+ trim: true,
31
+ required: true,
32
+ maxlength: 255
33
+ },
34
+ evdr_isactive: {
35
+ type: Boolean,
36
+ required: true,
37
+ default: true
38
+ }
39
+ }, { collection: 'email_vendor' });
40
+ var CEmailVendor = mongoose_1.default.model("email_vendor", email_vendor);
41
+ exports.CEmailVendor = CEmailVendor;
@@ -0,0 +1,7 @@
1
+ import { IEmailList, CEmailList } from './elist';
2
+ import { IEmailLog, CEmailLog } from './elog';
3
+ import { IEmailReference, CEmailReference } from './eref';
4
+ import { IEmailVendorSubscription, CEmailVendorSubscription } from './esub';
5
+ import { IEmailTemplete, CEmailTemplete } from './etmp';
6
+ import { IEmailVendor, CEmailVendor } from './evdr';
7
+ export { IEmailList, CEmailList, IEmailLog, CEmailLog, IEmailReference, CEmailReference, IEmailVendorSubscription, CEmailVendorSubscription, IEmailTemplete, CEmailTemplete, IEmailVendor, CEmailVendor };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailVendor = exports.IEmailVendor = exports.CEmailTemplete = exports.IEmailTemplete = exports.CEmailVendorSubscription = exports.IEmailVendorSubscription = exports.CEmailReference = exports.IEmailReference = exports.CEmailLog = exports.IEmailLog = exports.CEmailList = exports.IEmailList = void 0;
4
+ var elist_1 = require("./elist");
5
+ Object.defineProperty(exports, "IEmailList", { enumerable: true, get: function () { return elist_1.IEmailList; } });
6
+ Object.defineProperty(exports, "CEmailList", { enumerable: true, get: function () { return elist_1.CEmailList; } });
7
+ var elog_1 = require("./elog");
8
+ Object.defineProperty(exports, "IEmailLog", { enumerable: true, get: function () { return elog_1.IEmailLog; } });
9
+ Object.defineProperty(exports, "CEmailLog", { enumerable: true, get: function () { return elog_1.CEmailLog; } });
10
+ var eref_1 = require("./eref");
11
+ Object.defineProperty(exports, "IEmailReference", { enumerable: true, get: function () { return eref_1.IEmailReference; } });
12
+ Object.defineProperty(exports, "CEmailReference", { enumerable: true, get: function () { return eref_1.CEmailReference; } });
13
+ var esub_1 = require("./esub");
14
+ Object.defineProperty(exports, "IEmailVendorSubscription", { enumerable: true, get: function () { return esub_1.IEmailVendorSubscription; } });
15
+ Object.defineProperty(exports, "CEmailVendorSubscription", { enumerable: true, get: function () { return esub_1.CEmailVendorSubscription; } });
16
+ var etmp_1 = require("./etmp");
17
+ Object.defineProperty(exports, "IEmailTemplete", { enumerable: true, get: function () { return etmp_1.IEmailTemplete; } });
18
+ Object.defineProperty(exports, "CEmailTemplete", { enumerable: true, get: function () { return etmp_1.CEmailTemplete; } });
19
+ var evdr_1 = require("./evdr");
20
+ Object.defineProperty(exports, "IEmailVendor", { enumerable: true, get: function () { return evdr_1.IEmailVendor; } });
21
+ Object.defineProperty(exports, "CEmailVendor", { enumerable: true, get: function () { return evdr_1.CEmailVendor; } });
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "dependencies": {
3
- "@types/dotenv": "^8.2.0",
4
3
  "dotenv": "^16.4.5",
5
4
  "mongoose": "^8.2.1"
6
5
  },
7
6
  "devDependencies": {
8
- "@types/node": "^20.11.25"
7
+ "@types/node": "^20.11.25",
8
+ "typescript": "^5.4.2"
9
9
  },
10
10
  "name": "cloud-ide-model-schema",
11
- "version": "1.0.6",
11
+ "version": "1.0.8",
12
12
  "description": "Pachage for schema management of Cloud IDEsys LMS",
13
- "main": "index.ts",
14
- "type":"module",
13
+ "main": "lib/index.js",
14
+ "type": "module",
15
+ "types": "lib/index.d.ts",
15
16
  "scripts": {
16
- "test": "echo \"Error: no test specified\" && exit 1"
17
+ "test": "echo \"Error: no test specified\" && exit 1",
18
+ "build": "tsc",
19
+ "prepare": "npm run build"
17
20
  },
18
21
  "keywords": [
19
22
  "CloudIDE",
@@ -21,5 +24,6 @@
21
24
  "Schema"
22
25
  ],
23
26
  "author": "ankush bhure",
24
- "license": "ISC"
25
- }
27
+ "license": "ISC",
28
+ "files": ["lib/**/*"]
29
+ }
@@ -1,18 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- import 'dotenv/config';
3
-
4
- async function connectDB() {
5
- const options:any = {
6
- // authSource: process.env.MONGODB_AUTH_SOURCE || 'admin', // Optional authentication database
7
- connectTimeoutMS: 10000,
8
- socketTimeoutMS: 30000,
9
- // Other MongoDB connection options as needed
10
- };
11
- await mongoose.connect(process.env.MONGODB_URI || '', options).then(() => {
12
- console.log('Connected to MongoDB');
13
- }).catch((error) => {
14
- console.error('Error connecting to MongoDB:', error);
15
- });
16
- }
17
-
18
- export { connectDB };
@@ -1,13 +0,0 @@
1
- import { CUser, IUser, IUserPermissions } from "./auth_user_mst"
2
- import { Clogses, ILogses } from './auth_logses';
3
- import { IMpin, CMpin } from './mpin';
4
-
5
- // export all model and collections
6
- export {
7
- /* user Schemas */
8
- CUser, IUser, IUserPermissions,
9
- /* Logsession schemas */
10
- Clogses, ILogses,
11
- /* Mpin schemas */
12
- IMpin, CMpin
13
- }
@@ -1,49 +0,0 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSyenm {
5
- _id?: string;
6
- syenm_id_user?: string;
7
- syenm_id_syen?: string;
8
- syenm_id_logses?: string;
9
- syenm_isactive?: boolean;
10
- syenm_isdefault?: boolean;
11
- syenm_isloggedin?: boolean;
12
- }
13
- /* INTERFACE END */
14
-
15
- /* SCHEMA START */
16
- const core_entity_mapping: Schema = new Schema({
17
- syenm_id_user: {
18
- type: mongoose.Schema.Types.ObjectId,
19
- ref: "auth_user_mst"
20
- },
21
- syenm_id_syen: {
22
- type: mongoose.Schema.Types.ObjectId,
23
- ref: "core_system_entity"
24
- },
25
- syenm_id_logses: {
26
- type: mongoose.Schema.Types.ObjectId,
27
- ref: "auth_logses"
28
- },
29
- syenm_isactive: {
30
- type: Boolean,
31
- default: true
32
- },
33
- syenm_isloggedin: {
34
- type: Boolean,
35
- default: true
36
- },
37
- syenm_isdefault: {
38
- type: Boolean,
39
- default: true
40
- },
41
- }, { collection: 'core_entity_mapping' });
42
-
43
- const CCoreSyenm = mongoose.model<ICoreSyenm>("core_entity_mapping", core_entity_mapping);
44
- /* SCHIMA END */
45
-
46
- export {
47
- ICoreSyenm, // interface
48
- CCoreSyenm // collection
49
- };
@@ -1,52 +0,0 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSygms {
5
- _id: string;
6
- sygms_id_sygmt: string;
7
- sygms_code: string;
8
- sygms_title: string;
9
- sygms_desc: string;
10
- sygms_isactive: boolean;
11
- sygms_configuration: object;
12
- }
13
- /* INTERFACE END */
14
-
15
- /* SCHEMA START */
16
- const core_general_master: Schema = new Schema({
17
- sygms_id_sygmt: {
18
- type: mongoose.Schema.Types.ObjectId,
19
- ref: "core_general_master_type"
20
- },
21
- sygms_code: {
22
- type: String,
23
- require: true,
24
- maxlength: 40,
25
- trim: true
26
- },
27
- sygms_title: {
28
- type: String,
29
- require: true,
30
- minlength: 3,
31
- maxlength: 150,
32
- trim: true
33
- },
34
- sygms_desc: {
35
- type: String,
36
- minlength: 0,
37
- maxlength: 500,
38
- trim: true
39
- },
40
- sygms_isactive: {
41
- type: Boolean,
42
- default: true
43
- },
44
- }, { collection: 'core_general_master' });
45
-
46
- const CCoreSygms = mongoose.model<ICoreSygms>("core_general_master", core_general_master);
47
- /* SCHIMA END */
48
-
49
- export {
50
- ICoreSygms, // interface
51
- CCoreSygms // collection
52
- };
@@ -1,54 +0,0 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- interface ICoreSyptb {
5
- _id?: string;
6
- syptb_title: string;
7
- syptb_tabs: ITabs[];
8
- syptb_tab_code: string;
9
- syptb_page_id_sypg: string;
10
- syptb_isactive?: boolean;
11
- }
12
-
13
- export interface ITabs {
14
- syptb_path: string;
15
- syptb_label: string;
16
- syptb_isactive: boolean;
17
- }
18
-
19
- /* INTERFACE END */
20
-
21
- /* SCHEMA START */
22
- const core_page_tab: Schema = new Schema({
23
- syptb_page_id_sypg: {
24
- type: mongoose.Schema.Types.ObjectId,
25
- ref: "core_system_pages"
26
- },
27
- syptb_title: {
28
- type: String,
29
- minlength: 0,
30
- maxlength: 100,
31
- trim: true
32
- },
33
- syptb_tabs: {
34
- type: Array
35
- },
36
- syptb_tab_code: {
37
- type: String,
38
- minlength: 3,
39
- maxlength: 40,
40
- trim: true
41
- },
42
- syptb_isactive: {
43
- type: Boolean,
44
- default: true
45
- }
46
- }, { collection: 'core_page_tab' });
47
-
48
- const CCoreSyptb = mongoose.model<ICoreSyptb>("core_page_tab", core_page_tab);
49
- /* SCHIMA END */
50
-
51
- export {
52
- ICoreSyptb, // interface
53
- CCoreSyptb // collection
54
- };
@@ -1,47 +0,0 @@
1
- import mongoose, { Schema } from "mongoose";
2
-
3
- /* INTERFASE START */
4
- class IEmailList {
5
- elst_email!: string;
6
- elst_id_evdr!: string;
7
- elst_sender_reciver_name!: string;
8
- elst_isactive!: boolean;
9
- }
10
- /* INTERFACE END */
11
-
12
- /* SCHEMA START */
13
- const email_list: Schema = new Schema({
14
- elst_email: {
15
- type: String,
16
- required: true,
17
- comment: ` maximum of 64 characters (octets) in the "local part" (before the "@") and a maximum of 255 characters (octets) in the domain part (after the "@") for a total length of 320 characters`,
18
- maxlength: 320,
19
- minlength: 8,
20
- trim: true
21
- },
22
- elst_id_evdr: {
23
- type: mongoose.Schema.Types.ObjectId,
24
- required: true,
25
- ref: "email_vendor"
26
- },
27
- elst_sender_reciver_name: {
28
- type: String,
29
- minlength: 8,
30
- maxlength: 52,
31
- required: true,
32
- trim: true
33
- },
34
- elst_isactive: {
35
- type: Boolean,
36
- required: true,
37
- default: true
38
- }
39
- }, { collection: 'email_list' });
40
-
41
- const CEmailList = mongoose.model<IEmailList>("email_list", email_list);
42
- /* SCHIMA END */
43
-
44
- export {
45
- IEmailList, // interface
46
- CEmailList // collection
47
- };