feat: Add spam block schema and migration#23996
Conversation
|
Warning Rate limit exceeded@alishaz-polymath has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 30 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughAdds enum WatchlistAction (REPORT, BLOCK). Alters Watchlist to add action (WatchlistAction, NOT NULL, default REPORT), organizationId (nullable Int), and updates uniqueness/indexes to @@unique([type, value, organizationId]) plus an index on (type, value, organizationId, action) and a filtered unique index for global entries where organizationId IS NULL. Creates BlockedBookingLog with id (PK, uuid/text), email (NOT NULL), eventTypeId, organizationId, bookingData (JSONB/Json), watchlistId, createdAt (timestamp, default now) and indexes on id, (organizationId, createdAt), email, and watchlistId. Updates BillingPeriod to MONTHLY and ANNUALLY. Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
E2E results are ready! |
* schema * fix migration * -- * optional org * -- * remove prisma level relation * -- * rename * remove redundant key * --
What does this PR do?
Adds schema and migration to support spam blocking in org as well as globally. This is the first part of the bunch of PR stacked to complete the SPAM bookings blocking feature.
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
Video Demo (if applicable):
Image Demo (if applicable):
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?