File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -84,3 +84,27 @@ model Location {
84
84
85
85
@@map (" locations " )
86
86
}
87
+
88
+ model RedditMessage {
89
+ id Int @id @default (autoincrement () )
90
+ redditId String @unique
91
+ type String // "comment", "post", "dm"
92
+ author String
93
+ content String
94
+ bodyHtml String ?
95
+ subreddit String ?
96
+ contextUrl String ?
97
+ isRead Boolean @default (false )
98
+ createdAt DateTime
99
+ receivedAt DateTime @default (now () )
100
+ parentId String ? // For thread tracking
101
+ rawData Json ? // Store original API response
102
+ messageType String ? // "inbox", "sent", "modmail"
103
+ isSubredditModMail Boolean @default (false )
104
+ isInternal Boolean @default (false ) // For mod discussions
105
+
106
+ @@index ([author ] )
107
+ @@index ([createdAt ] )
108
+ @@index ([isRead ] )
109
+ @@map (" reddit_messages " )
110
+ }
You can’t perform that action at this time.
0 commit comments