datasource db { provider = "postgresql" url = env("DATABASE_URL") } generator client { provider = "prisma-client-js" } enum PostType { notebook sticky polaroid code audio @@map("post_type") } enum MoodType { focus night spark calm visual @@map("mood_type") } model Post { id String @id @default(cuid()) type PostType date String timestamp String mood MoodType moodLabel String @map("mood_label") title String? content String marginNotes String[] @default([]) @map("margin_notes") tags String[] @default([]) likes Int @default(0) highlightWords String[] @default([]) @map("highlight_words") authorNote String? @map("author_note") imageUrl String? @map("image_url") imageCaption String? @map("image_caption") codeSnippet String? @map("code_snippet") codeLanguage String? @map("code_language") audioDuration String? @map("audio_duration") audioTitle String? @map("audio_title") stampedText String? @map("stamped_text") createdAt DateTime @default(now()) @map("created_at") updatedAt DateTime @updatedAt @map("updated_at") @@map("posts") }