Skip to content

Commit 7fac57b

Browse files
Updated prisma.
1 parent 4c231d0 commit 7fac57b

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

prisma

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

35
export class Company {
4-
id: number;
5-
name: string;
6-
jobs?: Job[];
7-
createdAt: Date;
6+
id: number ;
7+
name: string ;
8+
jobs?: Job[] ;
9+
createdAt: Date ;
810
}
Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
import { Prisma } from '@prisma/client';
2-
import { Company } from './company.entity';
3-
import { JobTag } from './jobTag.entity';
4-
import { JobMetadata } from './jobMetadata.entity';
1+
2+
import {Prisma} from '@prisma/client'
3+
import {Company} from './company.entity'
4+
import {JobTag} from './jobTag.entity'
5+
import {JobMetadata} from './jobMetadata.entity'
6+
57

68
export class Job {
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[];
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+
source: string | null;
22+
externalId: string | null;
23+
data: Prisma.JsonValue | null;
24+
tags?: JobTag[] ;
25+
metadata?: JobMetadata[] ;
2426
}

0 commit comments

Comments
 (0)