feat: allow wallet fallback after plan quota exhaustion

This commit is contained in:
elky
2026-10-09 21:21:53 +08:00
parent bad13237d2
commit 63520c8c27
39 changed files with 1474 additions and 190 deletions
@@ -1349,6 +1349,7 @@ CREATE TABLE IF NOT EXISTS public.user_preferences (
email_notifications boolean DEFAULT true,
usage_alerts boolean DEFAULT true,
announcement_notifications boolean DEFAULT true,
allow_wallet_overage boolean DEFAULT false NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
updated_at timestamp with time zone DEFAULT now() NOT NULL
);
@@ -191,6 +191,7 @@ CREATE TABLE IF NOT EXISTS public.user_preferences (
email_notifications boolean DEFAULT true NOT NULL,
usage_alerts boolean DEFAULT true NOT NULL,
announcement_notifications boolean DEFAULT true NOT NULL,
allow_wallet_overage boolean DEFAULT false NOT NULL,
created_at bigint NOT NULL,
updated_at bigint NOT NULL
);
@@ -788,6 +788,11 @@ name = "announcement_notifications"
type = "bool"
default = true
[[table.user_preferences.columns]]
name = "allow_wallet_overage"
type = "bool"
default = false
[[table.user_preferences.columns]]
name = "created_at"
type = "unix_seconds"