Update prisma schema

This commit is contained in:
Hri7566 2024-07-23 14:01:19 -04:00
parent 59dfb8fd2f
commit 0ff9e8f199
1 changed files with 5 additions and 11 deletions

View File

@ -12,11 +12,11 @@ datasource db {
}
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
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
}
@ -24,9 +24,3 @@ model ChatHistory {
id String @id @unique @map("_id")
messages String @default("[]") // JSON messages
}
model Token {
userId String @id @relation(fields: [userId], references: [id])
token String
createdAt DateTime @default(now())
}