@bash-app/bash-common 30.181.0 → 30.182.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "30.181.0",
3
+ "version": "30.182.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1707,6 +1707,7 @@ model User {
1707
1707
  birthdayRewardRedemptions BirthdayRewardRedemption[]
1708
1708
  birthdayRewardFavorites BirthdayRewardFavorite[]
1709
1709
  birthdayDealSuggestions BirthdayDealSuggestion[]
1710
+ birthdayCityResourceSuggestions BirthdayCityResourceSuggestion[]
1710
1711
  rewardReports RewardReport[]
1711
1712
  birthdayFreebieVotes BirthdayFreebieVote[]
1712
1713
  rewardReportsReviewed RewardReport[] @relation("RewardReportReviewedBy")
@@ -6100,10 +6101,39 @@ model BirthdayCityResource {
6100
6101
  sortOrder Int @default(0)
6101
6102
  createdAt DateTime @default(now())
6102
6103
  updatedAt DateTime @updatedAt
6104
+ suggestionCreatedFor BirthdayCityResourceSuggestion? @relation("CityResourceFromSuggestion")
6103
6105
 
6104
6106
  @@index([stateSlug, citySlug])
6105
6107
  }
6106
6108
 
6109
+ enum BirthdayCityResourceSuggestionStatus {
6110
+ Pending
6111
+ Approved
6112
+ Rejected
6113
+ }
6114
+
6115
+ // User-suggested "free things to do" links — admin approves into BirthdayCityResource
6116
+ model BirthdayCityResourceSuggestion {
6117
+ id String @id @default(cuid())
6118
+ stateSlug String
6119
+ citySlug String
6120
+ url String @db.Text
6121
+ label String? @db.Text
6122
+ notes String? @db.Text
6123
+ contactEmail String? @db.Text
6124
+ userId String?
6125
+ status BirthdayCityResourceSuggestionStatus @default(Pending)
6126
+ createdAt DateTime @default(now())
6127
+ reviewedAt DateTime?
6128
+ reviewedById String?
6129
+ createdResourceId String? @unique
6130
+ user User? @relation(fields: [userId], references: [id], onDelete: SetNull)
6131
+ createdResource BirthdayCityResource? @relation("CityResourceFromSuggestion", fields: [createdResourceId], references: [id], onDelete: SetNull)
6132
+
6133
+ @@index([status])
6134
+ @@index([stateSlug, citySlug])
6135
+ }
6136
+
6107
6137
  enum RewardReportStatus {
6108
6138
  Pending
6109
6139
  Approved