Skip to content

Commit 0f0df39

Browse files
Updated dbml output path fix.
1 parent eae5852 commit 0f0df39

2 files changed

Lines changed: 7 additions & 23 deletions

File tree

dbml/schema.dbml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ Table jobs {
1515
isRemote Boolean
1616
createdAt DateTime [default: `now()`, not null]
1717
updatedAt DateTime [not null]
18+
source String
19+
externalId String
20+
data Json
1821
tags job_tags [not null]
1922
metadata job_metadata [not null]
20-
sources job_sources [not null]
2123

2224
Note: 'Stores job listings from all sources (Reddit, Web3Career, etc).
2325
Contains only the main, normalized/shared job fields.'
@@ -74,24 +76,6 @@ Table job_metadata {
7476
Allows storage of extra source-specific or custom fields.'
7577
}
7678

77-
Table job_sources {
78-
id Int [pk, increment]
79-
jobId Int [not null]
80-
source String [not null]
81-
externalId String
82-
rawUrl String
83-
data Json
84-
createdAt DateTime [default: `now()`, not null]
85-
job jobs [not null]
86-
87-
indexes {
88-
(source, externalId) [unique]
89-
}
90-
91-
Note: 'Tracks the source(s) from which this job was imported.
92-
Used for provenance, deduplication, and full source data storage.'
93-
}
94-
9579
Table taggables {
9680
id Int [pk, increment]
9781
tagId Int [not null]
@@ -145,6 +129,9 @@ Table users {
145129
password String [not null]
146130
firstname String
147131
lastname String
132+
username String
133+
profilePicture String
134+
googleId String [unique]
148135
role Role [not null, default: 'USER']
149136
wallet String [unique]
150137
is_active Boolean [default: true]
@@ -233,8 +220,6 @@ Ref: job_tags.tagId > tags.id
233220

234221
Ref: job_metadata.jobId > jobs.id
235222

236-
Ref: job_sources.jobId > jobs.id
237-
238223
Ref: taggables.tagId > tags.id
239224

240-
Ref: locations.subscriptionId > subscriptions.id
225+
Ref: locations.subscriptionId > subscriptions.id [delete: Cascade]

schema.prisma

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ generator client {
1818

1919
generator dbml {
2020
provider = "prisma-dbml-generator"
21-
output = "./dbml/schema.dbml"
2221
}
2322

2423
generator nestjsDto {

0 commit comments

Comments
 (0)