From 8a2518458da697a10b18cae24ab6e4d3dc55278d Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Wed, 16 Oct 2024 09:55:18 -0600 Subject: [PATCH] revert accidental prisma commit --- prisma/schema.prisma | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 6b7d81fc..efba494b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -8,19 +8,18 @@ datasource db { } model User { - id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid - userId String @unique @db.VarChar - email String @db.VarChar - name String? @db.VarChar - nickname String? @db.VarChar - picture String? @db.VarChar - appMetadata Json? @db.Json - preferences UserPreference? - salesforceOrgs SalesforceOrg[] - organizations JetstreamOrganization[] - deletedAt DateTime? - createdAt DateTime @default(now()) @db.Timestamp(6) - updatedAt DateTime @updatedAt + id String @id @default(dbgenerated("uuid_generate_v4()")) @db.Uuid + userId String @unique @db.VarChar + email String @db.VarChar + name String? @db.VarChar + nickname String? @db.VarChar + picture String? @db.VarChar + appMetadata Json? @db.Json + preferences UserPreference? + organizations JetstreamOrganization[] + deletedAt DateTime? + createdAt DateTime @default(now()) @db.Timestamp(6) + updatedAt DateTime @updatedAt } model UserPreference { @@ -64,8 +63,6 @@ model SalesforceApi { model SalesforceOrg { id Int @id @default(autoincrement()) jetstreamUserId String @db.VarChar - jetstreamUser User? @relation(fields: [jetstreamUserId2], references: [id], onDelete: Cascade) - jetstreamUserId2 String? @db.Uuid jetstreamOrganization JetstreamOrganization? @relation(fields: [jetstreamOrganizationId], references: [id]) jetstreamOrganizationId String? @db.Uuid uniqueId String @db.VarChar