Skip to content

Commit

Permalink
revert accidental prisma commit
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Oct 16, 2024
1 parent 5124970 commit 8a25184
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a25184

Please sign in to comment.