forked from Nutlope/llamacoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.prisma
More file actions
42 lines (36 loc) · 921 Bytes
/
Copy pathschema.prisma
File metadata and controls
42 lines (36 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model GeneratedApp {
id String @id @default(nanoid(5))
model String
prompt String
code String
createdAt DateTime @default(now())
@@index([id])
}
model Chat {
id String @id @default(nanoid(16))
model String
quality String
prompt String
title String
llamaCoderVersion String @default("v2")
shadcn Boolean
messages Message[]
createdAt DateTime @default(now())
}
model Message {
id String @id @default(nanoid(16))
role String
content String
chatId String
chat Chat @relation(fields: [chatId], references: [id], onDelete: Cascade)
position Int
createdAt DateTime @default(now())
@@index([chatId])
}