22 lines
642 B
Plaintext
22 lines
642 B
Plaintext
// General import documents (not linked to characters)
|
|
|
|
model ImportDocument {
|
|
id String @id @default(uuid())
|
|
sourceType ImportSourceType
|
|
sourceName String
|
|
mimeType String?
|
|
fileSize BigInt?
|
|
content String?
|
|
status ImportStatus @default(pending)
|
|
errorMessage String?
|
|
metadata Json?
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
|
|
userId String
|
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
|
|
@@index([userId])
|
|
@@index([status])
|
|
}
|