mpp-server-dev2/prisma/schema.prisma

27 lines
661 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 {
2024-07-23 20:01:19 +02:00
id String @id @unique @map("_id")
name String @default("Anonymous")
color String @default("#ffffff")
flags String @default("{}") // JSON flags object
tag String // JSON tag
2024-07-23 11:55:13 +02:00
tokens String @default("[]") // JSON tokens
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
}