mpp-server-dev2/prisma/schema.prisma

27 lines
661 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
tag String // JSON tag
tokens String @default("[]") // JSON tokens
}
model ChatHistory {
id String @id @unique @map("_id")
messages String @default("[]") // JSON messages
}