File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ const experienceTypeToSchema: Record<
6565 [ UserExperienceType . Education ] : userExperienceEducationSchema ,
6666 [ UserExperienceType . Project ] : userExperienceProjectSchema ,
6767 [ UserExperienceType . Work ] : userExperienceWorkSchema ,
68+ [ UserExperienceType . Volunteering ] : userExperienceProjectSchema ,
69+ [ UserExperienceType . OpenSource ] : userExperienceProjectSchema ,
6870} ;
6971
7072export const getExperienceSchema = ( type : UserExperienceType ) => {
Original file line number Diff line number Diff line change 1+ import { UserExperience } from './UserExperience' ;
2+ import { ChildEntity , Column } from 'typeorm' ;
3+ import { UserExperienceType } from './types' ;
4+
5+ @ChildEntity ( UserExperienceType . OpenSource )
6+ export class UserExperienceOpenSource extends UserExperience {
7+ @Column ( { type : 'text' , nullable : true } )
8+ url : string | null ;
9+ }
Original file line number Diff line number Diff line change 1+ import { UserExperience } from './UserExperience' ;
2+ import { ChildEntity } from 'typeorm' ;
3+ import { UserExperienceType } from './types' ;
4+
5+ @ChildEntity ( UserExperienceType . Volunteering )
6+ export class UserExperienceVolunteering extends UserExperience { }
Original file line number Diff line number Diff line change @@ -3,4 +3,6 @@ export enum UserExperienceType {
33 Education = 'education' ,
44 Project = 'project' ,
55 Certification = 'certification' ,
6+ Volunteering = 'volunteering' ,
7+ OpenSource = 'opensource' ,
68}
You can’t perform that action at this time.
0 commit comments