feat: add disabledReason field to projects for better tracking of disable reasons

This commit is contained in:
Dries Augustyns
2026-05-22 13:03:32 +02:00
parent 9797aed47f
commit 94ceadbbe4
4 changed files with 27 additions and 4 deletions
+9 -1
View File
@@ -43,7 +43,8 @@ model Project {
secret String @unique
// Admin
disabled Boolean @default(false)
disabled Boolean @default(false)
disabledReason ProjectDisabledReason?
// Billing
customer String? @unique
@@ -632,6 +633,13 @@ model Event {
// ENUMS
// ============================================
enum ProjectDisabledReason {
PAYMENT_FAILED // Subscription renewal payment failed
EMAIL_REPUTATION // Bounce or complaint rate thresholds exceeded
PHISHING_DETECTED // Phishing content detected by LLM scan
MANUAL // Disabled by support/admin (e.g. directly in DB)
}
enum AuthMethod {
PASSWORD
GOOGLE_OAUTH