@@ -22,26 +22,26 @@ model User {
2222}
2323
2424model UrlFunction {
25- id Int @id @default (autoincrement () )
26- createdAt DateTime @map (" created_at " )
27- user User @relation (fields : [userId ] , references : [id ] )
28- userId Int @map (" user_id " )
29- name String
30- context String
31- description String @default (" " )
32- payload String ?
33- method String
34- url String
35- headers String ?
36- body String ?
37- auth String ?
38- response String ?
39- responseType String ? @map (" response_type " )
40- argumentTypes String ? @map (" argument_types " )
41- trained Boolean @default (false )
42- publicId String @unique @default (uuid () ) @map (" public_id " )
43- webhookHandle WebhookHandle ? @relation (fields : [webhookHandleId ] , references : [id ] )
44- webhookHandleId String ? @unique @map (" webhook_handle_id " )
25+ id Int @id @default (autoincrement () )
26+ createdAt DateTime @map (" created_at " )
27+ user User @relation (fields : [userId ] , references : [id ] )
28+ userId Int @map (" user_id " )
29+ name String
30+ context String
31+ description String @default (" " )
32+ payload String ?
33+ method String
34+ url String
35+ headers String ?
36+ body String ?
37+ auth String ?
38+ response String ?
39+ responseType String ? @map (" response_type " )
40+ argumentsMetadata String ? @map (" arguments_metadata " )
41+ trained Boolean @default (false )
42+ publicId String @unique @default (uuid () ) @map (" public_id " )
43+ webhookHandle WebhookHandle ? @relation (fields : [webhookHandleId ] , references : [id ] )
44+ webhookHandleId String ? @unique @map (" webhook_handle_id " )
4545
4646 @@map (" url_function " )
4747}
@@ -78,24 +78,24 @@ model WebhookHandle {
7878
7979// store all the messages in a conversation
8080model ConversationMessage {
81- id String @id @default (uuid () )
81+ id String @id @default (uuid () )
8282 createdAt DateTime @default (now () )
83- user User @relation (fields : [userId ] , references : [id ] )
84- userId Int @map (" user_id " )
85- name String @default (" " ) // not used for now. in future, will allow the user to have multiple conversations
86- role String // assistant or user
87- content String
83+ user User @relation (fields : [userId ] , references : [id ] )
84+ userId Int @map (" user_id " )
85+ name String @default (" " ) // not used for now. in future, will allow the user to have multiple conversations
86+ role String // assistant or user
87+ content String
8888
8989 @@map (" conversation_message " )
9090}
9191
9292// customizable prompt per user
9393model SystemPrompt {
94- id String @id @default (uuid () )
94+ id String @id @default (uuid () )
9595 createdAt DateTime @default (now () )
96- user User @relation (fields : [userId ] , references : [id ] )
97- userId Int @map (" user_id " )
98- content String
96+ user User @relation (fields : [userId ] , references : [id ] )
97+ userId Int @map (" user_id " )
98+ content String
9999
100100 @@map (" system_prompt " )
101- }
101+ }
0 commit comments