@kipicore/dbcore 1.1.530 → 1.1.531
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/db/psql/migrations/{20251009061917-userHasUserHasCourses.js → 20260527095624-add-user-has-course-model.js} +14 -4
- package/dist/models/psql/userHasCourseModel.js +1 -1
- package/package.json +1 -1
- /package/dist/db/psql/migrations/{20251009061917-userHasUserHasCourses.d.ts → 20260527095624-add-user-has-course-model.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const up = async (queryInterface, Sequelize) => {
|
|
3
|
-
const tableName = '
|
|
3
|
+
const tableName = 'user_has_courses';
|
|
4
4
|
const tableExists = await queryInterface
|
|
5
5
|
.describeTable(tableName)
|
|
6
6
|
.then(() => true)
|
|
@@ -52,7 +52,12 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
52
52
|
type: Sequelize.STRING,
|
|
53
53
|
allowNull: true,
|
|
54
54
|
defaultValue: 'RUNNING',
|
|
55
|
-
field: '
|
|
55
|
+
field: 'course_status',
|
|
56
|
+
},
|
|
57
|
+
walletTransactionId: {
|
|
58
|
+
type: Sequelize.STRING,
|
|
59
|
+
allowNull: true,
|
|
60
|
+
field: 'wallet_transaction_id',
|
|
56
61
|
},
|
|
57
62
|
createdBy: {
|
|
58
63
|
type: Sequelize.UUID,
|
|
@@ -134,7 +139,12 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
134
139
|
type: Sequelize.STRING,
|
|
135
140
|
allowNull: true,
|
|
136
141
|
defaultValue: 'RUNNING',
|
|
137
|
-
field: '
|
|
142
|
+
field: 'course_status',
|
|
143
|
+
},
|
|
144
|
+
walletTransactionId: {
|
|
145
|
+
type: Sequelize.STRING,
|
|
146
|
+
allowNull: true,
|
|
147
|
+
field: 'wallet_transaction_id',
|
|
138
148
|
},
|
|
139
149
|
createdBy: {
|
|
140
150
|
type: Sequelize.UUID,
|
|
@@ -177,7 +187,7 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
177
187
|
}
|
|
178
188
|
};
|
|
179
189
|
const down = async (queryInterface) => {
|
|
180
|
-
const tableName = '
|
|
190
|
+
const tableName = 'user_has_courses';
|
|
181
191
|
const tableExists = await queryInterface
|
|
182
192
|
.describeTable(tableName)
|
|
183
193
|
.then(() => true)
|
package/package.json
CHANGED