Skip to content

Commit 9d00555

Browse files
deleted selectedForInterview column from applicant_records
1 parent 8a6c796 commit 9d00555

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { DataType } from "sequelize-typescript";
2+
import { Migration } from "../umzug";
3+
4+
export const up: Migration = async ({ context: sequelize }) => {
5+
await sequelize
6+
.getQueryInterface()
7+
.removeColumn("applicant_records", "selectedForInterview");
8+
};
9+
10+
export const down: Migration = async ({ context: sequelize }) => {
11+
await sequelize
12+
.getQueryInterface()
13+
.addColumn("applicant_records", "selectedForInterview", {
14+
type: DataType.BOOLEAN,
15+
allowNull: false,
16+
defaultValue: false,
17+
});
18+
};

backend/typescript/models/applicant.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { Column, DataType, Model, Table } from "sequelize-typescript";
44

5-
@Table({ tableName: "applicantresponse" })
5+
@Table({ tableName: "applicants" })
66
export default class Applicant extends Model {
77
@Column({
88
type: DataType.INTEGER,

backend/typescript/models/applicantRecord.model.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import Applicant from "./applicant.model";
1616
import Position from "./position.model";
1717

18-
@Table({ tableName: "applicantresponse" })
18+
@Table({ tableName: "applicant_records" })
1919
export default class ApplicantRecord extends Model {
2020
@Column({
2121
type: DataType.INTEGER,
@@ -45,9 +45,6 @@ export default class ApplicantRecord extends Model {
4545
@Column({ type: DataType.STRING, allowNull: true })
4646
skillCategory!: SkillCategory;
4747

48-
@Column({ type: DataType.BOOLEAN })
49-
selectedForInterview!: boolean;
50-
5148
@Column({ type: DataType.JSONB, allowNull: true })
5249
extraInfo!: ApplicantRecordExtraInfo;
5350
}

backend/typescript/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export type ApplicantRecordDTO = {
102102
roleSpecificQuestions: string[];
103103
choice: number;
104104
status: ApplicationStatus;
105-
selectedForInterview: boolean;
106105
skillCategory?: SkillCategory;
107106
};
108107

@@ -228,7 +227,6 @@ export type Review = {
228227
desireToLearn?: number;
229228
skill?: number;
230229
skillCategory?: SkillCategory;
231-
comments?: string;
232230
};
233231

234232
export type ReviewedApplicantRecordDTO = {

0 commit comments

Comments
 (0)