reverted prisma cusotm output path
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
generator client {
|
generator client {
|
||||||
provider = "prisma-client-js"
|
provider = "prisma-client-js"
|
||||||
output = "../node_modules/.prisma/client"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
@@ -50,10 +49,10 @@ model User {
|
|||||||
activeDollId String? @map("active_doll_id")
|
activeDollId String? @map("active_doll_id")
|
||||||
activeDoll Doll? @relation("ActiveDoll", fields: [activeDollId], references: [id])
|
activeDoll Doll? @relation("ActiveDoll", fields: [activeDollId], references: [id])
|
||||||
|
|
||||||
sentFriendRequests FriendRequest[] @relation("SentFriendRequests")
|
sentFriendRequests FriendRequest[] @relation("SentFriendRequests")
|
||||||
receivedFriendRequests FriendRequest[] @relation("ReceivedFriendRequests")
|
receivedFriendRequests FriendRequest[] @relation("ReceivedFriendRequests")
|
||||||
userFriendships Friendship[] @relation("UserFriendships")
|
userFriendships Friendship[] @relation("UserFriendships")
|
||||||
friendFriendships Friendship[] @relation("FriendFriendships")
|
friendFriendships Friendship[] @relation("FriendFriendships")
|
||||||
dolls Doll[]
|
dolls Doll[]
|
||||||
authIdentities AuthIdentity[]
|
authIdentities AuthIdentity[]
|
||||||
authSessions AuthSession[]
|
authSessions AuthSession[]
|
||||||
@@ -63,17 +62,17 @@ model User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthIdentity {
|
model AuthIdentity {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider
|
provider AuthProvider
|
||||||
providerSubject String @map("provider_subject")
|
providerSubject String @map("provider_subject")
|
||||||
providerEmail String? @map("provider_email")
|
providerEmail String? @map("provider_email")
|
||||||
providerName String? @map("provider_name")
|
providerName String? @map("provider_name")
|
||||||
providerUsername String? @map("provider_username")
|
providerUsername String? @map("provider_username")
|
||||||
providerPicture String? @map("provider_picture")
|
providerPicture String? @map("provider_picture")
|
||||||
emailVerified Boolean @default(false) @map("email_verified")
|
emailVerified Boolean @default(false) @map("email_verified")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
@@ -83,14 +82,14 @@ model AuthIdentity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthSession {
|
model AuthSession {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider?
|
provider AuthProvider?
|
||||||
refreshTokenHash String @unique @map("refresh_token_hash")
|
refreshTokenHash String @unique @map("refresh_token_hash")
|
||||||
expiresAt DateTime @map("expires_at")
|
expiresAt DateTime @map("expires_at")
|
||||||
revokedAt DateTime? @map("revoked_at")
|
revokedAt DateTime? @map("revoked_at")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
updatedAt DateTime @updatedAt @map("updated_at")
|
updatedAt DateTime @updatedAt @map("updated_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
@@ -99,13 +98,13 @@ model AuthSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model AuthExchangeCode {
|
model AuthExchangeCode {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
provider AuthProvider
|
provider AuthProvider
|
||||||
codeHash String @unique @map("code_hash")
|
codeHash String @unique @map("code_hash")
|
||||||
expiresAt DateTime @map("expires_at")
|
expiresAt DateTime @map("expires_at")
|
||||||
consumedAt DateTime? @map("consumed_at")
|
consumedAt DateTime? @map("consumed_at")
|
||||||
createdAt DateTime @default(now()) @map("created_at")
|
createdAt DateTime @default(now()) @map("created_at")
|
||||||
userId String @map("user_id")
|
userId String @map("user_id")
|
||||||
|
|
||||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user