41 lines
989 B
Plaintext
41 lines
989 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client"
|
|
output = "../src/generated/prisma"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
}
|
|
|
|
enum CaseStatus {
|
|
PENDING
|
|
PROCESSING
|
|
COMPLETED
|
|
FAILED
|
|
}
|
|
|
|
model CaseLaw {
|
|
id String @id @default(uuid())
|
|
title String
|
|
decisionType String?
|
|
decisionDate DateTime?
|
|
office String?
|
|
court String?
|
|
caseNumber String?
|
|
summary String? @db.Text
|
|
storageKey String?
|
|
fileType String
|
|
status CaseStatus @default(PENDING)
|
|
processingError String?
|
|
logs String[]
|
|
metadata Json?
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|