File tree Expand file tree Collapse file tree 5 files changed +7
-9
lines changed
Expand file tree Collapse file tree 5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { gql } from "apollo-server-express";
22
33const reviewPageType = gql `
44 type ApplicationDTO {
5- id: Int !
5+ id: String !
66 academicOrCoop: String!
77 academicYear: String!
88 email: String!
Original file line number Diff line number Diff line change @@ -7,12 +7,11 @@ import ApplicantRecord from "./applicantRecord.model";
77@Table ( { tableName : "applicants" } )
88export default class Applicant extends Model {
99 @Column ( {
10- type : DataType . INTEGER ,
10+ type : DataType . UUIDV4 ,
1111 primaryKey : true ,
1212 unique : true ,
13- autoIncrement : true ,
1413 } )
15- id ! : number ;
14+ id ! : string ;
1615
1716 @Column ( { type : DataType . STRING } )
1817 academicOrCoop ! : string ;
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ export default class ApplicantRecord extends Model {
3030 id ! : string ;
3131
3232 @ForeignKey ( ( ) => Applicant )
33- @Column ( { type : DataType . INTEGER } )
34- applicantId ! : number ;
33+ @Column ( { type : DataType . UUIDV4 } )
34+ applicantId ! : string ;
3535
3636 @ForeignKey ( ( ) => Position )
3737 @Column ( { type : DataType . STRING } )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import IReviewPageService from "../interfaces/IReviewPageService";
33import { getErrorMessage } from "../../utilities/errorUtils" ;
44import logger from "../../utilities/logger" ;
55import ApplicantRecord from "../../models/applicantRecord.model" ;
6- import ReviewedApplicantRecord from "../../models/reviewedApplicantRecord.model" ;
76import Applicant from "../../models/applicant.model" ;
87
98const Logger = logger ( __filename ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export type UserDTO = {
3434} ;
3535
3636export type ApplicationDTO = {
37- id : number ;
37+ id : string ;
3838 academicOrCoop : string ;
3939 academicYear : string ;
4040 email : string ;
@@ -58,7 +58,7 @@ export type ApplicationDTO = {
5858} ;
5959
6060export type ApplicantDTO = {
61- id : number ;
61+ id : string ;
6262 academicOrCoop : string ;
6363 academicYear : string ; // MAYBE CHANGE WITH ENUM
6464 email : string ;
You can’t perform that action at this time.
0 commit comments