@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.
- package/dist/interfaces/subscriptionPlanInterface.d.ts +3 -0
- package/dist/interfaces/userHasCourseInterface.d.ts +1 -0
- package/dist/interfaces/walletTransactionInterface.d.ts +1 -0
- package/dist/models/mongodb/subscriptionPlanModel.js +12 -0
- package/dist/models/mongodb/walletTransactionModel.js +4 -0
- package/dist/models/psql/userHasCourseModel.js +4 -0
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -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