2023-09-07 01:59:44 +02:00
|
|
|
// This is your Prisma schema file,
|
|
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
|
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
2023-09-07 02:02:14 +02:00
|
|
|
provider = "sqlite"
|
2023-09-07 01:59:44 +02:00
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
2023-09-07 02:02:14 +02:00
|
|
|
|
|
|
|
model User {
|
|
|
|
id String @id @unique @map("_id")
|
|
|
|
name String @default("Anonymous")
|
|
|
|
color String @default("#ffffff")
|
2023-09-08 00:22:01 +02:00
|
|
|
flags String @default("{}") // JSON flags object
|
2023-09-07 02:02:14 +02:00
|
|
|
}
|
2024-01-31 11:09:25 +01:00
|
|
|
|
|
|
|
model ChatHistory {
|
|
|
|
id String @id @unique @map("_id")
|
|
|
|
messages String @default("[]") // JSON messages
|
|
|
|
}
|