Skip to content

Commit 3d65f00

Browse files
Removed jobSource table.
1 parent 629ad41 commit 3d65f00

File tree

8 files changed

+44
-71
lines changed

8 files changed

+44
-71
lines changed
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
import {Job} from './job.entity'
3-
1+
import { Job } from './job.entity';
42

53
export 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
}

src/generated/nestjs-dto/connect-jobSource.dto.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/generated/nestjs-dto/create-job.dto.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
2+
import {Prisma} from '@prisma/client'
33

44

55

@@ -12,4 +12,7 @@ url: string;
1212
postedAt?: Date;
1313
description?: string;
1414
isRemote?: boolean;
15+
source?: string;
16+
externalId?: string;
17+
data?: Prisma.InputJsonValue;
1518
}
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
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.
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
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

86
export 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
}
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
2-
import {Prisma} from '@prisma/client'
3-
import {Job} from './job.entity'
4-
1+
import { Prisma } from '@prisma/client';
52

63
export 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
}

src/generated/nestjs-dto/update-job.dto.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
2+
import {Prisma} from '@prisma/client'
33

44

55

@@ -12,4 +12,7 @@ url?: string;
1212
postedAt?: Date;
1313
description?: string;
1414
isRemote?: boolean;
15+
source?: string;
16+
externalId?: string;
17+
data?: Prisma.InputJsonValue;
1518
}
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
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.

0 commit comments

Comments
 (0)