// 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" output = "../generated/prisma" } datasource db { provider = "sqlite" url = env("DATABASE_URL") } model Response { id Int @id @default(autoincrement()) pleromaNotificationId String @default("null") to String @default("null") request String @default("null") response String @default("null") createdAt DateTime @default(now()) processedAt DateTime? isProcessing Boolean @default(true) isComplete Boolean @default(true) } model User { id Int @id @default(autoincrement()) userFqn String @unique lastRespondedTo DateTime? } model Reaction { id Int @id @default(autoincrement()) statusId String // The Pleroma status ID we reacted to emojiName String // The emoji we used to react reactedAt DateTime @default(now()) createdAt DateTime @default(now()) @@unique([statusId]) // Prevent multiple reactions to same status @@map("reactions") }