Something went wrong. Try again.
because I got bored of customising my CV for every job
Something went wrong. Try again.
1.1 kB · 49 lines
TypeScript
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950import { BaseEntity } from "@cv/core";import { CV } from "@/modules/cv-template/graphql/cv.type";import { Vacancy } from "@/modules/vacancies/vacancy.entity";
export interface ApplicationStatusRelation { id: string; name: string; description: string | null; createdAt: Date; updatedAt: Date;}
export class Application extends BaseEntity { userId: string; profileId: string; vacancy: Vacancy; cv: CV | null; coverLetter?: string; statusId: string; status: ApplicationStatusRelation; appliedAt: Date;
constructor( id: string, userId: string, profileId: string, vacancy: Vacancy, statusId: string, status: ApplicationStatusRelation, appliedAt: Date, createdAt: Date, updatedAt: Date, cv: CV | null = null, coverLetter?: string, ) { super(id, createdAt, updatedAt); this.userId = userId; this.profileId = profileId; this.vacancy = vacancy; this.statusId = statusId; this.status = status; this.appliedAt = appliedAt; this.cv = cv;
if (coverLetter !== undefined) { this.coverLetter = coverLetter; } }}