@kipicore/dbcore 1.1.119 → 1.1.120

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.
@@ -1,9 +1,10 @@
1
- "use strict";
1
+ 'use strict';
2
2
  const up = async (queryInterface, Sequelize) => {
3
3
  const table = await queryInterface.describeTable('subject_has_fee');
4
4
  if (!table.batch_id) {
5
5
  await queryInterface.addColumn('subject_has_fee', 'batch_id', {
6
6
  type: Sequelize.UUID,
7
+ defaultValue: null,
7
8
  allowNull: true,
8
9
  field: 'batch_id',
9
10
  });
@@ -11,6 +12,7 @@ const up = async (queryInterface, Sequelize) => {
11
12
  if (!table.batch_type) {
12
13
  await queryInterface.addColumn('subject_has_fee', 'batch_type', {
13
14
  type: Sequelize.UUID,
15
+ defaultValue: null,
14
16
  allowNull: true,
15
17
  field: 'batch_type',
16
18
  });
@@ -18,6 +20,7 @@ const up = async (queryInterface, Sequelize) => {
18
20
  if (!table.academic_calender_id) {
19
21
  await queryInterface.addColumn('subject_has_fee', 'academic_calender_id', {
20
22
  type: Sequelize.UUID,
23
+ defaultValue: null,
21
24
  allowNull: true,
22
25
  field: 'academic_calender_id',
23
26
  });
@@ -14,6 +14,7 @@ export interface IExamModelAttributes extends IDefaultAttributes, Document {
14
14
  title: string;
15
15
  subTitle?: string;
16
16
  description?: string;
17
+ syllabus?: string;
17
18
  subject: string;
18
19
  fileId?: string;
19
20
  batches: IExamHasBatch[];
@@ -124,6 +124,10 @@ const examModelSchema = new mongoose_1.Schema({
124
124
  type: Number,
125
125
  required: false,
126
126
  },
127
+ syllabus: {
128
+ type: String,
129
+ required: false,
130
+ },
127
131
  instituteId: {
128
132
  type: String,
129
133
  required: false,
@@ -168,7 +172,7 @@ const examModelSchema = new mongoose_1.Schema({
168
172
  },
169
173
  publishDate: {
170
174
  type: Date,
171
- required: false
175
+ required: false,
172
176
  },
173
177
  createdBy: {
174
178
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.119",
3
+ "version": "1.1.120",
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",