@@ -59,20 +59,20 @@ model UserProfile {
59
59
workspaceAccess WorkspaceAccess []
60
60
userPreferences UserPreferences []
61
61
workspaceUserProperties WorkspaceUserProperties []
62
- password UserPassword ?
62
+ password UserPassword ?
63
63
64
- @@index (externalId )
65
64
@@unique ([loginProvider , externalId ] )
65
+ @@index (externalId )
66
66
}
67
67
68
68
model UserPassword {
69
- id String @id @default (cuid () )
70
- createdAt DateTime @default (now () ) /// @zod.custom(z.coerce.date())
71
- updatedAt DateTime @default (now () ) @updatedAt /// @zod.custom(z.coerce.date())
72
- userId String @unique
73
- user UserProfile @relation (fields : [userId ] , references : [id ] )
74
- hash String
75
- changeAtNextLogin Boolean @default (false )
69
+ id String @id @default (cuid () )
70
+ createdAt DateTime @default (now () ) /// @zod.custom(z.coerce.date())
71
+ updatedAt DateTime @default (now () ) @updatedAt /// @zod.custom(z.coerce.date())
72
+ userId String @unique
73
+ user UserProfile @relation (fields : [userId ] , references : [id ] )
74
+ hash String
75
+ changeAtNextLogin Boolean @default (false )
76
76
}
77
77
78
78
model Workspace {
@@ -90,6 +90,7 @@ model Workspace {
90
90
preferences UserPreferences []
91
91
workspaceUserProperties WorkspaceUserProperties []
92
92
featuresEnabled String [] @default ([] )
93
+ profileBuilderSettings ProfileBuilderSettings []
93
94
94
95
@@unique (slug )
95
96
@@index (slug )
@@ -162,8 +163,10 @@ model ConfigurationObject {
162
163
workspace Workspace @relation (fields : [workspaceId ] , references : [id ] )
163
164
config Json ?
164
165
165
- fromLinks ConfigurationObjectLink [] @relation (" from " )
166
- toLinks ConfigurationObjectLink [] @relation (" to " )
166
+ fromLinks ConfigurationObjectLink [] @relation (" from " )
167
+ toLinks ConfigurationObjectLink [] @relation (" to " )
168
+ ProfileBuilderSettings ProfileBuilderSettings []
169
+ ProfileBuilderFunctions ProfileBuilderFunctions []
167
170
168
171
@@index (updatedAt (sort : Desc ) )
169
172
}
@@ -288,6 +291,28 @@ model task_log {
288
291
@@index (timestamp )
289
292
}
290
293
294
+ model ProfileBuilderSettings {
295
+ id String @id @default (cuid () )
296
+ createdAt DateTime @default (now () ) /// @zod.custom(z.coerce.date())
297
+ updatedAt DateTime @default (now () ) @updatedAt /// @zod.custom(z.coerce.date())
298
+ workspaceId String
299
+ workspace Workspace @relation (fields : [workspaceId ] , references : [id ] )
300
+ intermediateStorageCredentials Json
301
+ destinationId String
302
+ destination ConfigurationObject @relation (fields : [destinationId ] , references : [id ] )
303
+ ProfileBuilderFunctions ProfileBuilderFunctions []
304
+ }
305
+
306
+ model ProfileBuilderFunctions {
307
+ id String @id @default (cuid () )
308
+ createdAt DateTime @default (now () ) /// @zod.custom(z.coerce.date())
309
+ updatedAt DateTime @default (now () ) @updatedAt /// @zod.custom(z.coerce.date())
310
+ profileBuilderSettingsId String
311
+ profileBuilderSettings ProfileBuilderSettings @relation (fields : [profileBuilderSettingsId ] , references : [id ] )
312
+ functionId String
313
+ function ConfigurationObject @relation (fields : [functionId ] , references : [id ] )
314
+ }
315
+
291
316
//
292
317
293
318
//model OauthSecrets {
0 commit comments