@kipicore/dbcore 1.1.516 → 1.1.519

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.
@@ -29,4 +29,7 @@ export interface ISubscriptionPlanModelAttributes extends IDefaultAttributes, Do
29
29
  sequence: number;
30
30
  type: SUBSCRIPTION_PLAN_TYPE;
31
31
  validityInDays?: number;
32
+ maxFreeCourses?: number;
33
+ maxFreeCoursePrice?: number;
34
+ maxNumberOfSchool?: number;
32
35
  }
@@ -10,4 +10,5 @@ export interface IUserHasCourseModelAttributes extends IDefaultAttributes {
10
10
  expiryDate: Date;
11
11
  status?: COMMAN_STATUS;
12
12
  courseStatus?: USER_COURSE_STATUS;
13
+ walletTransactionId?: string;
13
14
  }
@@ -31,4 +31,5 @@ export interface IWalletTransactionModelAttributes extends IDefaultAttributes, D
31
31
  token?: string;
32
32
  redirectUrl?: string;
33
33
  additionalCharges?: any;
34
+ userId: string;
34
35
  }
@@ -136,6 +136,18 @@ const subscriptionPlanModelSchema = new mongoose_1.Schema({
136
136
  },
137
137
  sequence: { type: Number, required: false },
138
138
  validityInDays: { type: Number, required: false },
139
+ maxFreeCoursePrice: {
140
+ type: Number,
141
+ required: false,
142
+ },
143
+ maxFreeCourses: {
144
+ type: Number,
145
+ required: false,
146
+ },
147
+ maxNumberOfSchool: {
148
+ type: Number,
149
+ required: false,
150
+ },
139
151
  }, {
140
152
  timestamps: true,
141
153
  versionKey: false,
@@ -154,6 +154,10 @@ const walletTransactionSchema = new mongoose_1.Schema({
154
154
  type: String,
155
155
  required: false,
156
156
  },
157
+ userId: {
158
+ type: String,
159
+ required: false,
160
+ },
157
161
  }, {
158
162
  timestamps: true,
159
163
  versionKey: false,
@@ -103,6 +103,10 @@ UserHasCourseModel.init({
103
103
  allowNull: true,
104
104
  defaultValue: app_1.USER_COURSE_STATUS.RUNNING,
105
105
  },
106
+ walletTransactionId: {
107
+ type: sequelize_1.DataTypes.STRING,
108
+ allowNull: true,
109
+ },
106
110
  }, {
107
111
  modelName: 'UserHasCourseModel',
108
112
  tableName: 'userHasUserHasCourses',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.516",
3
+ "version": "1.1.519",
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",