@kipicore/dbcore 1.1.42 → 1.1.43
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.
|
@@ -6,7 +6,7 @@ const index_1 = require("./index");
|
|
|
6
6
|
const app_1 = require("../../constants/app");
|
|
7
7
|
class BatchModel extends sequelize_1.Model {
|
|
8
8
|
static associate(models) {
|
|
9
|
-
const { UserModel, TypeManagementModel, InstituteModel, WorkingShiftModel, SlotModel, AcademicCalendarModel
|
|
9
|
+
const { UserModel, TypeManagementModel, InstituteModel, WorkingShiftModel, SlotModel, AcademicCalendarModel } = models;
|
|
10
10
|
BatchModel.belongsTo(UserModel, {
|
|
11
11
|
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
12
12
|
as: 'createdByUser',
|
|
@@ -96,7 +96,6 @@ BatchModel.init({
|
|
|
96
96
|
type: {
|
|
97
97
|
type: sequelize_1.DataTypes.UUID,
|
|
98
98
|
allowNull: true,
|
|
99
|
-
defaultValue: null,
|
|
100
99
|
},
|
|
101
100
|
subjects: {
|
|
102
101
|
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.STRING),
|
|
@@ -135,7 +134,6 @@ BatchModel.init({
|
|
|
135
134
|
teacherId: {
|
|
136
135
|
type: sequelize_1.DataTypes.UUID,
|
|
137
136
|
field: 'teacher_id',
|
|
138
|
-
defaultValue: null,
|
|
139
137
|
allowNull: true,
|
|
140
138
|
},
|
|
141
139
|
status: {
|
|
@@ -152,7 +150,6 @@ BatchModel.init({
|
|
|
152
150
|
academicCalendarId: {
|
|
153
151
|
type: sequelize_1.DataTypes.UUID,
|
|
154
152
|
field: 'academic_calendar_id',
|
|
155
|
-
defaultValue: null,
|
|
156
153
|
allowNull: true,
|
|
157
154
|
},
|
|
158
155
|
}, {
|
package/package.json
CHANGED