-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(database): restructure database entities
- Loading branch information
1 parent
339552f
commit f4bcafe
Showing
16 changed files
with
28 additions
and
231 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,28 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
model Movie { | ||
id Int @id @default(autoincrement()) | ||
genre String | ||
director String | ||
duration Int | ||
subtitles String[] | ||
releaseDate DateTime @map("release_date") | ||
movieTitle MovieTitle[] | ||
} | ||
|
||
model MovieTitle { | ||
movieTitleId Int @id @default(autoincrement()) @map("movie_title_id") | ||
movieId Int @map("movie_id") | ||
Movie Movie @relation(fields: [movieId], references: [id]) | ||
language String | ||
title String | ||
} | ||
|