File tree Expand file tree Collapse file tree 8 files changed +44
-71
lines changed
Expand file tree Collapse file tree 8 files changed +44
-71
lines changed Original file line number Diff line number Diff line change 1-
2- import { Job } from './job.entity'
3-
1+ import { Job } from './job.entity' ;
42
53export class Company {
6- id : number ;
7- name : string ;
8- jobs ?: Job [ ] ;
9- createdAt : Date ;
4+ id : number ;
5+ name : string ;
6+ jobs ?: Job [ ] ;
7+ createdAt : Date ;
108}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
2-
2+ import { Prisma } from '@prisma/client'
33
44
55
@@ -12,4 +12,7 @@ url: string;
1212postedAt ?: Date ;
1313description ?: string ;
1414isRemote ?: boolean ;
15+ source ?: string ;
16+ externalId ?: string ;
17+ data ?: Prisma . InputJsonValue ;
1518}
Original file line number Diff line number Diff line change 1-
2- import { Prisma } from '@prisma/client'
3-
4-
5-
6-
7- export class CreateJobSourceDto {
8- source : string ;
9- externalId ?: string ;
10- rawUrl ?: string ;
11- data ?: Prisma . InputJsonValue ;
12- }
1+ // Removed. No longer used after merging JobSource into Job.
Original file line number Diff line number Diff line change 1-
2- import { Company } from './company.entity'
3- import { JobTag } from './jobTag.entity'
4- import { JobMetadata } from './jobMetadata.entity'
5- import { JobSource } from './jobSource.entity'
6-
1+ import { Prisma } from '@prisma/client' ;
2+ import { Company } from './company.entity' ;
3+ import { JobTag } from './jobTag.entity' ;
4+ import { JobMetadata } from './jobMetadata.entity' ;
75
86export class Job {
9- id : number ;
10- title : string ;
11- companyId : number | null ;
12- company ?: Company | null ;
13- author : string | null ;
14- location : string | null ;
15- url : string ;
16- postedAt : Date | null ;
17- description : string | null ;
18- isRemote : boolean | null ;
19- createdAt : Date ;
20- updatedAt : Date ;
21- tags ?: JobTag [ ] ;
22- metadata ?: JobMetadata [ ] ;
23- sources ?: JobSource [ ] ;
7+ id : number ;
8+ title : string ;
9+ companyId : number | null ;
10+ company ?: Company | null ;
11+ author : string | null ;
12+ location : string | null ;
13+ url : string ;
14+ postedAt : Date | null ;
15+ description : string | null ;
16+ isRemote : boolean | null ;
17+ createdAt : Date ;
18+ updatedAt : Date ;
19+ source : string | null ;
20+ externalId : string | null ;
21+ data : Prisma . JsonValue | null ;
22+ tags ?: JobTag [ ] ;
23+ metadata ?: JobMetadata [ ] ;
2424}
Original file line number Diff line number Diff line change 1-
2- import { Prisma } from '@prisma/client'
3- import { Job } from './job.entity'
4-
1+ import { Prisma } from '@prisma/client' ;
52
63export class JobSource {
7- id : number ;
8- jobId : number ;
9- source : string ;
10- externalId : string | null ;
11- rawUrl : string | null ;
12- data : Prisma . JsonValue | null ;
13- createdAt : Date ;
14- job ?: Job ;
4+ id : number ;
5+ jobId : number ;
6+ source : string ;
7+ externalId : string | null ;
8+ rawUrl : string | null ;
9+ data : Prisma . JsonValue | null ;
10+ createdAt : Date ;
1511}
Original file line number Diff line number Diff line change 11
2-
2+ import { Prisma } from '@prisma/client'
33
44
55
@@ -12,4 +12,7 @@ url?: string;
1212postedAt ?: Date ;
1313description ?: string ;
1414isRemote ?: boolean ;
15+ source ?: string ;
16+ externalId ?: string ;
17+ data ?: Prisma . InputJsonValue ;
1518}
Original file line number Diff line number Diff line change 1-
2- import { Prisma } from '@prisma/client'
3-
4-
5-
6-
7- export class UpdateJobSourceDto {
8- source ?: string ;
9- externalId ?: string ;
10- rawUrl ?: string ;
11- data ?: Prisma . InputJsonValue ;
12- }
1+ // Removed. No longer used after merging JobSource into Job.
You can’t perform that action at this time.
0 commit comments