mpp-server-dev2/prisma/schema.prisma

25 lines
583 B
Plaintext
Raw Normal View History

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 {
2024-02-01 14:40:59 +01:00
provider = "prisma-client-js"
binaryTargets = ["native", "debian-openssl-3.0.x"]
2023-09-07 01:59:44 +02:00
}
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
}