Skip to content

Commit

Permalink
https://github.com/prisma/language-tools/issues/1387
Browse files Browse the repository at this point in the history
  • Loading branch information
Druue committed Mar 15, 2023
1 parent 6d37c21 commit 0891366
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions schema.prisma
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
}

model Restaurant {
id BigInt @id @default(autoincrement())
RestaurantPageImages RestaurantPageImages[]
@@index([externalId])
}

model RestaurantPageImages {
restaurantId BigInt
imageId Int
url String
Restaurant Restaurant @relation(fields: [restaurantId], references: [id])
@@id([restaurantId, imageId])
}

0 comments on commit 0891366

Please sign in to comment.