feat: blocklist table (#24459)
* feat: blocklist table * feat: blocklist table * refactor: feedback * chore: add select * UI improvements * chore: remove un unsed --------- Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
17ab088af8
commit
5a59bb86cd
30 files changed
+2209
-24
No files matched your search
@@ -0,0 +1,2 @@
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "WatchlistAudit" ADD CONSTRAINT "WatchlistAudit_watchlistId_fkey" FOREIGN KEY ("watchlistId") REFERENCES "Watchlist"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
@@ -2321,6 +2321,7 @@ model Watchlist {
|
||||
lastUpdatedAt DateTime @default(now())
|
||||
|
||||
bookingReports BookingReport[]
|
||||
audits WatchlistAudit[]
|
||||
|
||||
@@unique([type, value, organizationId])
|
||||
@@index([type, value, organizationId, action])
|
||||
@@ -2337,7 +2338,8 @@ model WatchlistAudit {
|
||||
changedAt DateTime @default(now())
|
||||
changedByUserId Int?
|
||||
|
||||
watchlistId String @db.Uuid
|
||||
watchlistId String @db.Uuid
|
||||
watchlist Watchlist? @relation(fields: [watchlistId], references: [id], onDelete: Cascade)
|
||||
|
||||
@@index([watchlistId, changedAt])
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user