25 lines
583 B
Plaintext
25 lines
583 B
Plaintext
// 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"
|
|
binaryTargets = ["native", "debian-openssl-3.0.x"]
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @unique @map("_id")
|
|
name String @default("Anonymous")
|
|
color String @default("#ffffff")
|
|
flags String @default("{}") // JSON flags object
|
|
}
|
|
|
|
model ChatHistory {
|
|
id String @id @unique @map("_id")
|
|
messages String @default("[]") // JSON messages
|
|
}
|