diff --git a/src/database/entities/candidacy.entity.ts b/src/database/entities/candidacy.entity.ts index aa75082..4a42e6f 100644 --- a/src/database/entities/candidacy.entity.ts +++ b/src/database/entities/candidacy.entity.ts @@ -15,7 +15,7 @@ import { CandidacyStatus } from './candidacy-status.enum'; id: string; @Column('uuid') - vacancyId: string; + jobId: string; @Column('uuid') userId: string; @@ -34,7 +34,7 @@ import { CandidacyStatus } from './candidacy-status.enum'; user: UsersEntity; @ManyToOne(() => JobsEntity) - @JoinColumn({ name: 'vacancyId' }) + @JoinColumn({ name: 'jobId' }) job: JobsEntity; } \ No newline at end of file