@kipicore/dbcore 1.1.564 → 1.1.566
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/20260611105852-is_play_house_add_institute_model.d.ts +2 -0
- package/dist/db/psql/migrations/20260611105852-is_play_house_add_institute_model.js +21 -0
- package/dist/interfaces/dynamicVariableInterface.d.ts +1 -1
- package/dist/interfaces/instituteInterface.d.ts +1 -0
- package/dist/models/psql/instituteModel.d.ts +1 -0
- package/dist/models/psql/instituteModel.js +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('institutes');
|
|
4
|
+
if (!table.is_play_house) {
|
|
5
|
+
await queryInterface.addColumn('institutes', 'is_play_house', {
|
|
6
|
+
type: Sequelize.BOOLEAN,
|
|
7
|
+
allowNull: true,
|
|
8
|
+
defaultValue: false,
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const down = async (queryInterface) => {
|
|
13
|
+
const table = await queryInterface.describeTable('institutes');
|
|
14
|
+
if (table.is_play_house) {
|
|
15
|
+
await queryInterface.removeColumn('institutes', 'is_play_house');
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
module.exports = {
|
|
19
|
+
up,
|
|
20
|
+
down,
|
|
21
|
+
};
|
|
@@ -42,6 +42,7 @@ declare class InstituteModel extends Model<IInstituteAttributes, TInstituteCreat
|
|
|
42
42
|
emailVerification?: EMAIL_VERIFICATION;
|
|
43
43
|
mobileVerification?: MOBILE_VERIFICATION;
|
|
44
44
|
partnersIds?: string[];
|
|
45
|
+
isPlayHouse: boolean;
|
|
45
46
|
createdBy: string;
|
|
46
47
|
updatedBy: string;
|
|
47
48
|
deletedBy: string;
|
|
@@ -148,6 +148,12 @@ InstituteModel.init({
|
|
|
148
148
|
allowNull: true,
|
|
149
149
|
field: 'partners_ids',
|
|
150
150
|
},
|
|
151
|
+
isPlayHouse: {
|
|
152
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
153
|
+
field: 'is_play_house',
|
|
154
|
+
defaultValue: false,
|
|
155
|
+
allowNull: true,
|
|
156
|
+
},
|
|
151
157
|
}, {
|
|
152
158
|
modelName: 'InstituteModel',
|
|
153
159
|
tableName: 'institutes',
|
package/package.json
CHANGED