@bash-app/bash-common 30.151.0 → 30.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +20 -8
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -55,14 +55,15 @@ model BashComment {
|
|
|
55
55
|
|
|
56
56
|
// BashFeed Models - Event-Centric Social Discovery Feed
|
|
57
57
|
model BashFeedPost {
|
|
58
|
-
id
|
|
59
|
-
userId
|
|
60
|
-
bashId
|
|
61
|
-
serviceId
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
id String @id @default(cuid())
|
|
59
|
+
userId String
|
|
60
|
+
bashId String?
|
|
61
|
+
serviceId String?
|
|
62
|
+
bashAssociationType BashAssociationType? // How user is associated with the bash (for post display)
|
|
63
|
+
content String? @db.Text
|
|
64
|
+
mediaIds String[] // Array of Media IDs
|
|
65
|
+
mentionedUserIds String[] // Array of User IDs mentioned in post
|
|
66
|
+
isAnonymous Boolean @default(false) // User can choose to post anonymously
|
|
66
67
|
viewCount Int @default(0) // Analytics only, not shown publicly
|
|
67
68
|
isFeatured Boolean @default(false) // Post is promoted/featured
|
|
68
69
|
featuredAt DateTime? // When post was featured
|
|
@@ -3903,6 +3904,17 @@ enum BashStatus {
|
|
|
3903
3904
|
Archived // Unclaimed after expiration
|
|
3904
3905
|
}
|
|
3905
3906
|
|
|
3907
|
+
/// How a user is associated with a bash (for BashFeedPost display: "Sarah attended...", "Mike is hosting...")
|
|
3908
|
+
enum BashAssociationType {
|
|
3909
|
+
Hosting
|
|
3910
|
+
Hosted
|
|
3911
|
+
InvitedTo
|
|
3912
|
+
Attending
|
|
3913
|
+
Attended
|
|
3914
|
+
VolunteeredFor
|
|
3915
|
+
Serviced
|
|
3916
|
+
}
|
|
3917
|
+
|
|
3906
3918
|
enum TransferRequestStatus {
|
|
3907
3919
|
Pending
|
|
3908
3920
|
Accepted
|