Files
xLog/prisma/schema.prisma
T

37 lines
729 B
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Metadata {
uri String
ai_summary_en String?
ai_summary_zh String?
ai_summary_zhtw String?
ai_summary_ja String?
ai_score Int?
ai_score_reason String?
// Expected JSON structure for the translation field:
// {
// "zh": {
// "title": "string",
// "content": "string",
// },
// "jp": {
// "title": "string",
// "content": "string",
// },
// ...
// }
ai_translation Json?
@@id([uri])
@@index([uri])
}