Spaces:
Sleeping
Sleeping
generator client { | |
provider = "prisma-client-js" | |
} | |
generator json { | |
provider = "prisma-json-types-generator" | |
} | |
datasource db { | |
provider = "postgresql" | |
url = env("POSTGRES_PRISMA_URL") | |
directUrl = env("POSTGRES_URL_NON_POOLING") | |
} | |
model User { | |
id String | |
name String | |
email String | |
createdAt DateTime | |
updatedAt DateTime | |
avatar String? | |
chats Chat[] | |
message Message[] | |
@ | |
} | |
model Chat { | |
id String | |
createdAt DateTime | |
updatedAt DateTime | |
title String | |
mediaUrl String | |
userId String? | |
user User? | |
messages Message[] | |
@ | |
} | |
model Message { | |
id String | |
createdAt DateTime | |
updatedAt DateTime | |
userId String? | |
chatId String | |
mediaUrl String | |
prompt String | |
response String? | |
/// [FinalCodeBody] | |
result Json? | |
/// [AgentResponseBodies] | |
responseBody Json? | |
chat Chat | |
user User? | |
@ | |
} | |