@kipicore/dbcore 1.1.111 → 1.1.113

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.
@@ -17,4 +17,5 @@ export interface IAppointmentModelAttributes extends IDefaultAttributes, Documen
17
17
  email: string;
18
18
  metaId: string;
19
19
  mobile: string;
20
+ userType: string;
20
21
  }
@@ -1,11 +1,12 @@
1
1
  import { Document } from 'mongoose';
2
2
  import { IDefaultAttributes } from './commonInterface';
3
- import { COMMAN_STATUS } from '../constants/app';
3
+ import { COMMAN_STATUS, USER_TYPES } from '../constants/app';
4
4
  export interface IRowSchema {
5
5
  id: string;
6
6
  title: string;
7
7
  column: string;
8
8
  default: boolean;
9
+ userType: USER_TYPES[];
9
10
  }
10
11
  export interface IColumnModelAttributes extends IDefaultAttributes, Document {
11
12
  id: string;
@@ -73,6 +73,10 @@ const appointmentSchema = new mongoose_1.Schema({
73
73
  type: String,
74
74
  trim: true,
75
75
  },
76
+ userType: {
77
+ type: String,
78
+ trim: true,
79
+ },
76
80
  // isGuest: {
77
81
  // type: Boolean,
78
82
  // },
@@ -39,6 +39,15 @@ const RowSchema = new mongoose_1.Schema({
39
39
  title: { type: String, required: true },
40
40
  column: { type: String, required: true },
41
41
  default: { type: Boolean, required: true, default: false },
42
+ userType: {
43
+ type: [
44
+ {
45
+ type: String,
46
+ enum: Object.values(app_1.COLUMN_LIST_TITLE),
47
+ },
48
+ ],
49
+ required: false,
50
+ },
42
51
  }, { _id: false });
43
52
  const ColumnSchema = new mongoose_1.Schema({
44
53
  title: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.111",
3
+ "version": "1.1.113",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",