Skip to content

Commit

Permalink
fix: prisma schema warning
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-shajan committed May 4, 2023
1 parent a6aa9ba commit 7bba840
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["referentialIntegrity"]
provider = "prisma-client-js"
}

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

model Example {
Expand All @@ -33,6 +32,7 @@ model Account {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([provider, providerAccountId])
@@index([userId])
}

model Session {
Expand All @@ -41,6 +41,8 @@ model Session {
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@index([userId])
}

model User {
Expand Down Expand Up @@ -72,14 +74,19 @@ model Owner {
model Repository {
id String @id @default(cuid())
name String
owner Owner @relation(fields: [ownerId], references: [id])
ownerId String
owner Owner @relation(fields: [ownerId], references: [id])
@@index([ownerId])
}

model OwnerUser {
id String @id @default(cuid())
owner Owner @relation(fields: [ownerId], references: [id])
ownerId String
user User @relation(fields: [userId], references: [id])
userId String
owner Owner @relation(fields: [ownerId], references: [id])
user User @relation(fields: [userId], references: [id])
@@index([ownerId])
@@index([userId])
}

1 comment on commit 7bba840

@vercel
Copy link

@vercel vercel bot commented on 7bba840 May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

issue-notify – ./

issue-notify-joeshajan.vercel.app
issue-notify-git-main-joeshajan.vercel.app
issue-notify.vercel.app

Please sign in to comment.