-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Relationships): Reduce relationship lines by combining relations…
…hip names to and from end model, then skipping end model. Fix issue with misrepresented one/one ot zero/one relationships (#237) Known issue with many to X relationships.
- Loading branch information
Showing
5 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
generator erd { | ||
provider = "node ./dist/index.js" | ||
output = "../../__tests__/219.svg" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model DailySchedule { | ||
id Int @id @default(autoincrement()) | ||
day String | ||
startTime String | ||
endTime String | ||
schedule Schedule @relation(fields: [scheduleId], references: [id]) | ||
scheduleId Int | ||
} | ||
|
||
model Schedule { | ||
id Int @id @default(autoincrement()) | ||
name String | ||
timezone String | ||
dailySchedules DailySchedule[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters