From 5124970290a59529f7f3c38d40820d2ae760a9e6 Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Wed, 16 Oct 2024 09:17:07 -0600 Subject: [PATCH] chore: release 4.15.0 --- package.json | 2 +- prisma/schema.prisma | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 74f8023a..44e49dbe 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "url": "https://github.com/jetstreamapp/jetstream" }, "author": "Jetstream", - "version": "4.14.0", + "version": "4.15.0", "license": "GNU Lesser General Public License v3.0", "engines": { "node": ">=20 <22", diff --git a/prisma/schema.prisma b/prisma/schema.prisma index efba494b..6b7d81fc 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -8,18 +8,19 @@ 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? - 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? + salesforceOrgs SalesforceOrg[] + organizations JetstreamOrganization[] + deletedAt DateTime? + createdAt DateTime @default(now()) @db.Timestamp(6) + updatedAt DateTime @updatedAt } model UserPreference { @@ -63,6 +64,8 @@ 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